Ajax pages logging

(gobezu) #1

As I do Ajax calls how can I submit the url to be logged in this call or is there any other way?

I read the following on the page http://piwik.org/docs/javascript-tracking/

piwik_action_name = document.title;
piwik_idsite = 1;
piwik_url = ‘http://yourwebsite/piwik/piwik.php’;
piwik_log(piwik_action_name, piwik_idsite, piwik_url);

But doesn’t really fit to passing Ajax url:s…

Thanks for this so-far great tool.


(vipsoft) #2

In the current version of piwik.js, you can use: piwik_track().