async GA script

This commit is contained in:
Mark Pilgrim
2009-12-02 10:57:00 -05:00
parent d2f304476a
commit 93c08ce614
2 changed files with 6 additions and 16 deletions
+1 -1
View File
@@ -1 +1 @@
<script>var gaJsHost="http://www.";document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js'%3E%3C/script%3E"));</script><script>try{var pageTracker=_gat._getTracker("UA-7434570-3");pageTracker._trackPageview();}catch(err){}</script>
<script>var _gaq=[];_gaq.push(['_setAccount', 'UA-7434570-3'],['_trackPageview']);(function(){var ga=document.createElement('script');ga.src='http://www.google-analytics.com/ga.js';ga.setAttribute('async','true');document.documentElement.firstChild.appendChild(ga);})();</script>