Sub topic 3
First-user versus session scope
This chapter assumes you can open a GA4 property, know what a session and an event are, and have seen the Reports menu. It covers why GA4 gives two different answers to "where did this visitor come from?" and how to pick the right one.
Two questions, two scopes
GA4 reports acquisition at two levels.
- User scope asks where a person was first acquired. The answer is set once, on the first visit, and does not change.
- Session scope asks what brought a person to this particular visit. Every session gets its own answer.
A scope is the level at which a dimension is attached to your data. A dimension only compares cleanly with metrics of the same scope. Mixing scopes is the most common reason acquisition numbers fail to match.
The first-user dimensions
First-user dimensions record the source of a user's first visit. They have names that begin with "First user".
| Dimension | API name |
|---|---|
| First user source | `firstUserSource` |
| First user medium | `firstUserMedium` |
| First user source / medium | `firstUserSourceMedium` |
| First user campaign | `firstUserCampaignName` |
| First user default channel group | `firstUserDefaultChannelGroup` |
GA4 stores these values the first time it sees a user, and later visits never overwrite them. The User acquisition report is built on these dimensions.
"First" depends on the identifier GA4 uses. By default this is a browser cookie, stored as the client ID. A person who clears cookies, switches browsers, or moves from a phone to a laptop looks like a new user. Their "first" visit is counted again, and the source of that visit becomes a new first-user value.
The session dimensions
Session dimensions record what started one session. They begin with "Session".
| Dimension | API name |
|---|---|
| Session source | `sessionSource` |
| Session medium | `sessionMedium` |
| Session source / medium | `sessionSourceMedium` |
| Session campaign | `sessionCampaignName` |
| Session default channel group | `sessionDefaultChannelGroup` |
These values come from the traffic source seen when the session began, such as UTM parameters or the referrer. One returning user can have a different session source on each visit. The Traffic acquisition report is built on these dimensions.
One user, three visits
Suppose Dana visits your site three times.
- Monday: she clicks a link in your email newsletter. Source/medium is
newsletter / email. - Wednesday: she searches for your brand on Google and clicks an organic result. Source/medium is
google / organic. - Friday: she types your address into the browser. Source/medium is
(direct) / (none).
The two scopes describe Dana as follows.
| View | Rows produced |
|---|---|
| First user source / medium | `newsletter / email` with 1 user |
| Session source / medium | `newsletter / email` (1 session), `google / organic` (1 session), `(direct) / (none)` (1 session) |
The user view credits the newsletter for Dana. The session view splits her three visits across three sources. Both are correct. They answer different questions.
What each scope is good for
Choose the scope from the question you want to answer.
| Question | Scope | Report |
|---|---|---|
| Which channels bring in new audiences? | User | User acquisition |
| Which campaign introduced the people who later bought? | User | User acquisition |
| Which channels drive visits right now? | Session | Traffic acquisition |
| Which source has the best engagement rate per visit? | Session | Traffic acquisition |
| Which traffic should I credit for this week's spike? | Session | Traffic acquisition |
Use user scope for questions about discovery and audience growth. Use session scope for questions about day-to-day traffic and visit quality.
Why the totals do not match
Compare a month in both reports and you will see differences.
- Different counting units. User acquisition emphasizes new users and users. Traffic acquisition emphasizes sessions. A returning user adds sessions but not new users.
- Returning users keep their original credit. A user first acquired in January can visit from other sources in March. Their March sessions are credited to the March session sources, while their user credit stays with January's first-user source.
- Date ranges. A user whose first visit was before your date range can still appear in the range as a returning user. Their first-user source is the old one.
- Direct fallbacks. If a session has no usable source information, GA4 may report it as Direct. A first visit with no source is stored as Direct, and that value stays attached to the user.
A mismatch between the two reports usually means that scopes are being compared, not that data is lost.
Mixing scopes in a report
You can combine a user-scoped dimension with session metrics, and the report will still run. The meaning depends on how the pair is read.
firstUserSourceMediumwithsessionsgives the number of sessions generated by users who were first acquired through each source. It does not tell you how many sessions each source brought in.sessionSourceMediumwithnewUsersis an example of a pairing that can mislead, because the new user count follows the session that created the user.
When you build a custom report or Exploration, label the scope in the title or description. A reader who sees "Source / medium" without a prefix may assume either scope.
The same distinction in the Data API
The scope is visible in the request. Compare these two requests, which differ only in the dimension.
{
"dateRanges": [{ "startDate": "28daysAgo", "endDate": "yesterday" }],
"dimensions": [{ "name": "firstUserSourceMedium" }],
"metrics": [{ "name": "newUsers" }, { "name": "totalUsers" }, { "name": "sessions" }],
"orderBys": [{ "metric": { "metricName": "totalUsers" }, "desc": true }],
"limit": 10
}{
"dateRanges": [{ "startDate": "28daysAgo", "endDate": "yesterday" }],
"dimensions": [{ "name": "sessionSourceMedium" }],
"metrics": [{ "name": "newUsers" }, { "name": "totalUsers" }, { "name": "sessions" }],
"orderBys": [{ "metric": { "metricName": "sessions" }, "desc": true }],
"limit": 10
}In the first, sessions counts every session by users first acquired through each source, including later visits from other sources. In the second, sessions counts the sessions that each source started. The totals of sessions across all rows are the same. The distribution across rows differs.
Edge cases to know
- Late-processed data. Acquisition data can be revised for a short time after collection, so recent days may shift slightly.
- Users who existed before your date range. Their first-user source is still reported, even if the first visit is outside the range.
- Cookie loss and device changes. These produce extra "first" visits and inflate new users. Signed-in tracking with a User-ID, where configured, reduces this.
- Campaign values on the first visit only. If the first visit has no UTM tags but later visits do, the user's first-user campaign stays
(not set)or(direct). - Session source can change within a visit window. A new session starts after 30 minutes of inactivity by default, so a return from a different link within one browsing period can create a second session with a different source.
Checklist for choosing a scope
- Write the question as a sentence.
- If it contains "first", "new", "introduced", or "acquired", use user scope.
- If it contains "visit", "session", "traffic today", or "this campaign's clicks", use session scope.
- Prefix any custom dimension or report title with the scope.
- When two reports disagree, check the scope before suspecting the data.
Exercise
A marketer says, "The newsletter brought in 500 sessions last month, but User acquisition shows only 120 users from email." Name two reasons why both numbers can be correct.
Show answer
First, they count different units: sessions versus users. One user can generate several sessions, so 500 sessions can come from fewer people. Second, they use different scopes: Traffic acquisition credits each session to its own source, while User acquisition credits a user to the source of their first visit only. Some of the 500 sessions may come from users first acquired through other channels, and some email-acquired users may later return through other sources.
Exercise
You want to know which channel introduced the customers who purchased this quarter. Which dimension should you use, and which report is the starting point?
Show answer
Use the user-scoped dimension firstUserDefaultChannelGroup (or first user source / medium). The starting point is the User acquisition report, which credits each user to the source of their first visit.