View Single Post
  #15  
Old 03-07-2008, 07:49 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

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

After the patch, you should see something like this:

Code:
<script src="http://www.google-analytics.com/ga.js" type="text/javascript"> </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-278520-9"); pageTracker._initData(); pageTracker._trackPageview(); </script>

The difference is that google's original code detects HTTPS, and writes it's url accordingly for the .js file. The google analytics module in X-Cart detects HTTPS in the PHP code, and determines the URL, so that the JS code is simplified.

Cheers
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote