Shopify server-side tracking is no longer a nice-to-have optimisation. The checkout extensibility migration has retired the legacy injection points that most tracking setups silently depended on, Safari ITP caps JavaScript-set cookies including _fbp at seven days, and the Web Pixels sandbox enforces strict limits on what browser code can even access inside Shopify’s checkout. If your purchase events still flow exclusively through a browser pixel, a meaningful share of conversions are disappearing before they reach Meta, TikTok, or Google Ads - with no error message and no warning.
This guide covers everything you need to set up the Shopify Conversions API correctly in 2026: the sandbox architecture, every relevant platform deadline (most already past), the four available methods, Shopify-specific deduplication failure modes, Event Match Quality, and verification.
Why Shopify Server-Side Tracking Is No Longer Optional in 2026
The browser tracking model assumes three things: the customer’s browser runs your pixel code, that code can read cookies and the page URL, and the Thank You page fully renders before the customer navigates away. All three assumptions break regularly.
Safari’s Intelligent Tracking Prevention has blocked third-party cookies since 2020 and, since ITP 2.1, caps JavaScript-set first-party cookies - including the _fbp cookie that Meta’s pixel writes - at a seven-day expiry. iOS App Tracking Transparency means users who decline tracking yield no IDFA and no third-party cookie writes in in-app browsers. Ad blockers intercept pixel requests by URL pattern. Consent banners, depending on configuration, delay or block pixel fires entirely.
The purely browser-side consequence on Shopify: checkout_completed is the pixel event that carries the purchase signal. According to Shopify’s own API documentation, checkout_completed fires on the Thank You page and is never fired if the customer closes the browser tab before that page fully renders. The orders/paid webhook fires on Shopify’s backend regardless of browser state, making server-side handling of purchase events structurally more reliable.
How Shopify’s Web Pixels Sandbox Architecture Limits Browser-Only Pixels
The Web Pixels API divides pixels into two sandbox types, and understanding which applies to you is the prerequisite for everything else.
App Pixels: Strict Web Worker Sandbox
App pixels - the kind registered by apps from the Shopify App Store, including third-party CAPI apps - run inside a web worker. There is no DOM at all. Shopify’s own documentation states: “Many globals will be explicitly overwritten to be undefined in the sandbox” and “Traditional JavaScript pixels that use browser APIs such as window.document won’t work in this environment.”
Guaranteed globals are limited to: self, console, setTimeout, clearTimeout, setInterval, clearInterval, fetch, Headers, Request, and Response. The document, window.location, and navigator objects are unavailable. Cookie access is only possible through Shopify’s mediated browser proxy API - specifically browser.cookie.get(name) - which routes reads asynchronously to the top frame. Direct document.cookie access is not available.
Custom Pixels: Lax iframe Sandbox
Custom pixels configured manually under Settings → Customer Events run in an iframe with sandbox="allow-scripts allow-forms". They cannot access the top frame; window.href returns the sandbox iframe URL rather than the actual store URL. Importantly, custom pixels are explicitly excluded from the December 10, 2025 PII scope enforcement and continue receiving all available data fields regardless of app scopes.
The December 10, 2025 PII Scope Enforcement (Past)
Since December 10, 2025, app pixel extensions receive null for any PII field (email, phone, name, address) unless the app has been reviewed and approved by Shopify for the corresponding protected data scopes: read_customer_name, read_customer_email, read_customer_phone, read_customer_address, and read_customer_personal_data. Non-PII fields - product data, cart totals, order.id, checkout.token - continue firing normally.
The practical impact on tracking: hashed email (em) is the highest-value Event Match Quality parameter in Meta’s matching system. An app pixel that has not been approved for read_customer_email receives null on checkout_completed, cannot send em, and sees EMQ scores drop accordingly. This is the single biggest reason server-side enrichment matters even when a browser pixel is running.
The Checkout Extensibility Timeline: Every Deadline, Past and Upcoming
The following table covers all material dates. Most are already past.
| Date | Event | Status (2026-06-11) |
|---|---|---|
| Aug 13, 2024 | checkout.liquid ceased for in-checkout pages (Shopify Plus only) |
Past |
| Feb 1, 2025 | ScriptTag REST/GraphQL API blocked on Order Status page | Past |
| May 14, 2025 | Meta Offline Conversions API permanently discontinued | Past |
| Aug 28, 2025 | checkout.liquid fully retired incl. Thank You + Order Status (Plus only); Additional Scripts field becomes view-only for Plus; ScriptTags off for Plus |
Past |
| Dec 10, 2025 | Protected customer data scopes enforced for app pixel PII | Past |
| Jan 13, 2026 | App Pixel default data-sharing mode changed from “Always On” to “Optimized” | Past |
| Jun 30, 2026 | Shopify Scripts deprecated - all scripts cease execution (19 days away) | Imminent |
| Aug 26, 2026 | Non-Plus stores: Additional Scripts and ScriptTags fully off; auto-upgrade begins | Upcoming (~75 days) |
For Shopify Plus merchants: checkout.liquid has historically been Shopify Plus-only and is already retired. If Plus merchants missed the August 28, 2025 deadline, Shopify began auto-upgrading their stores in January 2026 and permanently deleting legacy customizations. Shopify’s own language is deliberately cautious: “All analytics scripts will be lost, however, a limited number of analytics scripts might be moved to custom pixels in a best-effort attempt to maintain continuity.” That is a partial and unreliable migration - no guarantees on which scripts are preserved or whether they retain full functionality.
For non-Plus merchants: The hard deadline is August 26, 2026. The Additional Scripts section stops working for all merchants on that date, and Shopify will auto-upgrade accounts. You have roughly 75 days from today. Any tracking pixel injected via Additional Scripts must be migrated to a Web Pixel app or replaced with a server-side solution before then.
The January 13, 2026 “Optimized” mode change is a second active risk. Shopify changed the default for all app pixels from “Always On” to “Optimized,” under which Shopify may restrict or pause data flow to a pixel with no merchant notification if no attribution is detected over days or weeks. Server-side CAPI calls are not affected by this throttling - it applies only to the browser-side event stream. To prevent throttling: Shopify Admin → Settings → Customer Events → [your pixel] → change mode to “Always On.”
The Four Methods for Shopify Server-Side Tracking
Method 1: Native Meta “Facebook and Instagram” Sales Channel (Built-in CAPI)
The simplest path. Under Settings → Apps and sales channels → Facebook and Instagram → Data sharing, set “Enhanced data sharing” to Maximum. This activates Shopify’s own CAPI integration covering standard checkout events: PageView, ViewContent, AddToCart, InitiateCheckout, and Purchase.
The structural limitation: According to practitioner analysis, the native channel sends only hashed email and hashed phone. It does not transmit fbp (Facebook Browser ID), fbc (Facebook Click ID), external_id, or structured client_ip_address / user_agent. These are the parameters that raise Event Match Quality scores above baseline. The absence of fbp and fbc means click-attribution chains are not passed to the server event. The channel also supports only one Meta pixel per store and no custom events.
Use the native channel if you need a zero-configuration starting point. Understand that it provides a subset of what a properly configured CAPI implementation can deliver.
Method 2: Server-Side Google Tag Manager (sGTM)
sGTM runs your tagging logic on a server you control, outside Shopify’s checkout sandbox entirely. Three data paths exist:
- A Custom Web Pixel inside Shopify sends an HTTP request to your sGTM container URL - the primary real-time path.
- A GTM web container via
dataLayer.push()on storefront pages - this does not reach sandboxed checkout pages. - Order webhooks forwarded to a sGTM relay endpoint - the fallback for purchase events.
The webhook limitation is critical: Shopify order webhooks contain no browser cookie data. They carry no _fbp or _fbc. A webhook-only sGTM path cannot pass the Facebook Browser ID or click ID to CAPI. Payload enrichment - adding fbp, fbc, external_id, client_ip_address, and user_agent - must happen at the sGTM server layer by reading values sent from the browser event alongside the webhook.
sGTM is a powerful and flexible approach. The tradeoff is infrastructure complexity: you need a container server (typically on Cloud Run or a dedicated host), careful tag sequencing to ensure event_id is generated once and shared between the browser tag and the server tag, and ongoing maintenance as Shopify’s pixel sandbox evolves.
Method 3: Third-Party Web Pixel and CAPI Apps
Apps published on the Shopify App Store register as App Pixels or Custom Pixels via the Web Pixels API and handle both the browser-side event capture and the server-side CAPI forwarding. The differentiating capability versus the native channel: approved apps can transmit fbp, fbc, external_id, client_ip_address, and user_agent - the parameters that meaningfully raise EMQ. Apps also support multiple pixels per store and custom event definitions.
The downsides are the same platform constraints already described: subject to the December 10, 2025 PII scope enforcement (PII requires approved scopes), subject to the January 13, 2026 “Optimized” mode default (requires manual “Always On”), and limited to what the Web Worker sandbox exposes.
This is the category where the AxiTrace app for Shopify server-side tracking sits. See the AxiTrace section below for specifics.
Method 4: Order Webhooks and the Admin API
The purest server-to-server path: subscribe to orders/paid (or orders/create) webhook, receive Shopify’s backend notification, and send a CAPI Purchase event from your own server. The webhook fires regardless of whether the Thank You page loaded in the customer’s browser - making it the most reliable signal for purchase events.
Available webhooks for purchase tracking: orders/create, orders/paid, checkouts/create, checkouts/update. Shopify delivers webhooks with at-least-once semantics - retries are possible. Use the X-Shopify-Webhook-Id header to deduplicate retries; your handler must be idempotent.
The same structural limitation applies here as with sGTM webhooks: no _fbp or _fbc in the webhook payload. A webhook-only CAPI implementation cannot pass browser-derived parameters. The checkout.token field is available in both the checkout_completed Web Pixel event and the orders/paid webhook, making it a reliable join key if you need to stitch browser-side cookie values to the server event.
Shopify CAPI Deduplication: The Order Prefix, GID Mismatch, and Multiple Pixels
Deduplication on Shopify has failure modes that do not exist on other platforms. If you have not read our detailed deduplication guide, start there - this section covers the Shopify-specific variants.
Meta deduplicates when the same Pixel ID receives a browser event and a server event with a matching event_name and event_id. Both fields must be byte-for-byte identical - no normalization is applied.
The # Order Prefix
Shopify displays order names in Admin as #1001. The internal order.id is a large numeric integer (for example, 5210499102). If your browser pixel sends event_id: "#1042" and your CAPI call sends event_id: "1042", Meta treats these as two distinct events. The canonical fix: use the clean numeric order.id - no # prefix - as the event_id on both sides.
The checkout_completed Web Pixel event exposes data.checkout.order.id (numeric) but does not include order.name. Order names are generated asynchronously after the Thank You page loads, after the pixel event fires, so order.name cannot be used as the browser-side event_id at all. This means any implementation that reads the #NNNN string from the URL or the page and uses it as the event ID will produce mismatched keys the moment the server uses the numeric ID.
GID Format Inconsistency
Some checkout_completed Web Pixel implementations return the order ID as a GraphQL Global ID: gid://shopify/Order/450789469 rather than the plain integer 450789469. A GitHub issue (#1630) documented this inconsistency between stores. If the browser pixel sends the GID-format string and the server CAPI call sends a plain integer - or vice versa - deduplication fails silently. There is no official Shopify statement confirming universal normalization. Test your own store’s payload, log the raw value, and normalize it consistently on both paths before going to production.
Multiple Pixels Firing on the Same Store
Duplicate pixel fires on Shopify fall into four structural sources:
- A hardcoded pixel in
layout/theme.liquidcoexisting with the native Facebook and Instagram app. - A GTM browser pixel tag left running after the native app was installed - both fire browser events with different
event_idvalues. - Third-party apps (upsell tools, review widgets, landing page builders) that inject pixel code directly into page HTML. These bypass the Web Pixels API, do not appear in Shopify’s Customer Events registry, and fire independently with no
event_idcoordination. - Trekkie cache ghosting: after removing the Meta pixel from the native Facebook and Instagram Sales Channel, Shopify’s “Trekkie Load” may continue serving cached pixel code. The documented fix is to re-enable then immediately disable the pixel in the native app settings.
When multiple distinct Pixel IDs receive events from the same domain, no event_id matching can fix the problem - deduplication only operates within a single Pixel/Dataset. You need to find and remove the duplicate installations before any CAPI work will give clean numbers.
Event Match Quality on Shopify: Parameters and How to Raise Your Score
Event Match Quality is scored 0-10 and visible in Events Manager → Data Sources → [pixel] → Events tab → “Event Match Quality” column. It measures how accurately Meta can tie a reported conversion to a known user based on the user_data parameters in your CAPI payload.
All PII must be SHA-256 hashed before sending. Practical rules: email lowercased then hashed; phone in E.164 format then hashed; names lowercased before hashing.
Parameters by relative contribution (high to low):
em- hashed email. Highest individual impact. Meta’s user database is email-anchored. Lost when the app pixel does not haveread_customer_emailscope approval (since December 10, 2025).fbc- Facebook Click ID derived from thefbclidURL parameter. High impact for click-attributed journeys. Not available in webhook-only implementations.fbp- Facebook Browser ID from the_fbpcookie. Significant impact for returning visitors. Note: JavaScript-set cookies including_fbpare capped at seven days on Safari with ITP. Not available in webhook-only implementations.ph- hashed phone. Additive alongside email.external_id- SHA-256 of your internal customer or user ID. Persistent across sessions.client_ip_address,client_user_agent- required fields for web events; contribute to matching.- First name, last name, city, zip code - individually lower weight, additive in aggregate.
The native Shopify Meta channel sends only hashed email and hashed phone - omitting fbp, fbc, and external_id. A third-party app or custom CAPI implementation with access to all parameters can deliver substantially higher match rates, though the exact scoring algorithm is not published by Meta.
Verifying Your Shopify Server-Side Tracking Setup in Meta Events Manager
Do not assume events are flowing correctly. Work through this verification sequence after any new setup or change.
For a quick outside view first, our free Meta Pixel and CAPI checker loads your storefront as a first-time visitor and shows whether the pixel loads once, whether PageView and ViewContent fire with value, currency and content_ids, and whether each event carries an event_id. It cannot see your server events, so the steps below are still the way to confirm the Conversions API side.
Step 1: Use the Test Events tool. Events Manager → Data Sources → [your pixel] → Test Events tab. Meta generates a test_event_code string (for example, TEST12345). Add it as a top-level field in your CAPI payload. Events appear in real time labeled as “Server” (CAPI), “Browser” (Pixel), or both.
{
"event_name": "Purchase",
"event_time": 1749640800,
"event_id": "ORDER-5210499102",
"test_event_code": "TEST12345",
"action_source": "website",
"event_source_url": "https://yourstore.myshopify.com/thank-you",
"client_user_agent": "Mozilla/5.0 ...",
"user_data": {
"em": "<sha256-lowercased-email>",
"ph": "<sha256-e164-phone>",
"fbp": "_fbp_cookie_value",
"fbc": "_fbc_cookie_value",
"external_id": "<sha256-customer-id>",
"client_ip_address": "203.0.113.1"
},
"custom_data": {
"value": 99.99,
"currency": "USD",
"order_id": "5210499102"
}
}
Remove test_event_code before going live - test events flow into audience building and measurement, so leaving it in pollutes live data.
Step 2: Confirm deduplication. A correctly deduplicated purchase shows as “1 event from 2 sources” in the Test Events view. “1 event from 1 source” means only one pipe is delivering the event - either the browser or the server, not both. “2 events from 2 sources” means deduplication has failed and both are counted.
Step 3: Check the EMQ score. EMQ of 6 or above is acceptable; 8 or above is good; 8.5 or above is strong for late-funnel events like Purchase. If your score is below 6, identify which parameters are missing from your user_data payload - the Events Manager detail view shows coverage rates per parameter.
Step 4: Check the Diagnostics tab. Data Sources → [Dataset] → Diagnostics. Look for “Purchase Event from the Server are not Deduplicated.” Note that this warning can lag behind a working fix by several days - use the Test Events tool and the dedup rate in the event detail view as the authoritative signal.
Step 5: Cross-check order counts. Compare Events Manager Purchase counts against your actual Shopify order count for the same date range. A near-2:1 ratio indicates broken deduplication. A count significantly below your order count indicates browser events are not reaching Meta and your server path may not be catching all orders either.
How AxiTrace Handles Shopify Server-Side Tracking
AxiTrace’s Shopify app is listed and approved on the Shopify App Store and addresses the specific failure modes above through a single integrated pipeline. The same pipeline powers AxiTrace server-side tracking on WooCommerce, Shopware and Magento.
One event_id, minted once. AxiTrace’s ingestion API mints a single event_id at the moment an event arrives and uses it for both the browser Pixel event and the server CAPI call. The GID format inconsistency, the # prefix problem, and retry-generated duplicate IDs all cannot occur because the ID is generated in one place and propagated to both channels. This is the same principle described in depth in our CAPI deduplication guide.
PII hashed server-side. Email and phone are SHA-256 hashed at ingestion before forwarding to Meta. external_id is hashed as well. No raw PII leaves AxiTrace’s servers.
Full user_data coverage. Because the browser SDK transmits cookie values to the AxiTrace server - which then includes fbp, fbc, client_ip_address, user_agent, and external_id in the CAPI payload - you get the full parameter set that raises Event Match Quality, including the click IDs that webhook-only implementations cannot provide.
Multi-platform forwarding from one integration. The same event that goes to Meta CAPI is also forwarded to the TikTok Events API, Google Ads, GA4, and Reddit CAPI - each with the correct field names and hashing requirements for that platform. One Shopify app install covers all five channels.
Webhook fallback built in. When checkout_completed is not fired because the customer closed the tab, AxiTrace’s orders/paid webhook handler provides the purchase signal. The checkout.token is used as the join key to stitch browser-side cookie data to the webhook-triggered server event where available.
For the broader case for server-side tracking beyond Shopify, see Why Server-Side Tracking Matters in 2026. For signal loss context and the iOS ATT impact, see our signal loss explainer.
Getting Started
- Install the AxiTrace Shopify app from the Shopify App Store.
- Connect your Meta Pixel ID and CAPI access token in the AxiTrace dashboard. The same screen covers TikTok, Google Ads, and GA4 if needed.
- In Shopify Admin → Settings → Customer Events, find the AxiTrace pixel and confirm the data-sharing mode is set to “Always On” (not “Optimized”).
- Fire a test order on your store with a small amount and verify in Events Manager → Test Events that you see “1 event from 2 sources” for the Purchase event.
- Check the EMQ score after 48-72 hours of live traffic under the Events tab.
The free tier covers 10,000 visits per month - enough to verify deduplication, confirm EMQ improvement, and compare reported purchases against actual orders before committing to a paid plan.
Frequently Asked Questions
What is the difference between a Shopify App Pixel and a Custom Pixel?
App pixels are registered by Shopify App Store apps and run in a strict web worker sandbox with no DOM access. Custom pixels are configured manually under Settings → Customer Events and run in a lax iframe sandbox. The practical tracking difference is that custom pixels are excluded from the December 10, 2025 PII scope enforcement and continue to receive full data, while app pixels require Shopify-approved scopes to access PII fields like email and phone.
My Shopify checkout_completed event is missing the customer email. Why?
Since December 10, 2025, app pixels receive null for data.checkout.email unless the app has been approved by Shopify for the read_customer_email protected data scope. If your pixel is receiving null, check whether your app has applied for and been granted the scope in the Partner Dashboard. As a fallback, the server side can retrieve the email via the Admin API using the order.id from the same event - AxiTrace does this automatically.
What is the checkout.token and why does it matter for server-side tracking?
checkout.token is a unique identifier for the checkout session. It is available both in the checkout_completed Web Pixel event payload and in the orders/paid webhook payload, making it the most reliable join key to stitch a browser-side event (which has cookie values like _fbp) to a server-side webhook event (which does not carry cookies). If your CAPI implementation handles both pixel events and webhooks, matching on checkout.token lets you enrich the webhook event with the browser-side identifiers.
Why does my Shopify purchase event show as “1 event from 1 source” in Meta Test Events?
It means only one pipe - either the browser or the server - is delivering the event, not both. Common causes on Shopify: the browser pixel is blocked by an ad blocker or consent tool; the checkout_completed event did not fire because the Thank You page did not load; or the CAPI call is failing silently. Check your server logs for CAPI response errors, confirm the pixel is loading on the Thank You page via browser DevTools, and verify test_event_code is included in the server payload so it appears in the Test Events view.
What happens to my tracking when checkout.liquid is retired?
For Shopify Plus merchants, checkout.liquid was retired on August 28, 2025 - this is already in the past. For non-Plus merchants, checkout.liquid has historically been Shopify Plus-only. The equivalent deadline for non-Plus merchants is August 26, 2026, when Additional Scripts and ScriptTags stop working. Any pixel code injected via those mechanisms must be migrated to a Web Pixel app or a server-side solution before that date. Shopify’s “best-effort” auto-migration does not guarantee script continuity.
Do I still need a browser pixel if I use server-side CAPI?
Yes. A redundant setup - browser pixel plus CAPI - is what Meta recommends and what delivers the best signal. The browser pixel captures fbp and fbc cookie values and fires immediately on page load, providing low-latency signals for upper-funnel optimization. The CAPI server call provides purchase reliability (fires even if the browser event is blocked or the tab is closed early) and allows richer user_data enrichment. Deduplication via a shared event_id ensures Meta counts each conversion once regardless of which path delivered it. See our Shopify CAPI integration guide and Facebook CAPI overview for implementation details.
Does the Shopify Scripts sunset on June 30, 2026 affect my conversion tracking?
Shopify Scripts handle discount, shipping, and payment logic - they are not tracking pixels and have no direct CAPI impact. The indirect risk is if discount or cart logic from Scripts influenced the order values reported in CAPI Purchase events. From July 1, 2026, that logic reverts to standard Shopify behavior. Review whether any Scripts touched order value calculations that feed into your custom_data.value field.
What is the best event_id format for Shopify Purchase events?
Use the clean numeric order.id from data.checkout.order.id in the checkout_completed payload - no # prefix, no gid://shopify/Order/ wrapper, just the plain integer cast to a string. Prefix it per event type to avoid cross-event collision: purchase_5210499102 for the Purchase event. Use the same value on the browser Pixel call (the fourth argument to fbq(), field name eventID) and in the CAPI payload (top-level field name event_id). The two field names are different; the values must be byte-for-byte identical.
Get tracking insights in your inbox
Tips on server-side tracking, conversion optimization, and product updates. Delivered weekly.
No spam. Unsubscribe anytime.