New Javascript api tracker


(Mezghena) #1

I’m using the latest version of piwik (0.2.37) and when I use the new javascript api call
try {
var piwik = Piwik.getTracker(pkBaseURL + “piwik.php”, 1);
piwik.trackPageView();
piwik.enableLinkTracking();
} catch( err ) {
var txt=“There was an error on this page.\n\n”;
txt+="Error description: " + err.description + “\n\n”;
txt+=“Click OK to continue.\n\n”;
alert(txt);
}

I got an error that the Piwik obbject doesn’t exist.

So where can I find the new javascript file.

thanks


(vipsoft) #2

Patience young grasshopper.

The new JavaScript tracking API is one of the changes in the upcoming 0.4.0 release.


(Mezghena) #3

[quote=vipsoft @ May 21 2009, 09:53 PM]Patience young grasshopper.

The new JavaScript tracking API is one of the changes in the upcoming 0.4.0 release.[/quote]

Thanks, I’m waiting style_emoticons/<#EMO_DIR#>/sad.gif


(rc_amsterdam) #4

Hi,

I’ve just installed Piwik 0.4 via the Upgrade function. But I still get the old Javascript code via this URL: /index.php?module=SitesManager&action=displayJavascriptCode&idsite=1

What’s wrong here?

Thanks!

RC

[EDIT] …Never mind…I was looking at 0.4RC1, in 0.4RC3 this is fixed