Show how much time people spend on average on specific pages
The biggest problem of time on page is in case of bounce and exit pages. They are not captured . How do u solve it
The plan is to use the Navigator.sendBeacon()
API to solve this specific issue (more info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)
Happy to share how we built time-on-site tracking features that overlay with conversion rates. One issue that comes into play is users minimizing screen and coming back hours or days later.
Here is how ackee ( an open source analytics tool) does track the time on page: https://github.com/electerious/ackee-tracker/blob/master/src/scripts/main.js#L182
Thank you all for your contribution. We’re moving this thread to Github: https://github.com/plausible/analytics/issues/111