Skip to content
Vextren

Reference architecture & lab proof

Live reference builds, not slide decks.

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.

60-second server-side tracking walkthrough (dev store lab build)

Shopify Custom Pixel v2.7 → First-Party sGTM → GA4 + Meta CAPI + Google Ads

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 PDF

n8n Automation Proof (2-Page PDF)

Reference 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 PDF

Open-Source ASF Repo (GitHub)

Analytics 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 GitHub

Dev-store order #1050 verification matrix

LayerSetupObserved proofResult
01 · IngestionShopify Custom Pixel v2.7 / Custom JS DataLayerSynced storefront _ga client ID before checkout; zero session fragmentation across funnel Verified
02 · Consent GateConsent Mode v2 + Server-Side PII GuardDenied by default inline gatekeeper; raw email/phone stripped prior to GA4 Verified
03 · Server GTMFirst-Party sGTM Container (Stape / TAGGRS / GCP)Custom subdomain collection, Cookie Keeper, and order/refund webhook ingestion Verified
04 · Ad APIs & QAMeta CAPI + Google Ads Enhanced Conversions + Python QAStrict event_id deduplication & hashed PII matching reconciled 1:1 on dev-store Order #1050 Deduplicated
05 · dbt, BigQuery & BIdbt + BigQuery (ASF) → Looker StudioOpen-source Analytics SQL Framework (61 modular dbt models) deployed per client BigQuery project Open-Source ASF
Technical note on test order #1050 (“Payment pending”): On our Shopify development store (trackinglab.shop), a manual/Bogus test payment gateway was used to exercise the full checkout → sGTM → Meta CAPI/GA4 pipeline without charging a live card. In production client stores, Purchase events are strictly gated on confirmed paid checkouts (checkout_completed / orders/paid webhook) so failed or unpaid orders are never sent to ad platforms.

Engineering details

Four real bugs traced to root cause.

Session splitting & broken Paid → Direct attribution

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.

Meta CAPI failing to deduplicate browser & server events

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.

Inflated funnel steps & phantom gross revenue in GA4

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.

PII leaks into GA4 & permanently denied Consent Mode

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.