Google Tag Manager (GTM) is a free Google tool for managing advertising and analytics code from one place, without changing the website code every time. GTM itself measures nothing: it only fires tags that send data to GA4, Google Ads, Meta and elsewhere. So a tidy container means correct numbers in every system, and a messy one means errors in all of them at once.
What it is, in plain terms
The GTM code (the container) is added to the website once. Everything that happens afterwards is configured in the GTM account, without a developer. A container has four parts:
- Tags. What to send and where: a GA4 event, a Google Ads conversion, a Meta Pixel event.
- Triggers. When to send it: when a page opens, a form is submitted, a purchase happens.
- Variables. What data to attach: purchase amount, currency, order number.
- The data layer (dataLayer). The place where the website leaves information for GTM to pick up. If the store does not write the purchase amount there, no tag will send it.
GTM, GA4 and Google Ads: who does what
| Tool | What it does | What it does not do |
|---|---|---|
| Google Tag Manager | Fires tags based on conditions | Does not store or display data |
| Google Analytics 4 | Collects and displays visitor behavior across all channels | Does not manage other systems' tags |
| Google Ads conversion tag | Tells the ad platform about a purchase or lead | Does not show the visitor's whole journey |
| Consent Mode v2 | Passes the visitor's consent to the tags | Does not display the banner itself |
A common confusion: “we have Google Analytics, so tracking is in place”. GA4 can work perfectly while Google Ads receives not a single purchase, because they are different tags with different settings.
What is worth tracking
- A purchase with value and currency. Without the amount, the ad platform treats all purchases as equal and cannot look for bigger baskets.
- A submitted lead. Only when the form has really been sent and the server has confirmed it.
- A call. A click on the phone number on the website and calls straight from ads.
- Intermediate steps in an online store. Product view, add to cart, checkout start. They show where buyers drop off.
What not to treat as a conversion: page views, scrolling, time spent. You can track them, but if they are marked as primary goals, the ad algorithm will start optimizing for them instead of sales.
A 10-minute check
- GTM Preview mode. Make a test purchase or send a test lead. You will see which tags fired, how many times and with what data.
- GA4 → Admin → DebugView. Events are shown in real time. A purchase must carry
value,currencyandtransaction_id. - Google Ads → Goals → Conversions. The status and diagnostics of each action: whether the tag is active and when a conversion was last received.
- Three sources. Compare last month's number of purchases in the store's back office, GA4 and Google Ads. How to read the differences is described in the conversion tracking check.
- Website code. Search the page source for
GTM-andgtag(. Two containers, or the same tag both in the code and in GTM, usually mean double counting.
The five mistakes we find most often
- A conversion is counted on a button click. The visitor clicks “Send”, the form shows an error, and the conversion is already recorded. What should be counted is a successful submission.
- Duplication. The same purchase is sent by both a GTM tag and the store's plugin. Or the Google Ads tag and the GA4 import are both marked as primary. The symptom: Google Ads shows 15–25% more purchases than the store.
- A purchase without value or without an order number. Without value, return targets do not work. Without
transaction_id, a reloaded thank-you page is counted as another purchase. - Tags without consent requirements. The cookie banner is shown, but advertising tags fire regardless of the answer. More: Consent Mode v2.
- A container in disarray. Tags named “test2”, a previous agency's pixels, changes published without Preview mode. Until something breaks, nobody knows what is running in there.
When you need a developer
In Shopify and WooCommerce stores, ready-made apps and plugins pass purchase data to the data layer, so most of the work is done in the GTM account. In custom-built systems a developer has to output the purchase data (amount, currency, order number, items) to the dataLayer once. That is a few hours of work if the task is described precisely. Everything after that is done without them.
Common questions
Is Google Tag Manager paid?
Does Google Tag Manager slow down a website?
Can you do without Google Tag Manager?
How is Google Tag Manager different from Google Analytics?
Services: tracking setup and maintenance · Google Ads management · free Google Ads audit
