Skip to content

Instantly share code, notes, and snippets.

@christian-fei
Created January 13, 2014 15:10
Show Gist options
  • Save christian-fei/8401987 to your computer and use it in GitHub Desktop.
Save christian-fei/8401987 to your computer and use it in GitHub Desktop.
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment