Method to tell Piwik a visitor is still there without visitor-triggered actions


#1

In german support forum a user would like to accurately track visiting times for a page with a shoutbox on it: 301 Moved Permanently. The shoutbox seems to be the main feature of that page. Visitors rarely click links but just watch for new shouts. Because of missing actions Piwik isn’t able to track visting times correctly.

Is there a Piwik JS method which could be triggered by e.g. new shouts that appear in the shoutbox to inform Piwik that a visitor is still viewing a page? I advised to call the trackPageView() method each time a shout appears which works but generates a lot of overhead.

If such a method doesn’t exist yet, i’d vote for a feature request. Could be useful in other AJAX applications, too.

Update: Just discovered 301 Moved Permanently and Support Ping requests to report a better 'time on page' · Issue #2041 · matomo-org/matomo · GitHub which covers about the same topic

regards,
Chris