I noticed recently something that confused me quite a lot: many pages on my website are granted of visits lasting ( I quote piwik ) 00:00:00s. I guess it happens, people closing immediately a window they just opened by mistake, but here it seems to occur an unusual number of time.
So here is my question: how does this “avg time on page” work ? What is it calculating exactly and how is it doing it ? If piwik displays a 00:00:00s visit, does it really mean that the visitor left immediately after opening the page ?
(Sorry for such a basic question… I guess it was already raised and most likely answered a hundred time, but I’ve failed to find the information so far )
Sorry for upping my own topic but the question is quite important to me. Can’t someone explain how this “avg time on page” works ? (or is my question stupid ? )
it’s the average amount of time users spent doing this action. It’s processed by taking the time for the NEXT pageview and substracting the time of this page view.
In case the page was the last page on the website, we could a time on page of 10 second.
Thanks a lot for your answer. I’d just like to be sure I understood :
When it is the last visited page, is it a 10s or a 0s visit that is counted ? If it’s 10s, then what can lead to a 0s visit ? Is it only a page immediately closed after its opening ?
Good news! Starting in Piwik 2.14.0 the new feature of tracking how long users stay on page (using a Heart beat timer “ping” request) has been released. You can enable it with
_paq.push(['enableHeartBeatTimer']);
By default, a ping request will be sent every 15 seconds. You can specify a custom ping delay (in seconds) by passing an argument, eg,
In my opinion times Average time means the average time all the visitors spend on the website. If ten people visited on the site like 1 visitor spend 60sec, 6 visitors spends 120sec, 3 spend 240sec etc then the total avg. time will be
((1x60) + (6 x 120) + (3 x 240)) / 10 = 150
so, the average time will be calculated like this.