I am not sure what category to put this in, since it is an issue I have. Maybe it should be put in feature suggestions instead.
I am working on a single page application, and I want to track the time spent in the different parts of the page. In other words, I would like to send a new pageview to Piwik, every time the fragments in the URL change.
For the moment I keep track of the fragment changes, using window.onhashchange and it works, but when I try to send a new trackPageView request to Piwik nothing happens (is registered).
With GA it is possible to use something called Autotrack, to track the fragment changes and send a new pageview.
Is there anyway of sending multiple pageviews from one page and have them registered in Piwik?
Benval can you describe some of the changes you made to your router javascript to get hash URL changes to track. when I reload my page the page view is counted by piwik. however when I click there is no data updated or sent to piwik.
I am sorry for late reply, but I didn’t see a notification in my email
before now.
Since it was a project I worked on during the summer, I do not have access
to the code anymore. If I remember correctly I might have used something
like cache to store the desired hash fragments. It is also possible that I
am mixing up two different problems I had, and that this is way of, in that
case I am sorry.