Friday, December 14, 2007

Google Analytics changes

If you have Google Analytics, you have about one year to change your code:
 
From:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-YOURNUMBER-1"; urchinTracker(); </script>
 
To:
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write("<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'></script>" ); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-YOURNUMBER-1"); pageTracker._initData(); pageTracker._trackPageview(); </script>
 
Read here.

No comments: