Webtrekk Analytics: Improved Page & Session Duration Calculation
As of this release we change the calculation for page duration & session duration, so that you get even more precise data. Until now, the page duration was calculated by comparing the timestamps of a page and its subsequent page. The difference between the two timestamps is page duration. For the session duration, the same logic is applied to all pages during a session. For the last page of a session, a constant value was being used (30 seconds by default). With this new release, the actions and media requests are taken into account when calculating the session duration and the page duration of the previous page. Instead of just adding a constant value, event and media requests on the previous page are being used to calculate the last page duration.
Please be aware that an additional constant value is still being added by default (30 seconds by default).
Time between Page 1 and Page 2: 10:00:00 -> 10:03:00
Time between Page 2 and Page 3: 10:03:00 -> 10:05:00
Time between Page 3 and Action 5 plus the additional constant value: 10:05:00 -> 10:07:00 + 30
The constant value to be added can be configured per account. Default = 30s.