Skip to content

Commit

Permalink
removed hardcoded GA tracker ID (\!)
Browse files Browse the repository at this point in the history
  • Loading branch information
n1k0 committed Feb 7, 2011
1 parent 47a540b commit 5ea1186
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions js/githubresume.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
var urlParams = {};
var username;
var trackerId; // set your google analytics tracker ID here

(function () {
var e,
a = /\+/g, // Regex for replacing addition symbol with a space
Expand All @@ -11,8 +14,6 @@ var urlParams = {};
}
})();

var username;

$(document).ready(function() {
try {
if (urlParams[0] !== undefined) {
Expand Down Expand Up @@ -253,18 +254,16 @@ var run = function() {

};



if (trackerId) {
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21222559-1']);
_gaq.push(['_setAccount', trackerId]);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();


}

$(window).bind('error', error);

0 comments on commit 5ea1186

Please sign in to comment.