Skip to content

Instantly share code, notes, and snippets.

Created June 5, 2009 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/124271 to your computer and use it in GitHub Desktop.
Save anonymous/124271 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-XXXXXXX-X");
pageTracker._trackPageview();
} catch(err) {}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment