What server-side tracking and Google tag gateway can and cannot do for a Shopify store

Last reviewed

Artwork, not data. A different route to the same tower.

Short answer

Server-side measurement can improve how reliably data you could already collect reaches Google. It cannot create data that was never captured, override a visitor's consent choice, or change the source of visits GA4 has already counted. Google tag gateway changes the route a tag's requests take, not what you measure.

Why merchants get asked this

If your GA4 numbers look low or your revenue sits in Unassigned, someone will eventually suggest server-side tracking. Sometimes it is the right next step. Sometimes it is sold as a way to "recover lost revenue," which it is not. Shopify already records every order. The question is only how much of the surrounding detail reaches Google, and what Google can do with it.

What server-side tagging can improve

Server-side tagging, often shortened to server tagging, is what most server side tracking for Google means in practice. With it, your Google tags send data to a server container you control, which then forwards it to Google. Google describes the benefits as faster pages, finer control over what data is shared, and better data quality. It also needs your own custom domain.1

In plain terms, a well-built server setup can mean fewer measurement requests lost along the way and more control over what you pass on. It does not change what a visitor's browser allows in the first place.

What neither can recover

  • Visitors who said no. Consent mode tells Google tags what they are allowed to do, and a denied choice still applies whichever route the data takes.6 Changing the route does not turn a "no" into a "yes."
  • History. Changes apply from the day they go live. Even Google's consent mode modeling, which estimates some declined visits, has strict eligibility thresholds and does not backfill earlier data.7
  • Sources of visits already counted. Revenue that sat in Unassigned last quarter stays there. A new setup does not reprocess old sessions.
  • Orders that never had a visit behind them. If there was no browsing session, there is no source to send.

Example: a store moves its tagging to its own subdomain. Fewer requests may be blocked. Visitors who decline analytics cookies are still subject to that choice, and last quarter's reports look exactly the same.

The gatehouse road: one route runs through a gatehouse in the store's own wall, and both end at the same tower. Artwork, not data.

Browser privacy, ad blockers and first-party domains

Ad blockers and browser privacy settings can each change what reaches GA4, and a common pitch is that a first-party subdomain gets around Safari and ad blockers. It is not that simple. Safari caps cookies set by JavaScript at seven days, and applies the same cap to cookies from responses that look first-party but resolve to a third party through a CNAME record.8 A subdomain on its own does not guarantee longer-lived cookies. What happens depends on how the setup is built and which browser is in use.

We have not found any primary documentation of a setup that ad blockers cannot block. Treat "unblockable" as a marketing word.

Mixed setups can make things worse

If you add server-side tagging but some tags still send data straight from the browser to the same GA4 property, user and session identity can break. Google lists bypassing the server container as one cause of unassigned and (not set) traffic.9 A half-migrated setup can leave you with more unsourced revenue, not less. See why revenue shows as (not set) or Unassigned.

If your store also uses Shopify's Google & YouTube app, know what that app already sends before adding another route. See what the Google & YouTube app measures.

Questions to ask before paying for it

  1. What exactly will reach Google that does not reach it today, and how will we check?

  2. Does anything still send data from the browser to the same GA4 property after the change?

  3. How does it handle visitors who decline consent?

  4. Which browsers and blockers does it actually help with, and is there documentation for that?

  5. What happens to my past reports? (The honest answer is: nothing.)

  6. If my site is on Cloudflare, what else in the zone will the change touch?

Questions to ask about any attribution report

The same habits help with any report that claims to show where sales come from, whoever built it:

  • What data is the report built from?
  • How does it treat visits that arrived with no source?
  • Are purchases joined to visits, and if so, how?
  • What does it say it cannot see?
  • What would change in your numbers if you removed it?

If a proposal promises a percentage of "recovered" revenue, ask where the number comes from. We have not found any such figure in Google's documentation for either feature.

If you want to compare totals before and after any change, use the checks in why Shopify and GA4 numbers don't match.

A second opinion

If you would like a second opinion on your own setup, Peter is open to a conversation.

Sources

  1. Server-side tagging, Google for Developers (Tag Manager). accessed
  2. What is Google tag gateway for advertisers?, Google for Developers. accessed
  3. Set up Google tag gateway for advertisers, Google for Developers. accessed
  4. Google tag gateway cookie handling, Google Tag Manager Help. accessed
  5. Tag Manager release notes, Google Tag Manager Help. accessed
  6. Consent mode overview, Google for Developers. accessed
  7. Behavioral modeling for consent mode, Google Analytics Help. accessed
  8. CNAME Cloaking and Bounce Tracking Defense, WebKit. accessed
  9. Tagging best practices to avoid unassigned, (not set), and direct traffic, Google Analytics Help. accessed
  10. Google tag gateway for advertisers, Cloudflare Docs. accessed
  11. Set up Google tag gateway in the Google tag with Cloudflare, Google Tag Manager Help. accessed