Mercurial > hgbook
changeset 699:c3c5b964901e
Update Google Analytics info
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 27 Mar 2009 11:54:22 -0500 |
parents | 7893b3824715 |
children | de5b1753e865 |
files | web/hgbook/templates/boilerplate.html xsl/base-html-stylesheet.xsl |
diffstat | 2 files changed, 18 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/web/hgbook/templates/boilerplate.html Fri Mar 27 00:01:58 2009 -0700 +++ b/web/hgbook/templates/boilerplate.html Fri Mar 27 11:54:22 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: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>