Sub topic 6
How direct traffic is handled
This chapter explains why GA4 usually gives a conversion to an earlier channel instead of to "direct", what counts as direct traffic, and where the exception to this rule applies. It assumes you can read the standard GA4 reports and know what a key event is. It also assumes you know how source, medium and UTM parameters work, and that you have read the chapter on the cross-channel last-click model.
What GA4 means by "direct"
A session is labeled direct (source (direct), medium (none)) when GA4 has no campaign information for it. Typical causes:
- The visitor typed the URL, used a bookmark, or opened a link from an app that sends no referrer.
- The link had no UTM parameters or auto-tagging, and the browser sent no referrer.
- The referrer was stripped, for example by an HTTP-to-HTTPS downgrade or a privacy setting.
- Tagging was lost during a redirect.
Direct is therefore a catch-all for "unknown", not a deliberate marketing channel. Treating it as a channel that earns credit would let missing data take conversions away from campaigns you can measure.
The core rule
In the cross-channel models, direct traffic is ignored when GA4 builds the credit for a conversion, unless it is the only touchpoint in the lookback window.
- If the path contains at least one non-direct touchpoint inside the lookback window, direct touchpoints receive no credit.
- If every touchpoint in the window is direct, the conversion is credited to direct.
This applies to the cross-channel last-click model and to the data-driven model. In both, a final direct visit does not take credit from an earlier non-direct touchpoint.
# Toy illustration of the direct-traffic rule (not GA4's implementation).
# Each path is a list of channels ending in a conversion. 'direct' is skipped
# unless it is the only touchpoint.
def last_click_credit(path):
non_direct = [c for c in path if c != 'direct']
return non_direct[-1] if non_direct else 'direct'
paths = [
['paid_search', 'email', 'direct'],
['organic_search', 'paid_social'],
['direct'],
['direct', 'direct'],
]
credit = {}
for p in paths:
channel = last_click_credit(p)
credit[channel] = credit.get(channel, 0) + 1
print(credit) # {'email': 1, 'paid_social': 1, 'direct': 2}The first path ends in a direct visit, but email wins because it is the last non-direct touchpoint. The fourth path shows that repeated direct visits still give credit to direct, because nothing else is in the window.
A worked scenario
A customer's week looks like this:
- Monday: clicks a paid search ad and browses.
- Wednesday: clicks a link in a newsletter (
utm_medium=email). - Saturday: types the site address and buys.
The purchase happens in a direct session. Under cross-channel last click, the credit goes to email, the last non-direct touchpoint. Under data-driven attribution, the credit is shared between paid search and email, and direct gets nothing. Direct would only receive credit if the Monday and Wednesday visits fell outside the lookback window.
The lookback window therefore decides whether the exception applies. If the email click happened 45 days before the purchase and the window is 30 days, the window contains only the direct visit and the conversion goes to direct. Check the window setting before you conclude that direct is "winning".
Why GA4 works this way
The rule reflects what direct traffic usually is. Much of it is returning visitors who first arrived through a campaign and later came back by habit or bookmark. Crediting the final direct visit would hide the channel that brought the customer in. Ignoring direct moves the credit to the last touchpoint that can be identified.
The cost is that some real direct demand, such as brand awareness built offline, shows up as credit for whichever tracked channel happened to precede it. Neither answer is "true". The rule is a convention that favors measurable channels.
Where direct still appears in your reports
The ignore-direct rule applies to the attribution model, not to every report. This causes much of the confusion.
| Report or dimension | Direct behavior |
|---|---|
| Model comparison and conversion paths (Advertising workspace) | Follows the selected attribution model, so direct gets credit only when it is the sole touchpoint. |
| Reports using key events attributed by the reporting attribution model | Follows the model. |
| Traffic acquisition (session-scoped) | A session with no campaign data is shown as `Direct`. Sessions are classified individually, and the report does not look back at earlier visits. |
| User acquisition (first user, user-scoped) | Shows the channel of the user's first visit. Direct appears only if the first visit was direct. |
A property can therefore show many conversions under Direct in Traffic acquisition and few in the model comparison report. Both are correct for their scope. The chapter on dimension scopes covers this in more detail.
Reducing inflated direct traffic
Because direct means "unknown", a large direct share often signals a tagging problem rather than customer behavior. Check these first:
- Missing UTM tags on email, social posts, QR codes, PDFs and app links. Email clients and messaging apps often send no referrer.
- Redirect chains that drop the query string or the referrer. Test the landing URL after every redirect.
- Cross-domain journeys. If the checkout lives on another domain and cross-domain measurement is not configured, a returning visitor starts a new session that looks direct or self-referred.
- Payment gateways and third-party login pages. Return traffic from these should be listed as unwanted referrals so the session does not restart with the gateway as its source.
- Session timeouts. A long gap on a page can end a session, and the next interaction can start a new session without campaign data.
A tagged landing URL keeps the session out of direct:
https://www.example.com/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_saleWithout those parameters, a click from a newsletter app that sends no referrer is recorded as direct.
Edge cases
- Direct-only paths are legitimate. A returning customer who never arrived through a tracked campaign inside the window really is direct, as far as GA4 can tell.
- Window length changes the share. A shorter lookback window removes older non-direct touchpoints, which increases the number of conversions credited to direct. This is a common cause of the direct share changing after a settings change.
- Reports can differ from other tools. Google Ads and third-party analytics tools may handle direct visits differently, for example by crediting the last click regardless of channel. Their totals will not match GA4's. This is expected, not a bug.
- Direct is not the same as "unassigned". Unassigned is a channel group value for traffic that matches none of the channel rules. Direct has its own rule: source
(direct)and medium(none)or(not set). Do not merge the two when diagnosing. - Processing delay. Attribution results can take time to appear. Compare periods only after the data has finished processing.
Checklist for diagnosing a direct-traffic question
- Which report are you reading, and is its scope session, user or event?
- Does the report use the attribution model or classify each session separately?
- What is the lookback window, and did the customer's earlier touchpoint fall inside it?
- Are campaign links tagged, and do redirects keep the parameters?
- Is cross-domain measurement set up, and are payment gateways listed as unwanted referrals?
Exercise
A customer clicks a paid social ad on day 1, then buys on day 10 after typing the URL into their browser. The lookback window for the conversion is 30 days. Under cross-channel last click, which channel gets the credit? What changes if the window were 7 days and the ad click had happened on day 1 and the purchase on day 10?
Show answer
With the 30-day window, the paid social click is inside the window and is the only non-direct touchpoint, so paid social gets 100% of the credit. The direct visit is ignored. With a 7-day window, the day 1 click falls outside the window, so the only touchpoint in the window is the direct visit, and the conversion is credited to direct.
Exercise
Your Traffic acquisition report shows 40% of conversions under Direct, but the model comparison report under last click shows only 12%. Give two reasons this can be correct.
Show answer
First, Traffic acquisition is session-scoped, so each session is classified on its own and a returning visit with no campaign data is labeled Direct. The model comparison report applies the attribution model, which ignores direct when an earlier non-direct touchpoint exists in the lookback window. Second, the two reports can differ because the attribution model looks back across earlier visits, while the session report does not, so conversions that the model credits to an earlier channel still appear as Direct in the session report.