Triangle Digital
Guides

Shopify Google Tag Manager, data layer and tracking guides

Plain-English, tested answers to the questions Shopify merchants and marketers actually ask: how to install Google Tag Manager, build a data layer, track checkout with Customer Events, and get GA4, Google Ads, Meta, TikTok and Pinterest reporting the same numbers.

Start here

SetupHow to Set Up Google Tag Manager on Shopify (Storefront and Checkout)Step-by-step Shopify Google Tag Manager setup: theme snippet, Customer Events pixel for checkout, data layer, then GA4 and Google Ads tags.Read the guide →

All guides

Shopify tracking glossary

The key terms behind a clean Shopify tracking setup, in one place.

Google Tag Manager (GTM)
A free tag management system from Google. You load one container on your Shopify store, then add, change and test marketing and analytics tags (GA4, Google Ads, Meta, TikTok and more) without editing theme code each time. Learn more
Data layer
A JavaScript array (window.dataLayer) that holds structured information about what is happening on your store: the product viewed, the cart contents, the order total. GTM reads it, so every tag gets the same clean data. Learn more
Shopify Customer Events
Shopify's pixel framework (Settings → Customer events). It exposes standard storefront and checkout events to sandboxed custom pixels, and it is the supported way to track Shopify checkout and thank-you pages. Learn more
GA4 ecommerce events
The standard Google Analytics 4 event set for stores: view_item, add_to_cart, begin_checkout, add_payment_info, purchase and others, each carrying currency, value and an items array. Learn more
Enhanced Conversions
A Google Ads feature that sends hashed first-party customer data (like email) with a conversion so Google can match more sales to ad clicks, improving measurement and bidding. Learn more
Consent Mode v2
Google's framework for adjusting how tags behave based on a visitor's cookie consent, using four signals: ad_storage, analytics_storage, ad_user_data and ad_personalization. Learn more

Skip the build

Get a ready-to-import Shopify Google Tag Manager container

Shopify DIY Tagging Packs ship a tested GTM container, the Shopify data layer snippet, the Customer Events pixel and a step-by-step install guide. Own the container, no monthly fee, 30 minutes of setup support included.