Lately I have been trying to execute trackPageView function within the ajax function I use to call the content pages, but have only been successful in recording pageviews for the index page, and not the content page which was ajaxed. There seems to be a lack of documentation on tracking ajax requests, so I am at a loss.
Has anyone successfully implemented the tracking of ajax requests with piwik, and if so, how did you pull it off?
I've tried to use trackLink() to log ajax calls but (correct me if I'm wrong) I have only the choice between 'link' and 'download" as linkType.
I would prefer to log these calls as standard "page views" with a specific url (instead of the regular document's url). Is there a trick to do that ?