Sub topic 2
Users, sessions, and events: the units being counted
Every number in an acquisition report counts something: people, visits, or actions. This chapter defines those three units in GA4 and shows how they relate. The next chapter builds on them to explain scope.
This chapter assumes you can open GA4 reports on a property that already collects data. It also assumes you know what a visit and a pageview are.
Why the unit matters
Two reports can both be titled "acquisition" and still show different totals for the same week. Usually neither report is wrong. They count different things. If you can't say whether a column holds users, sessions, or events, you can't judge whether a comparison is fair.
GA4 is event-based. The event is the base unit, and users and sessions are built from events.
Events
An event is one recorded interaction. Examples are page_view, scroll, click, purchase, and session_start. Each event has a name, a timestamp, and parameters that describe it, such as the page URL or the purchase value.
Some events are collected automatically. Others come from enhanced measurement, and others you define yourself. Events matter for acquisition in two ways:
- Event counts are the raw material. GA4 never stores a "session" as a separate record. It infers sessions from events that share a session ID.
- Some events act as markers.
session_startmarks a new session, andfirst_visitmarks a user's first time on the site. Both drive metrics you will use constantly.
Sessions
A session is a group of events from one user within a continuous period of activity. GA4 starts a session when it sees the first event after no session was active, and it records a session_start event. The Sessions metric counts these starts.
Each session gets two parameters you will meet again in BigQuery:
ga_session_idis a timestamp-like number identifying the session.ga_session_numberis the count of this user's sessions so far, starting at 1.
When a session ends
A session ends after a period of inactivity. The default session timeout is 30 minutes, and an admin can change it from 5 minutes up to 7 hours 55 minutes in the data stream settings. Two behaviors differ from older Google Analytics versions:
- A session does not end at midnight. A visit that runs across midnight stays one session.
- A new campaign parameter in the middle of a visit does not start a new session. The session keeps the traffic source it started with.
The second point is important for acquisition. A visitor who arrives through a newsletter link, leaves the tab open, and later returns through a paid ad within the timeout is still in the same session. That session stays credited to the newsletter.
Engaged sessions
An engaged session is a session that meets at least one condition:
- It lasts longer than 10 seconds. This engagement timer is adjustable up to 60 seconds.
- It includes a key event (a conversion).
- It has at least two page or screen views.
Engagement rate is engaged sessions divided by sessions. Bounce rate is its complement, the share of sessions that were not engaged.
Users
A user is GA4's best guess at one person, identified by a stored identifier rather than by anything you know about them. Which identifier GA4 uses depends on your setup:
- The client ID is a random ID stored in the
_gafirst-party cookie on a browser, or an app instance ID on a mobile app. It identifies a browser or install, not a human being. - A User-ID is your own ID for a signed-in person, sent by your implementation. It can connect activity across devices.
- Google signals and modeled data can add cross-device or behavioral estimates when they are enabled and consent allows.
The property's reporting identity setting decides how these are combined. The options are Blended, Observed, and Device-based. With Device-based identity, only the device identifier is used.
This has practical consequences. The same person on a laptop and a phone counts as two users unless a User-ID or Google signals links them. If they clear cookies or use a private window, they count as a new user. User counts are therefore approximations.
Three user metrics
GA4 offers several "user" metrics, and the names are easy to confuse:
| Metric | What it counts | Typical use |
|---|---|---|
| Active users | Distinct users with an engaged session, or for whom GA4 collected the first visit | The default "Users" metric in most reports |
| Total users | Distinct users who triggered any event | Wider count, includes users who never engaged |
| New users | Users for whom `first_visit` (web) or `first_open` (app) was recorded | Size of the new audience |
Active users is the number shown as "Users" in the standard reports. Total users is always at least as large as active users. When a chart shows a number lower than you expected, check which of the two is selected.
Large user counts are also estimated. GA4 uses a cardinality estimation algorithm for distinct counts, so exact figures can differ slightly between reports, Explorations, and the Data API.
How the three units fit together
The relationships follow a fixed hierarchy:
- One user has one or more sessions.
- One session has one or more events.
- Therefore events are greater than or equal to sessions, and sessions are greater than or equal to users, over the same date range and filter.
If you see a report where sessions are lower than users, the report is probably mixing units, such as an active-user count against a session count filtered differently. Treat that as a signal to check definitions.
A worked example shows the difference. Suppose Ana visits your site on Monday through an email link and views 3 pages. She returns on Wednesday through a search result and views 2 pages. Over that week:
- Users: 1, because Ana has one cookie.
- Sessions: 2, one on Monday and one on Wednesday.
page_viewevents: 5.- Source of the Monday session: the newsletter. Source of the Wednesday session: Google organic search.
The user was first acquired by the newsletter, but the Wednesday session came from search. This is why "where did this visitor come from?" has two valid answers. The next chapter explains how GA4 separates them.
Checking the units in BigQuery
If you export GA4 data to BigQuery, you can count all three units directly. Events are rows. Users are distinct user_pseudo_id values. Sessions are distinct pairs of user_pseudo_id and ga_session_id, because the session ID alone is not unique across users.
SELECT
COUNT(*) AS events,
COUNT(DISTINCT CONCAT(
user_pseudo_id, '-',
CAST((SELECT value.int_value
FROM UNNEST(event_params)
WHERE key = 'ga_session_id') AS STRING)
)) AS sessions,
COUNT(DISTINCT user_pseudo_id) AS users
FROM `my_project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20260101' AND '20260131';Expect the numbers to be close to, but not identical with, the interface. The interface reports active users, applies thresholds and estimation, and may include modeled data. The export holds raw events.
Common errors
- Adding up users across rows. A user can appear in several rows of a report, for example under two sources. The grand total is deduplicated, so it is smaller than the sum of the rows.
- Comparing sessions to users as if they were the same. A rise in sessions with flat users means the same people came back more often.
- Reading a high event count as high traffic. Events depend on how many are configured. Adding a scroll or click event raises the count without any new visitors.
- Ignoring the timeout. If you shorten the session timeout, sessions go up and engagement rate may change, with no change in real behavior.
Exercise
A visitor opens your site from a newsletter link on Monday and views 4 pages. On Thursday, the same browser returns from a Google search and views 2 pages. No cookies are cleared. How many users, sessions, and page_view events does GA4 record for the week, and why might the Users metric still show a different number from Total users?
Show answer
Users: 1, since the same client ID is used. Sessions: 2, because the visits are more than 30 minutes apart. page_view events: 6. Users usually shows active users, which counts only users with an engaged session or a first visit. Total users counts anyone who triggered any event, so it can be higher than active users but never lower.
Exercise
Why does the BigQuery query above combine userpseudoid with gasessionid instead of counting distinct gasessionid values alone?
Show answer
The gasessionid is a timestamp-like number set when a session starts, so two different users can have the same value. The pair of userpseudoid and gasessionid is unique for a session.