Shopify

Shopify tracking that accounts for Shopify's checkout.

Shopify's native checkout is the single biggest reason merchants have broken tracking. AtriTap generates a GTM + GA4 plan that fires add_to_cart and begin_checkout on the storefront, plus the correct purchase push on the Thank You page via a ScriptTag or checkout.liquid (Shopify Plus).

Implementation notes

  • Add the GTM container snippet to theme.liquid head and body.
  • For the purchase event, install a ScriptTag that reads Shopify.checkout and pushes to dataLayer on order status page load. Shopify Plus customers can customise checkout.liquid directly.
  • For add_to_cart, hook into your theme's cart add handler or listen for the cart AJAX endpoint.
  • Be mindful of Shopify's native 'Online Store 2.0' sections: cart drawers need special handling to fire the event once per add.

Common pitfalls

  • Firing the purchase event from the cart page instead of the Thank You page. This double-counts carts that never complete.
  • Using gross values when Shopify reports net of discount. Match the dataLayer value to what you report as revenue.
  • Ignoring checkout extensions: they can intercept cart events if not accounted for.

FAQ

Do I need Shopify Plus?

No. The Thank You page purchase event works on standard Shopify via a ScriptTag. Plus just offers more control via checkout.liquid.

Will this work with Shop Pay?

Yes. Shop Pay orders land on the same order status page and the purchase event fires correctly.

Can I use AtriTap with Shopify's native analytics?

Yes, they run side by side. Shopify Analytics is a separate reporting surface; AtriTap's job is to make your external tracking (GA4, Meta, Google Ads) accurate.