Google Tag Manager
45-60 minAdvanced
Implementing GTM on Shopify has changed significantly with 'Checkout Extensibility'.
Prerequisites
- GTM Account
- Shopify Plus (optional for checkout.liquid)
Intermediate Recommended
Method 1: Customer Events (Standard)
The modern, future-proof way (Pixel API).
1
Create Custom Pixel
1
Settings > Customer Events > Add Custom Pixel.
2
Name: 'Google Tag Manager'.
3
Paste the GTM loader script (wrapped in Shopify's analytics.subscribe syntax).
4
Note: This runs in a Sandbox (iframe), so some standard DOM scraping triggers in GTM won't work perfectly.
Verification Checklist
- Preview Mode