Average Time on Site for One Page

Hi,

I want to track the time spent by user between a page is loaded and closed – even no action is performed by the user on page.

How can we track this? How about executing some [piwik] script on onclose event of page?

Thanks,
Imran

This would be covered wth a bit of inaccuracy in Support Ping requests to report a better 'time on page' · Issue #2041 · matomo-org/matomo · GitHub