Posted By

SevenLayersDesign on 03/05/11


Tagged

textmate html5


Versions (?)

Google Analytics HTML5Boilerplate


 / Published in: Other
 

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

Report this snippet  

You need to login to post a comment.