Key facts
  • Checkout Extensibility deprecates checkout.liquid and runs pixels inside a strict sandboxed iframe where legacy DOM-scraping GTM scripts fail silently.
  • Replace stacked native channel apps with one clean Shopify Customer Events Custom Pixel posting checkout_completed payloads to a first-party Stape/GCP sGTM endpoint.
  • Use deterministic shop_ keys identically across GA4 transaction_id, Google Ads Enhanced Conversions, and Meta CAPI event_id to prevent 2x double-counting.
  • Exclude shop.app, pay.shopify.com, and paypal.com in GA4 Unwanted Referrals and restore landing UTMs via first-party server cookies.
Shopify Plus Migration Architecture

Avoid running Shopify’s native Facebook and Google channel apps alongside legacy GTM scripts without shared deduplication. Replace overlapping scripts with one Shopify Customer Events Custom Pixel emitting standardized checkout_completed payloads (including order.id, hashed customer email/phone, and subtotal minus tax/shipping) into a first-party Stape/GCP sGTM container that fans out cleanly to GA4, Google Ads Enhanced Conversions, and Meta CAPI with identical order_id deduplication.

Shopify Checkout Extensibility Failure & Fix Matrix

Checkout SymptomRoot CauseVerified Fix
25–40% Missing PurchasesLegacy checkout.liquid / Additional Scripts droppedSubscribe to checkout_completed in Customer Events
2x Revenue in Meta AdsNative Meta channel + sGTM firing mismatched IDsSingle Custom Pixel → sGTM fan-out with shop_<orderId>
Shop Pay Self-ReferralsCross-domain redirect resets GA4 session sourceAdd shop.app to Unwanted Referrals + 1st-party cookies
Tax/Shipping Inflating ROASPassing totalPrice instead of subtotalPriceSend net subtotalPrice.amount + refund reversal hook

Clean Shopify Customer Events Custom Pixel Pattern

analytics.subscribe("checkout_completed", (event) => {
  const c = event.data.checkout;
  const orderId = c.order?.id || c.token;

  fetch("https://metrics.yourstore.com/shopify-events", {
    method: "POST",
    keepalive: true,
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      event_name: "purchase",
      event_id: "shop_" + orderId,
      transaction_id: orderId,
      currency: c.currencyCode,
      value: Number(c.subtotalPrice?.amount || c.totalPrice?.amount || 0),
      user_data: {
        email: c.email || "",
        phone: c.phone || c.shippingAddress?.phone || "",
        city: c.shippingAddress?.city || "",
        zip: c.shippingAddress?.zip || "",
        country: c.shippingAddress?.countryCode || ""
      }
    })
  });
});

Shop Pay Referrer Fix & Official Specifications

Add shop.app, pay.shopify.com, and paypal.com to GA4’s Unwanted Referrals list and persist original landing UTMs/gclid/_fbc in first-party server cookies so accelerated wallet checkouts never steal attribution from paid campaigns. Compare 3-year costs in SaaS vs. Owned sGTM, inspect our Elevar Alternative Guide, or review primary docs: Shopify Web Pixels API (checkout_completed) and Stape Server-Side GTM Docs.

Technical FAQs

Why did our GA4 and Google Ads revenue drop 25–40% after migrating to Shopify Checkout Extensibility?
Checkout Extensibility deprecates checkout.liquid and runs tracking inside a strict sandboxed iframe where legacy GTM DOM scripts cannot access window.top cookies or dataLayer reliably. Migrating requires a clean Customer Events custom pixel posting structured ecommerce events into a first-party Server-Side GTM container.
Should we keep Shopify's native Google & YouTube or Facebook & Instagram channel apps enabled alongside custom sGTM?
Do not let two integrations fire conversion events simultaneously without identical order_id deduplication. Most $50k–$500k+/month Shopify Plus stores keep channel apps strictly for product catalog feeds while routing all conversion events cleanly through one owned sGTM container.
How do we stop Shop Pay and PayPal accelerated checkouts from appearing as referral traffic in GA4?
Add shop.app, pay.shopify.com, and paypal.com to GA4's List Unwanted Referrals setting AND persist original landing click IDs and UTMs in first-party server-set cookies before checkout begins.