How can I precisely measure session time?

Tag Manager

Needed permissions: owner, manage or edit & publish

To start measuring session time more precisely, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Tags.
  3. On the left, click Piwik PRO.
  4. In Data collection, turn on Measure session duration precisely.
    Piwik PRO tag
    • Measure session duration precisely: If turned on, you’ll get a precise measurement of session duration. Session duration is the length of time between opening the first page and closing the last one. However, pinpointing the exact moment a visitor closes the last page can be difficult. This is why this feature sends repeated ping requests to see if a visitor is still on the last page.

    Note: Ping requests are sent with decreasing frequency. The first one is sent 15 seconds after the page loads. The last one 30 minutes later. The frequency in seconds goes like this: 15, 30, 60, 120, 240, 480, 960, 1800.

  5. Click Save for the tag and click Publish.
  6. Done!

Note: If you turn on this feature, it will impact the total actions on your account. Read more

Was this article helpful?

Technical support

If you still have any questions, visit our community.
There’s always someone happy to help!

Back to help center