Skip to content

Commit

Permalink
Turn on Google Analytics.
Browse files Browse the repository at this point in the history
A long time ago, I turned off Google Analytics in the master branch and
turned in on in the "production" branch so that people who fork my code
wouldn't have the analytics code running on their fork.  The problem is
that I never remember to push from the production branch, so in effect
I have had Analytics turned off for years now!  So, the heck with forks,
I'm turning this on by default.
  • Loading branch information
MarkLodato committed Oct 4, 2013
1 parent a0f544c commit b36dd1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions visual-git-guide.js
Expand Up @@ -39,3 +39,13 @@ function replace_all_PNGs() {
document.getElementById('link-to-png').style.display = 'block'; document.getElementById('link-to-png').style.display = 'block';
} }
} }

// enable Google Analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-13167645-1']);
_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);
})();

0 comments on commit b36dd1c

Please sign in to comment.