How to Install GTM on Shopify
For Shopify, add the GTM head snippet to theme.liquid before </head> and the body snippet after <body>. For the checkout/thank-you page (Shopify Plus only), add snippets to checkout.liquid. For standard Shopify, use the Additional Scripts section under Settings > Checkout for purchase tracking. Alte
Quick Summary
For Shopify, add the GTM head snippet to theme.liquid before and the body snippet after
. For the checkout/thank-you page (Shopify Plus only), add snippets to checkout.liquid. For standard Shopify, use the Additional Scripts section under Settings > Checkout for purchase tracking. Alternatively, use a Shopify GTM app for easier setup. Note: Shopify's checkout is hosted separately, so standard GTM installation may not track checkout events — use Shopify's native checkout pixels or the Customer Events API.Overview
For Shopify, add the GTM head snippet to theme.liquid before and the body snippet after
. For the checkout/thank-you page (Shopify Plus only), add snippets to checkout.liquid. For standard Shopify, use the Additional Scripts section under Settings > Checkout for purchase tracking. Alternatively, use a Shopify GTM app for easier setup. Note: Shopify's checkout is hosted separately, so standard GTM installation may not track checkout events — use Shopify's native checkout pixels or the Customer Events API.Related Guides
See our complete guide library for detailed coverage of setup, tracking, analysis, and optimisation across all platforms.
Process Flow
Interactive diagram — drag to pan, scroll to zoom
Step-by-Step Guide
Follow these 3 steps to complete this guide
Step-by-Step Setup
Best Practices
Common Issues and Solutions
Frequently Asked Questions
Common questions about this topic
Was this guide helpful?
Your feedback helps us improve our guides