Free check

Shopify GTM is in the theme. Is checkout covered?

Usually not by GTM itself. Shopify's checkout and Thank you pages don't load your theme code, so a GTM snippet in the theme only covers the storefront. Checkout is covered by customer events: an app pixel such as the Google and YouTube app, or a custom pixel. You need to check which of those is in place and what it sends.

Fix Shopify purchase tracking

Symptom

Google Tag Manager is installed in theme.liquid and storefront tags work: page views, product views, maybe add to cart. But begin_checkout, add_payment_info or purchase are missing, partial, or come from somewhere you can't see in GTM. GTM Preview shows nothing once you reach checkout.

Possible causes

How to check

  1. List the pixels. In Shopify admin, Settings, Customer events. Note each app pixel and custom pixel, whether it is connected, and its customer privacy settings.
  2. Read each custom pixel. Look for analytics.subscribe calls and note which standard events they handle: checkout_started, payment_info_submitted, checkout_completed and so on. Check whether a GTM container is loaded inside the pixel, and whether it is the same container as the theme's.
  3. Check the Google and YouTube app. Open the app and note which GA4 property and Google Ads account it is connected to. Compare them with the IDs in GTM.
  4. Run a real test order. Use a test payment method or a discount code that makes the order free, in a clean browser, and accept cookies. Keep DevTools open on the Network tab with "Preserve log" ticked, filtered on collect. Pixel requests come from the sandbox iframe but still appear there.
  5. Confirm in GA4. Find the test order in DebugView or Realtime, then the next day in an ecommerce report filtered by transaction ID. Compare the ID, value and currency with the Shopify order.

Illustrative custom pixel subscription, simplified and not a drop-in implementation:

analytics.subscribe('checkout_completed', (event) => {
  const checkout = event.data.checkout;
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({ ecommerce: null });
  window.dataLayer.push({
    event: 'purchase',
    ecommerce: {
      transaction_id: checkout.order?.id,
      value: checkout.totalPrice?.amount,
      currency: checkout.currencyCode
    }
  });
});

A real implementation also maps the line items, decides how tax, shipping and discounts are treated, and handles consent.

What the result means

Limitation. In our public-page check of 975 Shopify stores on 14 November 2026, 74 had GTM in the theme with no custom pixel detected and no app pixel referencing that container. That does not prove those stores' purchase tracking is broken: the Google and YouTube app or another route may still send purchases. A public-page check can't confirm whether purchase tracking works. Only a test order can.

How to fix it

What not to do

When to request help

Our Shopify tracking service checks the storefront and checkout paths, customer events, consent and the GA4 purchase end to end. The fixed-scope £495 Shopify Purchase Tracking Fix covers one store and one agreed GA4 purchase path.

Related guides:

Not sure what's wrong?

Send us your store address. Mikael will look at the public pages and tell you what he can see, and what he can't.

Fix Shopify purchase tracking

Sources and updated date

Last checked against official documentation: 18 November 2026.