diff stylesheets/base-html-stylesheet.xsl @ 765:d8c85d831fb4

Merge with http://hg.serpentine.com/mercurial/book
author Dongsheng Song <songdongsheng@live.cn>
date Tue, 31 Mar 2009 21:17:59 +0800
parents xsl/base-html-stylesheet.xsl@c3c5b964901e xsl/base-html-stylesheet.xsl@1c13ed2130a7
children
line wrap: on
line diff
--- a/stylesheets/base-html-stylesheet.xsl	Tue Mar 31 14:54:24 2009 +0800
+++ b/stylesheets/base-html-stylesheet.xsl	Tue Mar 31 21:17:59 2009 +0800
@@ -114,7 +114,14 @@
   </xsl:template>
 
   <xsl:template name="user.footer.navigation">
-    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-    <script type="text/javascript">_uacct = "UA-1805907-3"; urchinTracker();</script>
+    <script type="text/javascript">
+    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+    </script>
+    <script type="text/javascript">
+    try {
+    var pageTracker = _gat._getTracker("UA-1805907-5");
+    pageTracker._trackPageview();
+    } catch(err) {}</script>
   </xsl:template>
 </xsl:stylesheet>