How can I precisely measure session time?
If you want to measure session time more precisely, you can adjust your tracking code to use the heartbeat timer. To set up the code you will use the Piwik PRO tag in Tag Manager.
When you are using this method the session time will be measured more precisely and also the time spent on a page will be more accurate.
To change the measuring of the session time, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Tags.
- On the left, click Piwik PRO.
Accurately measure the time spent on each page.
- Set the request frequency.
- Click Save for the tag and click Publish.
Alternatively, you can add the following line to your tracking code:
setHeartBeatTimer( minimumVisitLength, heartBeatDelay )