www: 25ded193: Remove the old Google Analytics code and...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Sep 25 17:50:23 EDT 2008


-----------------------------------------------------------------
Revision: 25ded193b8eb0076b12c2a324cd8ff9562b10bc8
Ancestor: 5c4ecd54290a5a6eb0ae7d19d20270d354b46d54
Author: markdoliner at pidgin.im
Date: 2008-09-25T21:48:13
Branch: im.pidgin.www
URL: http://d.pidgin.im/viewmtn/revision/info/25ded193b8eb0076b12c2a324cd8ff9562b10bc8

Modified files:
        inc/footer.inc inc/header.inc

ChangeLog: 

Remove the old Google Analytics code and add the new one.  There are
three pieces to this change
1. Now using the newer ga.js file instead of urchin.js
2. I moved the javascript to just above the closing body tag, which is
   where Google recommends that it be (instead of in the <head>).
3. Changed the tracker ID.  We're not really sure who the old ID
   belongs too... I'm sure it was one of us, but we don't seem to
   know who.  Currently Luke, Richard, Daniel, Sean and I have
   access to this one.  Unforunately changing the ID means we don't
   have access to any old data.  If the old ID belongs to you and
   you think we should still use it please let us know!  Historical
   data is nice.

A nice side effect of these changes is that Google's js will fetch
their file from https when pidgin.im is accessed over https

-------------- next part --------------
============================================================
--- inc/footer.inc	6b3eeff0bdeeca7bd1aa39ebff677784db77263c
+++ inc/footer.inc	af4046e4eadcc1dac88f5ce773117be3730ac0ce
@@ -4,6 +4,17 @@
 <a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=235&amp;type=1" width="88" height="31" alt="SourceForge.net" /></a>
 </div>
 
+<!-- Begin Google Analytics tracking code -->
+<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">
+var pageTracker = _gat._getTracker("UA-2814037-1");
+pageTracker._trackPageview();
+</script>
+<!-- End Google Analytics tracking code -->
+
 </body>
 </html>
 
============================================================
--- inc/header.inc	399aaad4026899617ebb99b29edd4de048ec0d57
+++ inc/header.inc	1106b41ae22c55ff9790372e2fba4eef1e0b6873
@@ -55,12 +55,6 @@ $sections['Support & Development'] = "ht
     <link rel="stylesheet" href="/shared/css/ie7.css" type="text/css" />
   <![endif]-->
 
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1802520-1";
-urchinTracker();
-</script>
 </head>
 <body>
 


More information about the Commits mailing list