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.
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