Permalink
Browse files

Turn on Google Analytics.

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...
1 parent a0f544c commit b36dd1c7164648fd27c1999f38fe19f159b708f7 @MarkLodato committed Oct 4, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 visual-git-guide.js
View
@@ -39,3 +39,13 @@ function replace_all_PNGs() {
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.