Case study · Shopify, United Kingdom
Comfybedss: from 60% to 95% of Shopify orders tracked in GA4
Four in ten sales were invisible to the ad platforms. Here is what was causing it and what closed the gap.
- Client
- Comfybedss, UK bed and mattress retailer on Shopify
- Problem
- GA4 recorded about 60% of the orders Shopify recorded
- What I did
- Server-side GTM on a first-party subdomain, Consent Mode V2, enhanced conversions, event deduplication
- Result
- 95% of Shopify orders matched in GA4
- Time to live
The problem
Comfybedss sells beds and mattresses in the UK on Shopify, spending a month across Google and Meta.
The orders were landing in Shopify. GA4 was reporting roughly six out of every ten of them.
A gap that size does not stay in the analytics tool. Every platform downstream inherits it. Google Ads and Meta were optimising against a partial picture of what actually sold, which means the campaigns being rewarded were not necessarily the ones producing revenue.
Why it was happening
Browser tracking is fragile by design. Ad blockers stop the request before it leaves the page. Safari shortens the life of the cookie that connects a visit to a sale. A consent banner can block the tag that reports the purchase at the exact moment it matters.
Shopify adds a second constraint. The checkout is a restricted environment, so a purchase event that depends on a script running in the customer's browser is the least reliable point in the entire funnel to rely on.
What we did
- Moved tracking server-side. A Stape container on a first-party subdomain, so events are sent from the server instead of the browser. Requests to your own subdomain are not on blocker lists, and cookies set by the server survive far longer than cookies set by a script.
- Rebuilt the Shopify events. A custom pixel subscribing to Shopify's own events, so the purchase is reported from the checkout's own data rather than from whatever the browser managed to run.
- Added deduplication. A shared event ID on every event, so the browser copy and the server copy are counted once instead of twice.
- Implemented Consent Mode V2. Default and update states, with trigger groups gating every ecommerce event, so nothing fires before a choice is made and nothing is lost after one is given.
- Turned on enhanced conversions. The customer's email, hashed in the browser, sent with the conversion so Google can match sales that cookies alone would miss.
- Captured the click ID. GCLID written to local storage and read back at checkout, so a sale can still be tied to the click that caused it.
- Extended it to every platform. The same clean event stream now feeds Google Ads, GA4, Meta CAPI and Microsoft Ads instead of four separate half-working setups.
Google AdsGA4Meta CAPI
Tag Manager
StapeShopifyThe result
Google and Meta now see close to every sale the store makes. The bidding algorithms are working from the real revenue figure rather than a sample of it, and the reporting matches what the business can see in Shopify.
Proof
Is this you?
- Your GA4 purchase count never matches your Shopify order count
- Conversions dropped the week your consent banner went live
- Meta reports more sales than your store actually had
Not sure how much your setup is missing?
I will compare your reported conversions against your real orders and show you the gap.
Book a free tracking check