Sub topic 10
Unassigned Traffic and How It Differs from `(not set)`
Assume you know how GA4 reports sessions, users, and events. You should also know that campaign URLs can include utm_source, utm_medium, and utm_campaign. This chapter uses those values to explain why traffic sometimes receives no useful channel label.
What “Unassigned” means
A channel group is a set of rules that places traffic into labels such as Organic Search, Paid Social, Email, Referral, or Direct. GA4 evaluates the traffic information available for a session or event against those rules.
Unassigned means GA4 had traffic information, but that information did not match any channel rule. For example, a link might use utm_medium=banner-x. GA4 can read the medium, but the value may not satisfy the rules for Display, Paid Search, Email, or another default channel.
Unassigned versus `(not set)`
These values describe different situations:
| Value | What it usually means | First thing to check |
|---|---|---|
| Unassigned | Data exists, but no channel rule matched it | Source, medium, and channel-group rules |
| `(not set)` | GA4 did not receive the value needed for that dimension or scope | Event implementation and report scope |
The exact reason for (not set) depends on the dimension. For a session-scoped channel dimension, the event may not be associated with a usable session. For another dimension, the required source or campaign value may simply be absent. (not set) is therefore a missing-value indicator, not a channel classification.
Do not automatically combine the two values in an analysis. A large Unassigned segment suggests that your naming or classification rules need attention. A large (not set) segment suggests missing or incompatible data.
How to diagnose Unassigned traffic
Start with the dimensions that fed the classification:
- Review the session source, session medium, and session campaign.
- Look for inconsistent spelling, capitalization, or punctuation.
- Check whether paid links use a recognized paid medium such as
cpc,ppc, or another value covered by your rules. - Confirm that redirects preserve UTM query parameters.
- Check whether a Google Ads or other advertising integration is linked and receiving the expected identifiers.
- Compare the affected traffic with the default channel-group definitions in the GA4 documentation.
- Check the date range. Channel-group changes do not necessarily reclassify historical data.
A medium such as email generally supports Email classification. A medium such as banner-x may produce Unassigned unless a matching custom rule exists.
import re
SEARCH_SOURCES = {"google", "bing", "duckduckgo"}
PAID_MEDIUM = re.compile(r"^(.*cp.*|ppc|retargeting|paid.*)$")
def classify(source, medium):
source = (source or "").lower()
medium = (medium or "").lower()
if source == "(direct)" and medium in {"(none)", "(not set)"}:
return "Direct"
if medium in {"email", "e-mail", "e_mail", "e mail"}:
return "Email"
if source in SEARCH_SOURCES and PAID_MEDIUM.match(medium):
return "Paid Search"
if source in SEARCH_SOURCES or medium == "organic":
return "Organic Search"
if medium in {"referral", "app", "link"}:
return "Referral"
return "Unassigned"
print(classify("promo", "banner-x"))This is only a simplified model. GA4's actual definitions include more source lists, channel rules, and special cases.
Exercise
A session has source newsletter and medium email, but appears as Unassigned. What should you check first?
Show answer
Check whether the values actually reached GA4, whether a redirect removed the UTM parameters, and whether the report uses a session-scoped channel dimension. The medium email normally matches Email, so the implementation or report data deserves investigation.