Sub topic 11
Why Traffic Shows Up as Direct or Unassigned
This chapter assumes you can open the Traffic acquisition report, that you know how source, medium, and campaign are set by UTM parameters, and that you know what a session is. It explains why GA4 reports sessions as Direct or Unassigned, how to tell the causes apart, and what you can fix.
Three labels that look alike
Three labels are often confused. They mean different things and have different fixes.
| Label | Where it appears | What it means |
|---|---|---|
| Direct | Default channel group, with source/medium `(direct) / (none)` | GA4 found no source information for the session. |
| Unassigned | Default channel group | GA4 has source and medium values, but they match no channel rule. |
| (not set) | Any dimension | GA4 has no value for that dimension on that row. |
Direct is a statement about missing information. Unassigned is a statement about a mismatch with the rules. (not set) is a placeholder for an empty field. A report can show all three at once, and each needs its own diagnosis.
How GA4 arrives at Direct
When a session starts, GA4 reads the referrer and any campaign parameters on the landing page URL. The order is roughly this:
- If the URL carries campaign parameters such as
utm_source,utm_medium, or agclidfrom a linked Google Ads account, GA4 uses them. - If not, GA4 looks at the HTTP referrer. A referrer from a search engine becomes organic search. Any other referrer becomes a referral.
- If neither exists, GA4 can reuse the source of the user's earlier session. This is the "last non-direct click" idea. If the user has no earlier source to reuse, the session becomes
(direct) / (none).
Direct therefore does not mean the visitor typed your address. It means GA4 had nothing to go on. Typed addresses and bookmarks are one cause, and there are many others.
Common causes of Direct traffic
The causes fall into two groups: visits that really have no source, and visits that lose a source on the way.
Real direct visits
- The visitor typed the address or used a bookmark.
- The visitor opened a link from a desktop app, such as a document or chat client, that sends no referrer.
- The visitor followed a link in a PDF.
Lost source information
- Links in email that carry no UTM parameters. Many email clients strip the referrer, so the session looks direct.
- Links from secure (HTTPS) pages to non-secure (HTTP) pages. Browsers drop the referrer on that step.
- Links that use
rel="noreferrer"or aReferrer-Policy: no-referrerheader on the source site. - A redirect on your own site that removes the query string, so UTM parameters never reach the landing page. This is common with
httptohttpsredirects,wwwredirects, and URL shorteners that do not pass parameters through. - Social apps that open links in an in-app browser and send no referrer.
- Sessions that continue after a cross-domain hop where measurement is not linked. The second site sees a new session without a source.
- Dark social. This means links shared through private messages, which carry no referrer.
The lost-source group is the one you can work on. Tagging links and checking redirects usually shrinks Direct more than anything else.
Why traffic shows up as Unassigned
Unassigned means GA4 had a source and medium, but no channel rule matched. The default channel group is rule-based. For example, a session counts as Email if its medium is email or e-mail. A session with medium newsletter matches nothing.
Typical causes:
- A UTM medium that is not on the recognized list, such as
utm_medium=newsletter,utm_medium=Email-Blast, orutm_medium=social_media. - Typos and inconsistent casing, such as
utm_medium=emial. Medium matching on the default groups is not tolerant of misspellings. - Missing
utm_medium. If you tag onlyutm_sourceandutm_campaign, the medium is empty and the session often lands in Unassigned. - Events sent through the Measurement Protocol without session information. The server-side hit has no session start with a source, so GA4 cannot assign a channel.
- A very new property or a recent tagging change, where some sessions are still being processed. Channel assignment on fresh data can lag.
A quick check is to open Traffic acquisition, set the primary dimension to Session source / medium, and filter on the channel Unassigned. The source/medium values that appear are the ones to fix.
Reading the evidence in a report
Use this approach on one report at a time.
- Open Reports, then Acquisition, then Traffic acquisition.
- Change the primary dimension to Session source / medium.
- Add a filter or comparison for Session default channel group equals Direct, then repeat for Unassigned.
- Look at the landing pages. Add Landing page as a secondary dimension. Direct sessions that cluster on deep pages, such as a specific blog post, usually came from a link that lost its source. Direct sessions on the home page are more often typed or bookmarked visits.
- Compare engagement rate and sessions per user against other channels. Very low engagement on Direct can point to bots or to redirect problems.
The same question can be asked through the Data API. This request lists Unassigned sessions by source and medium, so you can see exactly what needs a new rule or a tagging fix.
{
"dateRanges": [{ "startDate": "28daysAgo", "endDate": "yesterday" }],
"dimensions": [
{ "name": "sessionSourceMedium" },
{ "name": "landingPage" }
],
"metrics": [{ "name": "sessions" }],
"dimensionFilter": {
"filter": {
"fieldName": "sessionDefaultChannelGroup",
"stringFilter": { "matchType": "EXACT", "value": "Unassigned" }
}
},
"orderBys": [{ "metric": { "metricName": "sessions" }, "desc": true }],
"limit": 50
}Fixing the problem
| Cause | Fix |
|---|---|
| Campaign links without UTM parameters | Tag every email, social, and partner link. Keep a naming sheet. |
| Unrecognized medium values | Use standard mediums such as `email`, `cpc`, `social`, `affiliate`, and `referral`. |
| Inconsistent casing | Use lower case everywhere. GA4 treats `Email` and `email` as separate values in some dimensions. |
| Redirects that drop parameters | Test each campaign URL in a browser and confirm the final address still contains the query string. |
| Cross-domain journeys | Configure cross-domain measurement for the domains involved. |
| Server-side events | Send `session_id` and campaign fields with Measurement Protocol events. |
| Unique business channels | Build a custom channel group, covered in a later chapter. |
Changing the default channel group's rules is not possible. Custom channel groups are the supported way to reclassify traffic, and they apply to reporting only.
Edge cases to keep in mind
- Direct is a fallback, not a floor. A user who first arrived from a campaign and returns later by typing the address can still be credited to the earlier source, because GA4 reuses the last non-direct source within the lookback window. Direct then appears only when no earlier source exists.
- User scope and session scope disagree. In User acquisition, a user whose first visit was Direct stays Direct for that report forever. In Traffic acquisition, the same user may appear under several channels across sessions.
- Unassigned can hide good data. A high count often means a tagging convention is broken, not that traffic is low quality.
- Bots and internal tools can inflate Direct. Filter internal traffic and check the landing pages before concluding that brand awareness has grown.
- Consent settings can reduce attributed data. Where consent is denied, GA4 may use modeling or drop fields, which changes what Direct looks like.
Exercise
Sessions with utm_source=partnernews&utm_medium=newsletter appear in the Unassigned channel. Why, and what are two ways to fix it?
Show answer
The default channel group has no rule for the medium newsletter, so the session has a source and medium but matches no channel. One fix is to retag the links with utm_medium=email so they fall into Email. The other is to create a custom channel group with a rule that maps medium newsletter to Email or to a channel of your choice. Retagging fixes only new sessions. The custom channel group also covers reporting on past data.
Exercise
Direct sessions have jumped, and most land on one deep blog URL, not the home page. What is the most likely cause, and what do you check first?
Show answer
A link to that post probably lost its source, for example in an untagged email, a private message, or a redirect that strips parameters. Check where the link was shared, request the URL in a browser to see whether redirects remove the query string, and tag any campaign links with UTM parameters.