Sub topic 6
How Direct Traffic Is Handled
This chapter assumes that you know the GA4 interface, key events, and basic traffic-source terms such as source, medium, and UTM parameters. The focus here is how GA4 treats direct traffic when it assigns credit for a key event.
What “direct” means in GA4
GA4 commonly records direct traffic with:
- Source:
(direct) - Medium:
(none)
A visit can be direct when someone types your URL, uses a bookmark, or arrives without a usable referrer or campaign parameter. Missing UTM parameters, broken redirects, privacy settings, and links from applications can also cause traffic to appear as direct.
Direct describes how GA4 identified the visit. It does not always mean that the person intentionally typed the URL.
Direct traffic in a conversion path
A conversion path is the sequence of eligible marketing touchpoints before a key event. For example:
Paid Search → Email → Direct → PurchaseIn GA4 attribution reports, direct usually does not replace a known earlier source. If the path contains a non-direct touchpoint, GA4 generally ignores the direct touchpoint when assigning attribution credit. The earlier eligible source can receive credit according to the selected attribution model.
If every touchpoint is direct, direct can receive the credit:
Direct → Direct → PurchaseThe result is different from a normal acquisition report. A session can still have a session source of (direct) / (none), even when that session does not receive conversion credit in an attribution report.
How this affects last-click attribution
The cross-channel last-click model assigns all credit to the last eligible touchpoint in the path. Direct is skipped when another eligible source exists.
| Conversion path | Last-click credit |
|---|---|
| Paid Search → Email → Direct | |
| Organic Search → Paid Social | Paid Social |
| Direct only | Direct |
This rule prevents a visit with no identifiable campaign information from taking credit away from a known marketing interaction.
The following Python example illustrates the rule. It is a simplified model, not GA4’s implementation:
def last_click_credit(path):
non_direct = [channel for channel in path if channel != "direct"]
return non_direct[-1] if non_direct else "direct"
paths = [
["paid_search", "email", "direct"],
["organic_search", "paid_social"],
["direct"],
]
credit = {}
for path in paths:
channel = last_click_credit(path)
credit[channel] = credit.get(channel, 0) + 1
print(credit)
# {'email': 1, 'paid_social': 1, 'direct': 1}Data-driven attribution and direct traffic
Data-driven attribution distributes credit based on how touchpoints affect conversion probability. Direct touchpoints are still part of the path data, but GA4 generally prevents direct from receiving credit when another eligible, non-direct source appears in the same path.
This does not mean direct traffic is removed from GA4. It remains visible in acquisition reporting and can receive credit for paths made entirely of direct visits.
Common errors
- Treating every direct visit as a lost campaign source.
- Assuming a direct session always receives conversion credit.
- Comparing session counts with attribution credit.
- Expecting attribution rules to repair missing UTM parameters or broken referrer data.
- Forgetting that lookback-window settings determine which earlier touchpoints are eligible.
Exercise
A customer arrives through paid search, returns through a direct bookmark, and completes a purchase. Which source normally receives credit under GA4 cross-channel last-click attribution?
Show answer
Paid search. The later direct visit is normally skipped because an eligible non-direct touchpoint already exists.