Case Study

How Adslytics.io Fixed Broken Server-Side Tracking for a Shopify Store Losing 40% of Its Purchase Data

Recovering lost Shop Pay & PayPal conversions with Stape server-side tracking, GA4, and Google Ads — and restoring the ad account's ability to optimize.

How Adslytics.io Fixed Broken Server-Side Tracking for a Shopify Store Losing 40% of Its Purchase Data

📌 Introduction

A growing Shopify brand approached our team at Adslytics.io with a frustrating and expensive problem: their Google Ads performance had dropped sharply, and their GA4 revenue numbers no longer matched Shopify's backend. They had already invested in a server-side tracking setup through Stape, but instead of improving data quality, it had made things worse. Orders were disappearing from their reports — especially ones paid through Shop Pay and PayPal.

The Problem

The store's tracking stack (Shopify → GTM Web → GTM Server on Stape → GA4 + Google Ads) was silently dropping purchase events: Roughly 40% of purchases were missing from GA4 compared to Shopify's order reports. Google Ads was recording even fewer conversions, so Smart Bidding was optimizing on incomplete data. The gap was worst on Shop Pay and PayPal orders, which redirect customers away from the standard checkout flow. Some orders were being double-counted on certain days, making the data impossible to trust in either direction.

🔍 Identifying the Causes

We ran a full audit of the web container, server container, and Shopify checkout behavior. The root causes: Accelerated checkouts skipped the thank-you page. Shop Pay and PayPal express buyers often never loaded the page where the purchase tag fired, so those events never reached the server container. Missing deduplication keys. Events sent from both the browser and the server used inconsistent transaction IDs, so GA4 sometimes counted the same order twice — and sometimes rejected valid ones. Consent and ad-blocker loss. The client-side pixel was the only source of truth for Google Ads conversions, so any blocked browser meant a lost conversion. Stape container misconfiguration. The custom tagging server domain wasn't set as first-party, so cookies were being treated as third-party and trimmed by browsers.

⚠️ Consequences for the Business

Wasted ad spend: Google's algorithm was bidding based on ~60% of real conversions, undervaluing profitable audiences. Bad decisions: The team had paused campaigns that were actually profitable because the dashboards showed poor ROAS. No reliable reporting: Marketing, finance, and their ad agency each had different revenue numbers.

Solution

Our team rebuilt the tracking architecture around the server as the source of truth: Implemented Shopify webhook-based purchase events sent directly to the Stape server container, so every order — Shop Pay, PayPal, or standard checkout — is captured regardless of whether the thank-you page loads. Standardized transaction IDs across all channels and configured proper event deduplication in GA4 and Google Ads. Set up a first-party custom domain for the tagging server, restoring cookie lifetime and attribution accuracy. Enabled Enhanced Conversions for Google Ads with hashed customer data to recover attribution lost to ad blockers and iOS privacy features. Built a validation dashboard comparing Shopify orders vs. GA4 vs. Google Ads daily, so discrepancies would be visible immediately in the future.

📈 Results

Within two weeks of our fix: Purchase tracking accuracy improved from ~60% to 98%+ against Shopify's backend. Google Ads conversions increased ~35% overnight — not from new sales, but from finally seeing the sales that were always there. ROAS reporting stabilized, and Smart Bidding began optimizing on complete data, improving actual campaign performance in the following month. Duplicate events dropped to zero.

🏁 Conclusion

Server-side tracking isn't a "set and forget" install — a misconfigured setup can be worse than no setup at all. By moving the source of truth from the browser to Shopify's own order data, we helped this store go from guessing to knowing, and its ad platforms finally had the signal they needed to perform.

💡 Key Takeaways

ccelerated checkouts (Shop Pay, PayPal Express) are the #1 silent killer of Shopify purchase tracking. Webhooks beat thank-you-page pixels: capture purchases at the order level, not the pageview level. Deduplication is not optional — browser + server events must share a single transaction ID. Your ad performance is only as good as your conversion data. Fix tracking before touching campaigns.

Talk to Us, It's Free

We are always willing to help. Let us know what you are looking for, and we will develop a unique solution for you.

Thank You!

Your message has been sent successfully. We'll get back to you soon.

Protected by reCAPTCHA — Privacy & Terms

Business Hours

Our support Hotline is available 24 Hours

Toll Free

+1 (818) 245-8385