Mercurial > hgbook
diff xsl/base-html-stylesheet.xsl @ 699:c3c5b964901e
Update Google Analytics info
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 27 Mar 2009 11:54:22 -0500 |
parents | e0d9eb01e4c2 |
children |
line wrap: on
line diff
--- a/xsl/base-html-stylesheet.xsl Fri Mar 27 00:01:58 2009 -0700 +++ b/xsl/base-html-stylesheet.xsl Fri Mar 27 11:54:22 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>