Google Analytics


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!-- asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
  2. change the UA-XXXXX-X to be your site's ID -->
  3. var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
  4. (function(d, t) {
  5. var g = d.createElement(t),
  6. s = d.getElementsByTagName(t)[0];
  7. g.async = true;
  8. g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  9. s.parentNode.insertBefore(g, s);
  10. })(document, 'script');
  11. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.