-
-
Save JacobLett/20081fbcb398f472a7746a984817c6a0 to your computer and use it in GitHub Desktop.
Classic Google Analytics code - ga.js
This file contains hidden or 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 | |
(function(window, document, undefined) { | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'XXX']); | |
_gaq.push(['_setDomainName', 'XXX']); | |
_gaq.push(['_trackPageview', document.location.pathname + | |
document.location.search + document.location.hash]); | |
(function(d, t) { | |
var ga = d.createElement(t); | |
ga.type = 'text/javascript'; | |
ga.async = true; | |
ga.src = ('https:' == d.location.protocol ? | |
'//ssl' : '//www') + '.google-analytics.com/ga.js'; | |
var s = d.getElementsByTagName(t)[0]; | |
s.parentNode.insertBefore(ga, s); | |
})(document,'script'); | |
})(this, this.document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment