Visit duration

Visit duration is calculated within a single session.

A session is hashed from key page view data, including:

The user’s visit duration is the difference between the last and first page view of the session. Then, the visit durations for all hours are summed and divided by the number of user sessions to get the user’s average visit duration. Finally, by averaging all user visit durations and dividing by the total number of users, we obtain the site’s overall average visit duration.