How to precisely measure the session time?
If you want to measure the 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.
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 )