changeset 700:de5b1753e865

Merge
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 27 Mar 2009 11:55:18 -0500
parents c3c5b964901e (diff) 9e8e5292acaa (current diff)
children 95ae6e9baf99
files
diffstat 2 files changed, 18 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/web/hgbook/templates/boilerplate.html	Fri Mar 27 00:41:15 2009 -0700
+++ b/web/hgbook/templates/boilerplate.html	Fri Mar 27 11:55:18 2009 -0500
@@ -24,9 +24,14 @@
 	  href="http://mattahan.deviantart.com/">Mattahan</a>.</p>
     </div>
 
-    <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>
   </body>
 </html>
--- a/xsl/base-html-stylesheet.xsl	Fri Mar 27 00:41:15 2009 -0700
+++ b/xsl/base-html-stylesheet.xsl	Fri Mar 27 11:55:18 2009 -0500
@@ -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>