samba

modify ga.js async snippet for ape

Mar 5th, 2010
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. var _gaq = _gaq || [];
  2. _gaq.push(['_setAccount', 'UA-XXXXX-X']);
  3. _gaq.push(['_trackPageview']);
  4.  
  5. (function() {
  6. var ga = document.createElement('script');
  7. ga.src = ('https:' == document.location.protocol ?
  8. 'https://ssl' : 'http://www') +
  9. '.google-analytics.com/ga.js';
  10. ga.setAttribute('async', 'true');
  11. document.documentElement.firstChild.appendChild(ga);
  12. })();
Add Comment
Please, Sign In to add comment