Shoora
4/24/2015 - 6:15 PM

Update Google Analytics (Universal) async script example

Update Google Analytics (Universal) async script example

Latest updated version:

<script>
  ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
  ga('create','UA-XXXX-Y','auto');ga('send','pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>

Which was taken from the HTML5 Boilerplate repo commit by Mathias Bynens