Update of /var/cvs/contributions/didactor2/src/core/templates/cockpit
In directory james.mmbase.org:/tmp/cvs-serv29201

Modified Files:
        footer.jspx 
Log Message:
updated to newer google analytics way


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/templates/cockpit


Index: footer.jspx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/templates/cockpit/footer.jspx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- footer.jspx 28 Mar 2008 17:01:41 -0000      1.5
+++ footer.jspx 22 Aug 2008 08:53:48 -0000      1.6
@@ -8,6 +8,7 @@
   <jsp:output omit-xml-declaration="true" />
 
   <div class="footer">
+    <c:catch var="exception">
     <mm:cloud method="asis">
       <mm:hasrank value="anonymous" inverse="true">
         <di:ifsetting component="core" setting="showtranslationbox">
@@ -18,16 +19,19 @@
       </mm:hasrank>
       <di:getsetting component="core" setting="google_analytics">
         <mm:isnotempty>
-          <script src="http://www.google-analytics.com/urchin.js"; 
type="text/javascript">
-            <jsp:text> </jsp:text>
+            <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">
-            _uacct="${_}";
-            urchinTracker();
+              var pageTracker = _gat._getTracker("${_}");
+              pageTracker._trackPageview();
           </script>
         </mm:isnotempty>
       </di:getsetting>
     </mm:cloud>
+    </c:catch>
+    <jsp:text>${exception}</jsp:text>
   </div>
 </mm:content>
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to