To start measuring session time more precisely, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Tags.
- On the left, click Piwik PRO.
- In Data collection, turn on Measure session duration precisely.
- 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.
- Click Save for the tag and click Publish.
- Done!
Note: If you turn on this feature, it will impact the total actions on your account. Read more