Page 1 of 1

Google Analytics - new version of their script

Posted: Wed Mar 25, 2009 2:52 pm
by petval
Hi,
I've just noticed that Google Analytics offers a new version of their tracking script (ga.js) which brings new features. I checked the plugin and it contains the old urchin.js which Google states about:
Please note that urchin.js will not receive feature updates and is not compatible with new features.
It would be nice to have it in the next version of the plugin :)

Re: Google Analytics - new version of their script

Posted: Wed Mar 25, 2009 2:57 pm
by petval
btw here's the code

Code: Select all

<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-xxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}</script>

Re: Google Analytics - new version of their script

Posted: Wed Mar 25, 2009 3:17 pm
by garvinhicking
Hi!

The plugin does use ga.js - it seems you are using an outdated version of the plugin. Version 1.2.1 is the most recent one, available through spartacus.

Regards,
Garvin

Re: Google Analytics - new version of their script

Posted: Thu Mar 26, 2009 11:30 am
by petval
great, sorry I didn't check new version before posting.