Analytics

Unassigned traffic and "(not set)" in GA4

What Unassigned and (not set) mean in GA4, the causes behind them on Shopify stores, how to find the affected traffic and what you can and cannot fix.

·8 min read·By the ROASaurus team

Key takeaways
  • 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.

SignalsReferrer, utm_source, utm_medium, gclid
Source / mediumgoogle / organic, newsletter / email
Channel rulesGoogle's default channel definitions
ChannelOrganic Search, Email ... or Unassigned
Unassigned is what is left when no rule matches. (not set) appears earlier, when a signal is missing.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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 UnassignedSessionsLikely cause
(not set) / (not set)1,850Events without a session: missing session_start, server events without session_id, consent updates sent as defaults
klaviyo / mail640Medium "mail" matches no rule; the Email channel expects email, e-mail, e_mail or e mail
lookbook / story420Neither source nor medium matches a rule; use the platform as source and a medium such as social, or paid_social for ads
partner-site / partner130Medium "partner" matches no rule; affiliate links need medium affiliate
Example store, one month. Three of the four rows are fixed by changing a UTM value.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

SituationWhat ROASaurus sendsResult in GA4
Visitor consented, GA4 cookies readableThe browser's client_id and session_idPurchase joins the visitor's session and its channel
Visitor consented, no GA4 cookieA stable client_id derived from the ROASaurus visitor id, no session_idTied to that visitor, but without a session source
Visitor did not consentA client_id derived from the order alone, no user data, IP or user agentCounted as a purchase, without a source
How the GA4 destination identifies purchases. Without consent, GA4 cannot attribute the purchase, by design.

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

  1. Google Analytics Help: What the value (not set) means in your reports
  2. Google Analytics Help: Tagging best practices to avoid unassigned, (not set), and direct traffic issues
  3. Google Analytics Help: Default channel group
  4. Google Analytics for developers: Send Measurement Protocol events

In ROASaurus

Keep reading

MarketingBFCM tracking checklist: can you trust your ad results?A Black Friday tracking checklist: test a real purchase, find duplicate conversions, choose which orders count, check consent and judge ads on profit.AnalyticsGA4 not tracking correctly on Shopify? Check and fix itCommon GA4 tracking problems on Shopify, each with its cause, a check you can run and the fix: duplicate tags, missing purchases, consent, events and IDs.TrackingGoogle Ads cross-domain tracking and the domains warningHow Google Ads cross-domain tracking keeps the ad click across domains, how to set it up, and how to fix the "Additional domains detected" notice.

FAQ

Questions, answered

More answers in the FAQ and the help center.

What does Unassigned mean in GA4?

It is the channel GA4 uses when the traffic's source and medium match none of the default channel rules, either because the values are unusual or because they are missing.

What does (not set) mean in GA4?

It is a placeholder for a dimension GA4 received no value for. For session source / medium, it usually means the session had no session_start event or the event was sent without the visitor's session.

Is Unassigned traffic the same as Direct?

No. Direct is a channel with a rule: source (direct) with medium (none) or (not set). Unassigned is what matches no rule at all. Both grow when GA4 loses information about a visit.

Does server-side tracking cause unassigned traffic in GA4?

It can, when server events are sent without the visitor's client_id and session_id. With those ids, the events join the visitor's session and keep its source.

Can I get rid of unassigned traffic completely?

No. Blocked tags, declined consent, short-lived cookies and orders without a visit leave a remainder. Clean UTMs, a correct tag and consent setup and server events with the GA4 ids keep it small.

Can a custom channel group fix Unassigned?

For traffic with unusual UTM values, yes: add rules that match them and make it the primary channel group. For sessions whose source and medium are (not set), no rule can help.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.