# Time on page: how is it calculated?

**URL:** <https://community.piwik.pro/t/time-on-page-how-is-it-calculated/3770>\
**Category:** Data collection and tags\
**Created:** [March 7, 2024, 4:38pm UTC](https://community.piwik.pro/t/time-on-page-how-is-it-calculated/3770 "2024-03-07T16:38:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [April 17, 2024, 6:48am UTC](https://community.piwik.pro/t/time-on-page-how-is-it-calculated/3770/4 "2024-04-17T06:48:18Z")

</div>

Hi @dav, @joao

@kamilb responded to this in a different thread. Does this answer your question?

> [@High "Average time on page"](https://community.piwik.pro/t/high-average-time-on-page/3663/7):
>
> Hi @dav, You are right here, Sorry for the confusion. Basically there is a timer set and if we go to a different tab when the timer didn’t finish (it keeps running on the page) it won’t send a ping request, it will start a new timer and if you are on the actual website when the new timer finishes it will send the ping request. On every page ‘blur’ and ‘focus’ events you should also see a ping request.

---

_[View the full topic](https://community.piwik.pro/t/time-on-page-how-is-it-calculated/3770)._
