Every measurement and marketing tool you add to a website, such as Google Analytics, Google Ads conversion tracking, remarketing, Meta Pixel or a heatmap, needs code on the site. Adding each one by hand into the website’s code is slow, error-prone and dependent on developers. Google Tag Manager (GTM) solves this by letting you manage all these tags from one panel, add and change them without editing the site each time, and test them before they go live.
In this guide we explain what GTM is and is not, how it differs from Analytics and Search Console, its building blocks (tags, triggers, variables and the data layer), the account structure, how to install it (including on WordPress), how to set up GA4, how to track events such as clicks, forms, downloads and scrolling, how to track e-commerce and Google Ads conversions, and how to preview, publish and keep things tidy.
What Is Google Tag Manager?
A free tag management system that lets you manage measurement and marketing tags (small pieces of code) on websites and apps from a central panel.
What Does GTM Mean?

GTM is the abbreviation of Google Tag Manager.
What Is Google Tag Manager Used For?
- It manages measurement codes centrally.
- It measures user interactions such as clicks, forms and scrolling.
- It tracks ad conversions.
- It fires tags only under certain conditions.
- It lets you test before publishing.
- It keeps a version history so you can roll back.
Is Google Tag Manager an Analytics Tool?
No. GTM manages tags and helps send data to analysis platforms. For reporting, you use a tool like Google Analytics.
Google Tag Manager vs. Google Analytics
Google Analytics reports on data. Google Tag Manager manages the tags and triggers that send data. You can install Analytics without GTM (the Google tag can be added directly), but GTM helps when you need detailed event tracking or many tags.
Google Tag Manager vs. Google Search Console
Google Search Console shows how your site performs in Google Search. GTM manages tags on your site. They do different jobs, though you can verify Search Console with GTM.
Google Tag Manager vs. the Google Tag
The Google tag is the tag that sends data to Google products such as Analytics and Ads. GTM is the container system you can use to deploy it and other tags.
The Core Components of Google Tag Manager
What Is a Tag?
A snippet of code that does something, such as sending an event to Analytics or recording an ad conversion.
What Is a Trigger?
A rule that says when a tag should fire, such as on a page view, a click or a form submission.
What Is a Variable?
A piece of information GTM can use, such as a page URL, a click text or a value from the data layer.
What Is the Data Layer?
A structured object on the page that passes information (such as order details) to GTM.
How Do Tags, Triggers and Variables Relate?
A tag does something, a trigger decides when, and variables supply the details.
Google Tag Manager Account Structure
- GTM account: the top-level container for an organization.
- Container: holds the tags for one website or app.
- Workspace: a space for working on changes.
- Version: a saved snapshot of the container that you can publish or roll back to.
- Environment: separate setups for testing and live.
How to Install Google Tag Manager
How to Create a GTM Account
Sign in to Tag Manager, create an account and a container for your website.
How to Add the GTM Code to the Site
GTM gives two snippets: the first goes in the <head> of the page, and the second (a noscript snippet) goes immediately after the opening <body> tag.
How to Add GTM to WordPress
On WordPress:
- Manual installation in theme files (preferably a child theme)
- With a plugin
- With Site Kit
How to Check the GTM Installation
Use Preview mode and Tag Assistant to confirm the container loads on your pages.
How to Set Up Google Analytics 4 with GTM
Create a Google tag with your GA4 measurement ID, and fire it on all pages.
Which Trigger Is Used for the Google Tag?
Typically “Initialization – All Pages” or “All Pages,” depending on your setup.
How to Do Event Tracking with GTM
Common events you can set up:
- Phone click tracking: trigger on clicks on
tel:links. - WhatsApp click tracking: trigger on clicks on WhatsApp links.
- Email click tracking: trigger on
mailto:links. See how to measure WhatsApp, phone and email clicks with GA4. - Form submission tracking: trigger on successful submissions or a thank-you page.
- File download tracking: trigger on clicks on file links.
- Page scroll tracking: trigger at scroll depth thresholds.
- YouTube video tracking: trigger on video play and progress events.
- E-commerce tracking: use the data layer for product views, cart and purchases.
A Purchase Data Layer Example
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: 'purchase',
ecommerce: {
transaction_id: 'T12345',
value: 249.90,
currency: 'TRY',
items: [{ item_id: 'SKU_001', item_name: 'Product', price: 249.90, quantity: 1 }]
}
});
How to Set Up Google Ads Conversion Tracking with GTM
Create a conversion action in Google Ads, then add a Google Ads conversion tracking tag in GTM with the conversion ID and label, and fire it on the right trigger (such as a successful purchase or form event). Add the Conversion Linker. For ad management, see digital ad management.
What Can Be Tracked with Google Tag Manager?
Page views, clicks, form submissions, calls and messaging clicks, downloads, scroll depth, video engagement, e-commerce steps, ad conversions and remarketing audiences, and third-party tags.
How to Prepare a Measurement Plan
Before building, list your business goals, the actions that show progress, the data needed for each and how each will be implemented. A plan prevents a messy container.
An Event Naming System
Use consistent, clear names (for example generate_lead, click_phone) so that reports stay readable.
How to Use GTM Preview Mode
Preview mode lets you load your site with the draft container to see which tags fire and what data they send, before publishing.
What to Check in Tag Assistant
That tags fire once, on the right triggers, with the right variable values, and that no tag fires unexpectedly.
How to Publish and Manage Changes
Review your workspace changes, add a version name and description, and publish. Use version history to roll back if needed. Give users the right permissions.
Best Practices
- Plan before building
- Use clear naming
- Keep the container tidy and remove unused items
- Don’t install the same tag both in GTM and in the site code (to avoid double counting)
- Test every change
- Document versions
- Respect privacy and consent requirements
Common Mistakes
- Duplicate tags
- Tags firing on the wrong pages
- Not testing before publishing
- No naming system
- Ignoring consent rules
- Slowing the site with too many tags; see Google PageSpeed Insights
GTM and Landing Pages
Track the key actions on landing pages so you can improve them. See what is a landing page.
For help setting up your measurement, see our digital marketing service.
Frequently Asked Questions
What is Google Tag Manager?
A tag management system that helps manage measurement and marketing tags on websites and apps from a central panel.
What does GTM stand for?
GTM stands for Google Tag Manager.
What is Google Tag Manager used for?
It helps manage Analytics, ad conversion, remarketing, form, click, video, file download and e-commerce tags.
Is Google Tag Manager free?
Standard Google Tag Manager use is free. Google Tag Manager 360 has different enterprise features for large organizations.
Is Google Tag Manager an analytics tool?
No. GTM manages tags and helps send data to analytics platforms. For reporting, tools such as Google Analytics are used.
Are Google Analytics and Google Tag Manager the same?
No. Google Analytics reports data, while Google Tag Manager manages the measurement tags and triggers.
Can Analytics be installed without Google Tag Manager?
Yes. The Google tag can be added directly to the website. But for detailed events and managing multiple tags, GTM can be useful.
Where is the GTM code added?
The first code is added to the head section of the page, and the second noscript code immediately after the opening body tag.
How is GTM added to WordPress?
Theme files, a child theme, a suitable plugin, theme integration or Site Kit can be used.





