Sub topic 2
How direct traffic is handled
This chapter assumes you know how GA4 reports conversions (key events), what UTM parameters are, and how channel groups label traffic.
What counts as direct traffic
Direct traffic is a session that GA4 cannot tie to a source or medium. It usually comes from someone typing the URL, using a bookmark, or arriving from a link with no referrer. GA4 labels it (direct) / (none).
Direct traffic in last-click attribution
The cross-channel last-click model gives full credit to the last non-direct touchpoint before the conversion, within the lookback window. A direct visit receives credit only when it is the sole touchpoint in the path.
| Conversion path | Credited channel |
|---|---|
| paid_search, email, direct | |
| direct | direct |
The data-driven attribution model
Data-driven attribution (DDA) splits credit across touchpoints. It compares paths that ended in a conversion with paths that did not, and estimates how much each touchpoint raised the chance of converting. Direct visits count as touchpoints in this model, so they can receive a share of credit. GA4 offers DDA only when the property has enough conversion and interaction data.
Lookback windows
A lookback window sets how far back GA4 searches for earlier touchpoints. Acquisition conversions default to 30 days, and other conversions default to 90 days. A shorter window credits only recent touchpoints. A longer window credits older ones, which can move credit away from late-stage channels.
Google paid channels last-click model
GA4 applies a separate last-click model to Google paid channels. This is one reason Google Ads totals can differ from cross-channel totals.
Setting the reporting attribution model
- Open Admin, then Attribution settings.
- Under Reporting attribution model, choose a model and set the lookback windows.
- Save. The change affects attribution reports, not the raw event data.
# Toy last-click rule (illustration only, not GA4's implementation).
def last_click(path):
non_direct = [c for c in path if c != "direct"]
return non_direct[-1] if non_direct else "direct"
print(last_click(["paid_search", "email", "direct"])) # email
print(last_click(["direct"])) # directExercise
A customer clicks a paid search ad, returns later by typing the URL, and then converts. Under cross-channel last-click, which channel gets credit, and why?
Show answer
Paid search gets credit. The final direct visit is skipped because a non-direct touchpoint (paid search) exists in the path within the lookback window.