View Single Post
  #13  
Old 03-07-2008, 05:46 AM
 
AG9V AG9V is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 73
 

Default Re: [PATCH] Update to non-legacy Google Analytics code

I do have a question about the GA code that should show after applying this patch.

The old GA code looks like this in my "View Source"
Quote:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-3328223-1";
urchinTracker();
</script>


The new GA code should look like this:

Quote:
<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-3328223-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

Is the new GA code what we should be seeing in our pages after applying the GA Module patch?
__________________
X-Cart Gold 4.1.10
XCSEO Pro 1.1.7
IIS 7 / Windows 2008
PHP Version 5.2.6
MySQL Version 5.0.51a
Reply With Quote