In web analytics and user activity measurement, a session is a period of continuous interaction between a visitor and a website or app. This interaction is recorded by analytics tools and assigned to a unique identifier, which groups the actions taken by the same user within a defined time frame. Understanding the concept of a session is essential to correctly interpret metrics such as average duration, pages per session, and bounce rate.
Sessions are the basic unit on which many traffic reports are built. They let you distinguish a single user who returns to the site multiple times from multiple different users, and assess how long and how intensively each one interacts with the content. However, the precise definition of a session depends on the measurement tool you use and its default settings.
What distinguishes a session from a single visit
A session is a set of interactions a user performs on the site within a continuous time frame. Analytics tools identify it by assigning a unique identifier to the visitor and recording their activities until a closing condition occurs. In the absence of new actions, the session expires after a predefined period of inactivity, commonly set to thirty minutes.
A session is not the same as a user: the same visitor can generate multiple sessions at different times, even on the same day, if they interrupt and resume activity beyond the inactivity threshold. Likewise, a session can include many page views or just one, depending on behavior.
When it starts and when it ends
A session starts when the system detects a user’s first meaningful interaction with the site. In most tools this first interaction corresponds to a page load, but some configurations require a specific event, such as a click or a purchase, for the session to be considered valid.
It can end for several reasons, including exceeding the inactivity time, closing the browser, midnight arriving according to the configured time zone, or the start of a new acquisition campaign that changes the traffic source.
Inactivity timeout
The inactivity timeout is the period of time that must pass without new interactions for the session to be closed automatically. If the user performs a new action within that interval, the session continues; otherwise, the next activity will start a new session.
Change of traffic source
When a user arrives on the site from a different source than the one that originated the current session, many tools close the existing session and open a new one. This mechanism allows conversions to be correctly attributed to the campaign or channel that actually brought the visitor.
Metrics calculated from sessions
Sessions are the basis for many metrics used to evaluate a site’s performance. They provide the denominator for calculating average duration, average number of pages viewed, and the percentage of sessions that end without interaction.
Some of these metrics take on different meanings depending on whether they are calculated on sessions or on users. Distinguishing the two levels is essential to avoid misleading interpretations in reports.
Average session duration
Average session duration expresses the total time users spend on the site divided by the number of sessions. The value is influenced by the calculation method adopted and by the presence of very short sessions, which can significantly lower the average.
Pages per session
Pages per session indicates how many page views are recorded, on average, in each session. A high value suggests a good level of content exploration, while a low value can signal limited interest or navigation difficulties.
Session and user: two different units of measurement
While a session represents an episode of interaction, a user represents the person or device that generates one or more episodes. A single user can produce many sessions over a reference period, just as a session is always attributable to a single user.
This distinction deeply affects reports: counting sessions means measuring the volume of visits, while counting users means measuring the actual reach of the audience. The two quantities are never identical and should be read in a complementary way.
| Aspect | Session | User |
|---|---|---|
| Unit of measurement | Interaction episode | Person or device |
| Duration | Limited by timeout | Persistent over time |
| Multiplicity | Multiple sessions per user | One user for multiple sessions |
| Impact on reports | Measures volume of visits | Measures audience reach |
| Identification | Temporary identifier | Persistent identifier |
What can change the number of sessions
The number of recorded sessions depends not only on actual user behavior but also on technical choices and external conditions. Different configurations can produce significantly different counts on the same traffic data.
- Inactivity timeout duration set in the analytics tool.
- Presence of multiple traffic sources that alternate during navigation.
- Time zone setting that determines the day change.
- Blocking of cookies or tracking technologies by the user.
- Use of multiple devices or browsers by the same person.
- Differences between page-based measurement and event-based measurement.
- Application of filters that exclude internal or automated traffic.
- Updates to attribution rules introduced by the tools.
Frequently asked questions about sessions
What distinguishes a session from a page view?
A page view is the single loading of a page, while a session is the set of page views and interactions performed within a continuous interval. A session can contain many page views or just one.
How long does a session typically last?
The duration depends on user behavior and the configured timeout. In the absence of new interactions, the session normally closes after thirty minutes of inactivity, but the interval can be changed in the tool’s settings.
Why can the same user generate multiple sessions?
Each time the user interrupts activity beyond the expected inactivity time, the next interaction is recorded as a new session. The same happens when the traffic source changes or when the browser is closed and reopened.
Are sessions the same as unique visitors?
No, they are two different metrics. Unique visitors count distinct people or devices, while sessions count interaction episodes. The number of sessions is therefore generally higher than that of unique visitors.
How does cookie blocking affect session counting?
When cookies or tracking technologies are blocked, the tool may not recognize subsequent interactions as part of the same session. This tends to produce a higher number of short sessions and lower overall report accuracy.
Does a session always end at midnight?
Many tools automatically close active sessions at midnight according to the configured time zone. As a result, navigation that continues beyond that time is split into two distinct sessions.
From glossary to projectDo you really know which user actions generate results?Conversion tracking with GA4 and Google Tag Manager measures the return of campaigns and content on correctly configured data.Discover conversion tracking
Related entries:
Pages per session Google Analytics bounce rate Google Analytics data Time on page
