Sub topic 6
How GA4 Defines a Session
Assume you understand page views, users, and basic GA4 navigation. This chapter explains how GA4 groups events into sessions and why session counts can differ from other reports.
A session is a period of activity
A session is a group of user interactions that happen during one visit. Interactions include page views, scrolls, clicks, purchases, and other events.
GA4 starts a session when a user views a page or screen and does not already have an active session. GA4 automatically collects a session_start event at that point. The session receives a session ID, commonly available in event data as ga_session_id. GA4 also records a session number for the user, such as the user's first or third session.
The session ID identifies the session. It does not identify the user. One user can have many session IDs over time.
The inactivity timeout
By default, a session ends after 30 minutes of inactivity. Inactivity means GA4 receives no qualifying activity from the user during that period.
For example:
- A user opens a product page at 10:00.
- The user clicks to another page at 10:10.
- The user does nothing until 10:45.
- The user opens another page at 10:46.
- GA4 starts a new session because more than 30 minutes passed since the previous activity.
The timeout is a property setting. An administrator can adjust it when the normal visit pattern requires a different value. A media site with long reading pauses might choose a longer timeout, while most sites use the default.
A browser tab remaining open does not keep a session active. GA4 needs activity, not merely an open tab.
> callout note > Session timeout measures inactivity between events. It does not measure how long the browser window remains open.
What does not automatically start a new session
GA4 does not automatically start a new session at midnight. A visit from 11:55 PM can continue past midnight if the user remains active.
A change in campaign or traffic source also does not automatically start a new session. For example, if a user arrives from an email and later clicks a tagged campaign link during the same active visit, GA4 does not split the visit solely because the campaign changed.
This behavior differs from some older analytics implementations, so avoid assuming that every source change or date boundary creates another session.
Sessions and engaged sessions
Every engaged session is a session, but not every session is engaged. GA4 classifies a session as engaged when at least one of these conditions is met:
- It lasts longer than 10 seconds.
- It includes at least one key event.
- It includes at least two page views or screen views.
The 10-second threshold can be configured for the property. The session still exists if it meets none of these conditions; it is simply not an engaged session.
When comparing session figures, check whether a report uses total sessions, engaged sessions, or a different scope. Filters, consent settings, late events, and reporting time zones can also cause values to differ.
Exercise
A user views a page at 09:00, clicks another page at 09:12, and returns at 09:50. How many sessions does GA4 normally record?
Show answer
Two sessions. The 38-minute gap between the second page view and the return exceeds the default 30-minute inactivity timeout.