diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2008-03-16 22:48:52 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2008-03-16 22:48:52 +0000 |
| commit | 8a6e7ab77ad717ebf3e6cc0ce49266a9b45ae2bb (patch) | |
| tree | 13cbf90cca78f957616f45d944d6668b47117bb6 /templates | |
| parent | ab456c31e1cad64b9827d33f7fb1fce00daefd40 (diff) | |
Update Google Analytics tracking code to new style
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/footer.tpl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/footer.tpl b/templates/footer.tpl index d5c0396..6cf9020 100644 --- a/templates/footer.tpl +++ b/templates/footer.tpl @@ -7,10 +7,15 @@ </div> </div> -<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script> <script type="text/javascript"> - _uacct = "UA-1658795-2"; - urchinTracker(); + 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"> + var pageTracker = _gat._getTracker("UA-1658795-2"); + pageTracker._initData(); + pageTracker._trackPageview(); </script> </body> |
