switch to the new style google analytics code - this is one of the steps
authorStefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Thu, 30 Apr 2009 20:03:54 +0000 (20:03 +0000)
committerStefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Thu, 30 Apr 2009 20:03:54 +0000 (20:03 +0000)
necessary to make the website behave more sanely with https

git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2475 8f5c7a92-453e-0410-a47f-ad33c8a6b003

portal/template/common.html

index 290249c50c5c9dab9cd7412df545c51d1eea6997..5d6261a82405c8ffb1818731fcfb9dd78c9b3c6a 100644 (file)
 <!-- BEGIN extra_header_data -->
 {extra_header_data}
 <!-- END extra_header_data -->
-    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-1345454-1";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-1345454-1");
+    pageTracker._trackPageview();
+    } catch(err) {}
+    </script>
   </head>
   <body>
    <div id="pgContainerWrap">