3 ms·
If all you want is asynchronous JavaScript loading, all you need is the Google Analytics snippet: var ga = document.createElement('script'); ga.type =
by dave1010uk 15y ago
If all you want is asynchronous JavaScript loading, all you need is the Google Analytics snippet:
var ga = document.createElement('script');
ga.type = 'text/javascript'; ga.async = true;
ga.src = 'http://www.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);