What is Google Tag Manager?
Google Tag Manager (GTM) is a free tag management system that allows you to add and manage multiple tracking scripts on your Shopify store without editing your theme code every time. Using GTM, you can manage:
- Google Analytics 4 tracking
- Facebook Pixel
- Conversion events (purchase, form submission, add-to-cart)
- Custom tags for marketing and analytics tools
This guide covers two methods for installation: via Shopify’s Google & YouTube app (easier) or manual code injection (more control), plus how to test GTM with GemPages-built pages.
Before starting, ensure you have:
1. GTM Account & Container ID
Sign up at Google Tag Manager.
Create a container for your Shopify store and copy the Container ID (GTM-XXXXXXX).
2. Shopify Admin Access
Must have permission to edit themes or insert scripts.
3. Tracking Plan
Identify the events you want to track: page views, add-to-cart, checkout, purchases, form submissions.
How to Install Google Tag Manager on Shopify
Step 1: Go to Shopify Apps Store → Google & YouTube. Click Install.
Step 2: Once installed, Click Connect Google account to connect your Google Ads account and enable conversion tracking.

Step 3: Enter your GTM Container ID when prompted.
Step 4: Choose which tags to enable, such as Analytics 4, Ads, or conversion events.
Step 5: Complete the setup and verify tag firing using GTM Preview or Google Tag Assistant.
Thank you for your comments