Server-Side Tracking Proof (6-Page PDF)
Annotated lab screenshots from trackinglab.shop (test order #1050): Meta Events Manager deduplication, GA4 1:1 Order ID match, Stape sGTM container, Shopify Custom Pixel, and Consent Mode v2.
Open PDFReference architecture & lab proof
To protect client confidentiality while still letting you inspect real engineering output, every screenshot, video clip, and event ID below comes from our own verified lab builds — a Shopify development store (trackinglab.shop) and our own n8n instance — running the exact architecture we deploy for clients.
Annotated lab screenshots from trackinglab.shop (test order #1050): Meta Events Manager deduplication, GA4 1:1 Order ID match, Stape sGTM container, Shopify Custom Pixel, and Consent Mode v2.
Open PDFReference build on our own n8n instance: WhatsApp Business API gateway workflow with AI replies, human handover, Cal.com booking, webhook secrets, and 19 reusable industry templates.
Open PDFAnalytics SQL Framework (61 modular dbt + BigQuery models & sGTM hit schemas) — maintained by Tushar Jankhyan under GitHub handle @rohitjankhyan08-hue. Deployed per client BigQuery project.
View on GitHubDev-store order #1050 verification matrix
| Layer | Setup | Observed proof | Result |
|---|---|---|---|
| 01 · Ingestion | Shopify Custom Pixel v2.7 / Custom JS DataLayer | Synced storefront _ga client ID before checkout; zero session fragmentation across funnel | Verified |
| 02 · Consent Gate | Consent Mode v2 + Server-Side PII Guard | Denied by default inline gatekeeper; raw email/phone stripped prior to GA4 | Verified |
| 03 · Server GTM | First-Party sGTM Container (Stape / TAGGRS / GCP) | Custom subdomain collection, Cookie Keeper, and order/refund webhook ingestion | Verified |
| 04 · Ad APIs & QA | Meta CAPI + Google Ads Enhanced Conversions + Python QA | Strict event_id deduplication & hashed PII matching reconciled 1:1 on dev-store Order #1050 | Deduplicated |
| 05 · dbt, BigQuery & BI | dbt + BigQuery (ASF) → Looker Studio | Open-source Analytics SQL Framework (61 modular dbt models) deployed per client BigQuery project | Open-Source ASF |
Engineering details
Cause: Shopify's Web Pixel executes inside an isolated sandbox iframe and mints a new GA4 client ID at checkout, misattributing paid orders to Direct.
Fix: Synchronize the storefront _ga cookie into the sandboxed pixel before dispatching checkout events so acquisition source stays intact.
Cause: In GTM/GA4-to-Server-GTM forwarding configurations, event_id can be dropped or overwritten unless passed explicitly as a custom parameter and mapped in the Server GTM Meta CAPI tag — causing double-counted purchases and distorted ROAS.
Fix: Transmit an order-keyed meta_event_id from the browser, map it explicitly to event_id inside Server GTM, and back it with an order webhook.
Cause: Address/payment retries re-fire shipping & payment callbacks multiple times, while canceled or refunded orders remain counted in GA4.
Fix: Guard checkout step events per checkout token and wire a Shopify refund webhook to deduct refunds automatically in GA4 and BigQuery.
Cause: Misconfigured pixels read wrong CMP/Shopify privacy fields or forward raw customer email and phone directly into analytics hits.
Fix: Map exact Customer Privacy API states to Consent Mode v2 and enforce server-side transformations that scrub PII prior to GA4.