diff --git a/visual-git-guide.js b/visual-git-guide.js index 1f07f64..13e856d 100644 --- a/visual-git-guide.js +++ b/visual-git-guide.js @@ -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); +})();