---
title: "Webtrekk Analytics: Improved Page & Session Duration Calculation"
slug: "webtrekk-analytics-improved-page-session-duration-calculation"
updated: 2024-04-04T06:52:00Z
published: 2024-04-04T06:52:00Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webtrekk Analytics: Improved Page & Session Duration Calculation

**30 Apr 2019** 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.

> [!WARNING]
> Please be aware that an additional constant value is still being added by default (30 seconds by default).

**Example**

![](https://cdn.document360.io/554b9b98-6720-4d8b-9919-c7b203d72648/Images/Documentation/cc3f7ed2-5e3e-401f-8b8b-b0c52ba25581.png)

| Page | Duration (sec) | Comment |
| --- | --- | --- |
| **1** | 180 | Time between Page 1 and Page 2: 10:00:00 -> 10:03:00 |
| **2** | 120 | Time between Page 2 and Page 3: 10:03:00 -> 10:05:00 |
| **3** | 150 | 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. |
