I’ve started using Piwik about a week ago. I am using asynchronous tracking, and it is working very well so far, but there is one thing I cannot seem to do. I have a page which allows visitors to slide images in a gallery. I want each image slide action to be tracked as a page view. So I have code that does something like:
_paq.push( ['setDocumentTitle', image-title], ['setCustomUrl', image-permalink], ['setEcommerceView', sku, image-title, product-category], ['trackPageView'] );
But I am finding that no matter how many times this block is called it register only once as a page view, the very first time the page was loaded. I checked server logs, and Piwik is definitely not sending its GET requests each time that block is called, but if I debug and step through the js I can see those above lines are executing. It looks like the tracker is ignoring those requests until a page unload took place.
Now, this might be the expected behaviour, or not, but in either case, how can I force the trackPageView to record a view? I think this is a very desirable scenario to support considering the amount of Web 2.0 sites where no actual page requests take place from the server, yet they are trackable events worthy of an in-depth analysis.