Google Analytics - new version of their script

Creating and modifying plugins.
Post Reply
petval
Regular
Posts: 6
Joined: Mon May 28, 2007 1:14 pm

Google Analytics - new version of their script

Post 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 :)
petval
Regular
Posts: 6
Joined: Mon May 28, 2007 1:14 pm

Re: Google Analytics - new version of their script

Post 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>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Google Analytics - new version of their script

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
petval
Regular
Posts: 6
Joined: Mon May 28, 2007 1:14 pm

Re: Google Analytics - new version of their script

Post by petval »

great, sorry I didn't check new version before posting.
Post Reply