Why Shopify revenue shows as (not set) or Unassigned in GA4
On the table: pawns walk in, and some lose their colour. Turn over a face-down tile.
Artwork, not data. A close look at the face-down tiles.
(not set)
A value, not a channel: GA4 shows (not set) when no value arrived for a field, such as a session that had no session_start event.
Read onUnassigned
A channel: GA4 puts a session here when none of its channel rules match, often because the source was (not set).
Read onDirect
No clear source reached GA4: some of these visits were typed or bookmarked, and others lost their source on the way in.
Read the guideFace-down tile, turned over
Read the guideShort answer
GA4 can receive a purchase and its value without knowing the source of the session it belongs to. (not set) means no value arrived for that field, and a session with no source lands in Unassigned in channel reports. The orders are real. GA4 just lacks a usable source for those sessions.
What (not set) means in GA4, and what Unassigned means
(not set) is a placeholder. GA4 shows it when it has no value for a dimension. Google's own explanation for source and medium is specific: if a session has no session_start event, its source and medium show as (not set).1 (not set) can turn up in other places too, such as the landing page dimension when a session has no page_view event, or a custom parameter in its first 24 hours.1 This guide is about the source of a session or a purchase.
Unassigned is a channel, not a source. GA4 sorts every session into a channel (Organic Search, Paid Social, Email and so on) using fixed rules. Unassigned is what GA4 uses when none of those rules match.3 That happens in two ways:
- The source is
(not set), so there is nothing to match. Google notes that(not set)source data shows up asUnassignedin channel reports.1 - A source did arrive, but it matches no channel rule. A link tagged with a made-up medium, for example, can end up here.
So a purchase in Unassigned is not a fake purchase. It is a real order that GA4 could not connect to a recognisable source.
Why a purchase can have no useful session source
Shopify records the order no matter what. GA4 gives that order a source by tying the purchase event to the browser session that led to it. Anything that separates the purchase from the visit, or stops GA4 from seeing the visit at all, can leave the purchase unsourced. None of the reasons below is guaranteed to apply to your store. Each one can.
GA4 never saw the earlier visit
If the Google tag was blocked by an ad blocker, or the visitor declined analytics cookies, GA4 may have no record of how that person arrived.5 Consent setup matters in a subtler way too. Google warns that setting every consent value in the default command can cause the first session_start to be lost, and that events sent after consent is denied can form sessions with no session_start. Either way the session's source ends up (not set).1
The source was lost on the way in
A source has to survive the trip to your store. Redirects that strip the tracking parameters, link shorteners, and links with no campaign tags all remove or hide where the visitor came from.5
The visit and the purchase got separated
GA4 has to know that the person buying is the same person who arrived earlier. Google lists several setup problems that break this link and produce unassigned, (not set) or direct results: the tag loading late on the page, cross-domain linking that starts too late, a custom cookie prefix, altered client or session IDs, and a server-side setup that some requests bypass.2
Shopify pixels run in a sandbox and wait for consent
On Shopify, tracking pixels run in a sandbox with controlled access to the browser. They see only the data Shopify makes available to them.68 A pixel also loads only when every consent purpose it declares has been granted, so it cannot send anything before then.7 Neither of these is a fault, but both can contribute to purchases arriving without the session context GA4 needs.
Safari and cookie lifetime
Safari caps cookies set by JavaScript at seven days.9 A customer who clicks an ad, comes back two weeks later in Safari and buys may look like a new visitor, and the original source is gone.
Orders that did not start in a storefront visit
Orders created outside a normal storefront session, such as point of sale, draft orders paid through an invoice link, or recurring subscription charges, may have no browsing session behind them at all. We have not found a Google or Shopify page that documents exactly how each of these appears in GA4, so treat this as something to check rather than a known cause.
What changes the answer in your store
The same store can show different (not set) numbers depending on where you look.
- Which source dimension you use. GA4 has three kinds. First user source (in the User acquisition report) says where a person first came from. Session source (in Traffic acquisition) says where each session started. Plain Source, with no prefix, is used to give credit for key events such as purchases.4 For any event that is not a key event, plain Source is
(not set)by design.4 If you add Source to a report about ordinary events, you will see(not set)everywhere, and that is expected. - Which attribution model applies. First user and session dimensions use last click. Plain Source uses the property's attribution model, which is data-driven by default.4 The same purchase can carry different sources in different reports.
- Consent and banners. How your consent banner and tags are set up changes what GA4 receives.1
- Tag setup. Load order, extra tags and cross-domain settings all change the result.2
- How recent the data is. The last day or two can look worse while reports finish processing. This is common practitioner advice rather than something we have confirmed in Google's documentation, so compare against an older week before drawing conclusions.
What to check first
Find out how big it is.
In GA4, open Reports, then Acquisition, then Traffic acquisition. Make sure the table is grouped by the session channel group (the report's default view) and that the date range ends a few days ago. Look at the revenue in the
Unassignedrow compared with the total.See what is inside Unassigned.
Change the table's dimension to Session source / medium and look at the rows with revenue. Rows that read
(not set)mean no source arrived. Rows with a real source but an unusual medium mean a source arrived but matched no channel rule, which usually points to how links are tagged.Compare with first user source.
Open the User acquisition report for the same dates. If those same customers have a sensible first source, GA4 saw how they originally arrived and lost track later, which points toward identity, consent or tag order rather than untagged links.
What a fix can and cannot do
A change to your tags, links or consent setup affects visits GA4 collects after the change. It does not give a source to sessions GA4 has already recorded without one. Last quarter's Unassigned revenue stays Unassigned.
Custom channel groups can be applied to past data,11 but they only regroup sources GA4 actually received. They cannot invent a source that never arrived. Google's consent mode modeling does not backfill earlier data either.10
When the numbers differ rather than the source
If your problem is that GA4 shows fewer orders or less revenue than Shopify, rather than revenue with no source, that is a different question with different checks. See why Shopify and GA4 numbers don't match.
Related questions are covered in when Direct really means direct, what server-side tracking can and cannot recover, and what Shopify's Google & YouTube app measures.
A second opinion
If you would like a second opinion on your own setup, Peter is open to a conversation.
Sources
- What the value (not set) means in your reports, Google Analytics Help. accessed
- Tagging best practices to avoid unassigned, (not set), and direct traffic, Google Analytics Help. accessed
- Default channel group, Google Analytics Help. accessed
- Scopes of traffic-source dimensions, Google Analytics Help. accessed
- Traffic-source dimensions, Google Analytics Help. accessed
- Web Pixels API, Shopify Dev. accessed
- Pixel privacy, Shopify Dev. accessed
- Pixels overview, Shopify Help Center. accessed
- CNAME Cloaking and Bounce Tracking Defense, WebKit. accessed
- Behavioral modeling for consent mode, Google Analytics Help. accessed
- Custom channel groups, Google Analytics Help. accessed