How to Create a Google Tag Manager (GTM) Container – Client Reference Guide
Purpose
This article helps clients and their agencies:
- Create a Google Tag Manager (GTM) container
- Understand where GTM fits in their tracking setup
- Avoid common mistakes during GTM setup
Note: This article explains how to create a GTM container.
Configuration of tags, triggers, and ad platforms is managed by the client or their agency.
What Is a GTM Container?
A GTM container is a workspace in Google Tag Manager that holds:
- Tracking tags (Google Ads, Meta, GA4, etc.)
- Triggers (when a tag should fire)
- Variables (data used by tags)
Each website or application should ideally have one GTM container.
Prerequisites Before Creating a GTM Container
Ensure the following
- A Google account with access to Google Tag Manager
- Website or landing page access (to paste GTM code)
- Clear ownership between client vs agency
Step-by-Step: Creating a GTM Container
Step 2: Create a New Account
- Click Create Account
- Enter:
- Account Name (usually your organization name)
- Country
- Click Continue
Step 3: Create a Container
- Enter Container Name (recommended: website domain name)
- Choose Target Platform:
- Web (most common)
- AMP
- Android
- iOS
- Click Create
Step 4: Accept GTM Terms
- Accept Google Tag Manager Terms of Service
- Your GTM container will now be created
GTM Container ID (Important)
Once created, you will see a Container ID:
GTM-XXXXXXX
This ID is:
- Required if adding GTM inside platforms like Meritto Landing Pages
Installing the GTM Container Code After container creation, GTM provides two code snippets:
Code Snippet 1 (Head Section)
Placed inside:
<head>...</head>
Code Snippet 2 (Body Section)
Placed immediately after:
<body>
Important Notes:
- Both snippets are mandatory
- Installation is usually done by:
- Website developer
- Agency
- CMS admin (WordPress, Webflow, etc.)
Verifying GTM Installation
Before using GTM:
- Open GTM dashboard
- Click Preview
- Enter your website URL
- Confirm GTM connects successfully
If preview does not connect:
- GTM code is missing or incorrect
- Cache/CDN may need clearing
Best Practices (Strongly Recommended)
- Use one GTM container per website
- Avoid installing GTM multiple times
- Always use Preview mode before publishing
- Maintain access control for GTM users
- Document who owns:
- GTM
- Ad accounts
- Analytics accounts
Common Mistakes to Avoid
- Creating multiple GTM containers for the same website
- Installing only one of the two GTM code snippets
- Publishing tags without testing
- Giving full access to too many users
- Assuming GTM automatically tracks leads (it does not)
Related Articles
Meritto and Google Tag Manager
Overview Google Tag Manager (GTM) is like your go-to code manager. It helps you manage and track important user actions on your website without fiddling with code. These actions, known as "tags," include things like clicking a button, watching a ...
How to set up Meta Ads conversions with Google Tag Manager for widgets?
Overview Integrating the Meta (Facebook) Pixel with Google Tag Manager (GTM) ensures accurate tracking of visitor activity on your website and Meritto widgets. This setup enables you to track key events such as page visits and lead submissions, ...
How can you identify the triggers of your Meritto Assets using Google Tag Manager?
Overview This article guides you through the process of identifying and configuring triggers for Meritto assets using Google Tag Manager (GTM). It includes steps for verifying the AJAX Listener setup, using Preview Mode to track widget events like ...
How to set up Google Ads Enhanced Conversions with Google Tag Manager for widgets?
Overview Enhanced Conversions is a Google Ads feature that makes tracking your leads more accurate. Here’s how it works: When a user fills out a form on your website, details like their email or phone number are securely sent to Google Ads. Google ...
How to Identify and configure GTM Code in Meritto?
Overview Google Tag Manager (GTM) is a tag management system that enables you to deploy and manage multiple tracking scripts from a centralized container, eliminating the need for direct code modifications on your website. It acts as a central ...