Created
June 7, 2012 21:00
-
-
Save zsuiram/2891504 to your computer and use it in GitHub Desktop.
Analytics implementation with anonymizeIP and accelerated async
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Google Analytics --------------------------------------------------------*/ | |
var _gaq=[['_setAccount', 'UA-XXXXXXXX-X'], | |
['_gat._anonymizeIp'], | |
['_trackPageview'], | |
['_trackPageLoadTime']]; | |
(function(d,t) { | |
var ga = d.createElement(t), | |
s = d.getElementsByTagName(t)[0]; | |
ga.type = 'text/javascript';ga.async=1; | |
ga.src = '//www.google-analytics.com/ga.js'; | |
s.parentNode.insertBefore(ga, s); | |
} )(document,'script'); | |
/* Google Analytics End-----------------------------------------------------*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment