Thursday, December 20, 2007

Blogger GA.JS problem solution

Some conflicts exist between the new "Google Analytics" script: "GA.JS", and Blogger. Finally I found a solution to it: just "comment out" the first section of <script>, as the following example shows:


<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>