- Unassigned is the channel GA4 uses when no channel rule matches the traffic; (not set) is the value GA4 uses when it received no information for a dimension.
- The two are linked: a session whose source and medium are (not set) has no rule to match, so it shows as Unassigned.
- Common causes are UTM values outside Google's rules, missing session_start events, server-side events without the browser's session, and consent set up in the wrong order.
- On Shopify, payment redirects, orders paid outside the storefront and consent choices add to it.
- You can shrink both a lot with clean UTMs, a correct tag and consent setup and server events that carry the GA4 ids, but some will always remain.
Unassigned in GA4 is the channel for traffic that matches none of GA4's channel rules. (not set) is the placeholder GA4 shows when it received no value for a dimension, such as the session's source and medium. They often appear together: if GA4 does not know a session's source and medium, no channel rule can match it, and the session lands in Unassigned. A small share is normal; a large or growing share points at tagging, consent or server-side events that lose the visitor's session.
This guide explains how GA4 sorts traffic, how to find Unassigned and (not set) rows, why they show up more on Shopify, and which fixes work.
How GA4 categorises traffic
GA4 records a source, a medium and a campaign for each session, from the referrer, UTM tags or a Google Ads click id. Default channel groups then sort sessions into channels with fixed rules, such as "source matches a list of search sites, or medium is exactly organic" for Organic Search.
The same traffic can be read at three levels: first user (how a user first arrived), session (how each session started) and event-scoped key event dimensions, which follow the property's attribution model. Unassigned can appear at any of them.
How to identify unassigned traffic in GA4
- Open Traffic acquisition
Select Reports, then Acquisition › Traffic acquisition. Find the Unassigned row in the Session default channel group column and note its sessions, key events and revenue.
- Add source and medium
Click + above the first column and add Session source / medium as a secondary dimension. Type Unassigned in the search box to keep only those rows.
- Read the pairs
Pairs such as (not set) / (not set) point at missing session data. Pairs with a real value, such as newsletter / mail or lookbook / story, point at UTM values that match no rule.
- Look at time and landing pages
Add a comparison or change the dimension to Landing page. A jump on one date, after one campaign or on one page tells you where to look.
- Check events too
In Reports › Engagement › Events, a large share of key events with a (not set) source often comes from events sent without a session, such as server-side purchases.
| Session source / medium in Unassigned | Sessions | Likely cause |
|---|---|---|
| (not set) / (not set) | 1,850 | Events without a session: missing session_start, server events without session_id, consent updates sent as defaults |
| klaviyo / mail | 640 | Medium "mail" matches no rule; the Email channel expects email, e-mail, e_mail or e mail |
| lookbook / story | 420 | Neither source nor medium matches a rule; use the platform as source and a medium such as social, or paid_social for ads |
| partner-site / partner | 130 | Medium "partner" matches no rule; affiliate links need medium affiliate |
The reasons behind unassigned traffic
UTM values that match no rule
GA4's rules look for specific values. Email needs email (or e-mail, e_mail, e mail) as source or medium; Affiliates needs medium affiliate; paid channels need a medium that contains cp (such as cpc), is ppc or retargeting, or starts with paid. A creative medium such as newsletter, story or influencer fits nothing and becomes Unassigned. A source with no medium at all can end up there too.
Sessions without a session_start
Google's help says session source / medium is (not set) for sessions without the automatic session_start event, and that those sessions show as Unassigned. With Google Tag Manager, a common cause is a Google tag that does not fire on the Initialization trigger, so other events reach GA4 before the session starts.
Events sent outside the browser session
An event sent through the Measurement Protocol without the visitor's client_id and session_id cannot be joined to a session. Purchases from a server, subscription renewals, orders created by staff and invoices paid by link are typical examples. GA4 records the event but cannot give it a source.
Consent and cookie problems
Google lists two Consent Mode mistakes that create (not set): using the default command to apply the visitor's choice instead of the update command, and sending events with denied consent after the visitor granted it, which start a separate session without a session_start. Ad blockers and browsers that limit cookies remove the identifiers GA4 needs to keep a session together.
Cross-domain journeys and tag order
A visitor who moves between your own domains without the _gl linker starts a new session. Google's tagging best practices add more causes: a config command that fires after other events, different cookie prefixes on different pages, and custom client or session ids.
Why "(not set)" appears more often on Shopify
- Payments outside the store. Shoppers who pay through PayPal, a buy-now-pay-later provider or a bank page leave your domain, and some never return to the thank-you page in the same session.
- Orders without a visit. Draft orders, invoices paid by link, subscription renewals and point-of-sale orders have no browsing session at all.
- Consent and the customer privacy API. When the visitor declines, or the banner and Consent Mode are wired in the wrong order, GA4 gets events without the cookies that tie them to a session.
- Sandboxed checkout tracking. Shopify runs checkout tracking through customer events, so a mistake in how GA4 is added there can split checkout events from the storefront session; see Shopify customer events and pixels.
GA4 also uses (not set) for other dimensions: a landing page for a session without a page_view, a content group sent empty, a custom parameter in its first 24 hours after registration, and Google Ads dimensions when Google Ads is not linked or auto-tagging is off.
How to reduce unassigned traffic
- Standardise your UTM values
Write down the source and medium for each channel and use only those. Use email for email, affiliate for affiliates, and cpc or paid_social for ads. For Meta and TikTok, see UTM parameters for Meta and TikTok.
- Fix the tag order
Load the Google tag before any event. In Google Tag Manager, set the Google tag to fire on Initialization – All pages.
- Check Consent Mode
Set defaults once, before the tag loads, and apply the visitor's choice with an update command. See Consent Mode v2 and GDPR.
- Set up cross-domain measurement
List all your domains under the web stream's Configure tag settings › Configure your domains. See cross-domain tracking for Google Ads.
- Send server events with the GA4 ids
Every Measurement Protocol event should carry the browser's client_id and, for session reports, its session_id. Without them, GA4 cannot attribute the event.
- Link Google Ads and keep auto-tagging on
That removes (not set) from the Google Ads dimensions.
Advanced: custom channel groups
Default channel groups cannot be edited. If your team uses its own UTM values, you can create a custom channel group with rules that match them, and make it the property's primary channel group. That files klaviyo / mail under Email in your own grouping without changing past tags. It does not help with (not set) / (not set) sessions: with no source and medium, no rule can match.
The same causes also inflate Direct; see direct traffic in GA4 for the overlap. For why GA4, Shopify and the ad platforms each credit different channels, see attribution data mismatch, and for GA4-specific problems on Shopify, GA4 tracking problems on Shopify. Before a peak, run the BFCM tracking checklist, and check email UTMs with the Klaviyo and Shopify tracking guide.
How ROASaurus keeps server events in their session
Server-side tracking can create Unassigned traffic as easily as reduce it; the difference is whether the server event carries the visitor's GA4 ids. ROASaurus's storefront script reads the visitor's _ga client id and, when you enter your measurement id, the session id from the _ga_ cookie of that measurement id. The ids travel with the cart to the order. When you add GA4 under Connections › Tracking & destinations, each purchase ROASaurus sends through the Measurement Protocol carries them, with an engagement time so session reports count it, and the transaction id so GA4 deduplicates it against its own tag.
| Situation | What ROASaurus sends | Result in GA4 |
|---|---|---|
| Visitor consented, GA4 cookies readable | The browser's client_id and session_id | Purchase joins the visitor's session and its channel |
| Visitor consented, no GA4 cookie | A stable client_id derived from the ROASaurus visitor id, no session_id | Tied to that visitor, but without a session source |
| Visitor did not consent | A client_id derived from the order alone, no user data, IP or user agent | Counted as a purchase, without a source |
ROASaurus also attributes every order itself, from the click ids and UTM tags its first-party script stored, so orders that GA4 files as Unassigned still get a channel in ROASaurus's attribution reports when the visitor consented. Under Website › Search, the Google Analytics 4 tab shows the Unassigned row next to the other channel groups, so you can see whether it shrinks. See server-side tracking on Shopify, server-side tracking and what server-side tracking is.
Sources
- Google Analytics Help: What the value (not set) means in your reports
- Google Analytics Help: Tagging best practices to avoid unassigned, (not set), and direct traffic issues
- Google Analytics Help: Default channel group
- Google Analytics for developers: Send Measurement Protocol events