Content
What Google Tag Manager is in plain words
The practical payoff for a business is speed and independence. A marketer or contractor adds a pixel in five minutes instead of waiting three days for a developer. Fewer tickets, less risk of breaking the site, a faster ad launch. That’s why GTM is the standard first step when we take on website analytics: without it, every change to tracking runs into the developer.
GTM, Google Analytics and the pixel: who does what
| Tool | What It Is | Role |
|---|---|---|
| Google Tag Manager | Tag management system | Stores and deploys other tracking codes. It does not collect analytics data itself. |
| Google Analytics 4 | Analytics platform | Collects data about visitor behavior and interactions on the website. |
| Meta Pixel / Google Ads Tag | Advertising platform tracking code | Sends conversion data to advertising platforms for campaign optimization and performance measurement. |
It’s worth separating GTM from event configuration inside the analytics itself. GTM is responsible for making sure an event fires and gets passed at all. How to then mark those events as key, build reports on them and avoid common counting mistakes is the territory of Google Analytics 4. We cover that in a separate article on key events in GA4, because the topic is large and deserves its own piece. Here we focus on GTM as the installation tool.
Three concepts to know: tag, trigger, variable
Tag
Trigger
Variable
An easy way to remember it: tag – what to fire, trigger – when to fire it, variable – with what data. Any setup in GTM is a combination of these three.
How to install GTM on a site without a developer
- Create an account. Go to tagmanager.google.com under your work Google account, create a company account and a container for your site. Choose the "Web" type. Google issues a container ID in the form
GTM-XXXXXX. - Get the container code. GTM shows two code snippets. The first is for the
headsection, the second for the start of thebody. You need both: the first launches GTM as early as possible, the second works as a fallback for cases where JavaScript is disabled in the browser. - Paste the code into the site. The method depends on the platform (details below). On most content management systems and builders there's a dedicated field or plugin for this - you won't need to edit code by hand.
- Check with preview mode. In GTM, click "Preview", enter your site address, and a window opens telling you whether GTM sees your site and whether the tags fire. This is a mandatory step: half the problems get caught right here.
- Publish. Changes in GTM don't take effect until you click "Submit" and publish the version. This is a common cause of "I set everything up and it doesn't work" - they forgot to publish.
Google Ads conversions through GTM
- In Google Adscreate a conversion action (for example, "Order" or "Lead") and get the conversion ID and label.
- In GTM add a "Google Ads Conversion Tracking" tag and enter this data.
- Attach a trigger to the moment of conversion: a view of the thank-you page, a click on the form submit button, a call through the site button.
- Check through preview mode that the tag fires exactly when it should - and not on every page.
A mistake here is expensive: if conversions are counted wrong (duplicated or not firing), Google Ads optimises toward false data and burns budget. That’s why tracking accuracy is one of the first things we check during a PPC audit: very often it turns out a campaign “isn’t working” not because of bids or creatives, but because of broken conversion counting. If you’re just launching Google Ads, correct tracking through GTM should be in place before the first impression.
Meta Pixel and TikTok Pixel in one container
A note on the Meta Pixel specifically: it has its own subtleties with standard events and data matching, which we cover in our article on the Facebook and Instagram pixel. If you’re running Facebook and Instagram ads, a pixel set up correctly through GTM is the foundation, without which optimising toward purchases is impossible.
What else businesses set up through GTM besides pixels
- Clicks on buttons and links. “Order,” “Buy,” “Call” – GTM records each press and passes it to analytics and advertising. You see not just the leads that came through, but how actively people press the button.
- Form submissions. A lead, a subscription, a quote request – a separate event for each form. This is the most common conversion for services and B2B sites.
- Clicks on phone and messengers. A tap on the phone number, the WhatsApp or Telegram button – important for businesses where orders come through a call or chat rather than a cart.
- Scroll depth. How many people read a long page down to the price list or the terms block. If only 10% reach the price, the problem is in the page structure, not the traffic.
- Video views and file downloads. How many times people played the presentation or downloaded the price list or a proposal.
- Add to cart and checkout start. For an online store, these are the key funnel steps that show where visitors drop off.
The data layer: when you do need a developer
GTM for WordPress, Shopify and WooCommerce
The installation method depends on the platform. In every case the essence is the same – deliver the container ID GTM-XXXXXX to the site – but it’s done differently.
| Platform | How to Install |
|---|---|
| WordPress | Use a dedicated Google Tag Manager plugin (enter the container ID and the plugin inserts the code automatically), or add it through your theme settings or page builder. |
| Tilda | Use the dedicated field in the website settings — no need to paste the code, just enter the container ID. |
| OpenCart | Install via the built-in analytics module or by editing the theme’s header template. |
| Prom.ua | Use the tracking code field in the account settings or connect analytics through the available integrations. |
The general rule: on almost every modern platform there’s a dedicated field for GTM, and you don’t need to edit code by hand. Difficulty only arises on old custom sites without convenient settings – there you can’t avoid access to the template code. In such cases a one-time hand from a contractor or our website support solves the issue in one pass.
Cookie consent and Consent Mode
Versions and rollback: why GTM is safe for experiments
Common mistakes and why you should always check
- Forgot to publish. You set up a tag, checked it in preview, and on the site it doesn’t work. Because the changes aren’t published. The most common beginner mistake.
- Double counting. The analytics counter is in both the site code and GTM at the same time. The data doubles, conversions inflate, and the ad algorithm optimises toward phantom results.
- The tag fires in the wrong place. A conversion is attached to a view of any page instead of the thank-you page – and every visit is counted as an order.
- Didn’t check after launch. The setup was done once and forgotten. Then the site was updated, the structure changed, the trigger stopped firing – and tracking quietly died.
When we open a new client’s GTM container, we most often see the same thing: a conversion attached to a view of any page instead of the thank-you page, so every visit is counted as an order. The owner looks at the report, sees “a hundred conversions” and is sure the ads are working – while there were really five orders. The second most frequent is a double counter: analytics sits in both the site code and GTM, the data doubles, and the ad algorithm optimises toward numbers that don’t actually exist. So the first thing we do when connecting is not add new tags, but check whether the old ones count correctly.
It’s also worth agreeing on a naming system for tags and triggers from the very start. When a container has 30 tags named “Tag 1,” “Tag copy (2),” making sense of it later becomes impossible. This is the case where half an hour of discipline at the start saves days of untangling afterward – and we apply the same principle to site structure for SEO promotion: order at the top costs less than chaos at the bottom.
DIY or hire: when each makes sense
Hiring someone makes sense in three cases. First, when money in advertising is on the line: if you run paid Google campaigns and conversions are counted wrong, the price of the mistake is burnt budget, not spoiled statistics. Here, saving on setup turns into losses many times the cost of the work. Second, complex tracking: several ad platforms, e-commerce events (product, cart, purchase with an amount), cookie consent. Here one inaccuracy breaks the whole analytics. Third, when you simply have no time to figure it out and tracking was needed yesterday.
As a market benchmark: a one-time GTM setup with a basic set of events is a few hours of a specialist’s work, while more complex e-commerce tracking with verification can take up to a few days. Within ongoing support, setting up and monitoring tracking usually comes as part of the package without separate billing. We more often do it this way, because correct tracking is needed not once but continuously: the site gets updated, new campaigns are added, and every change can quietly break a previously configured event.
FAQ
-
How is Google Tag Manager different from Google Analytics?
Google Tag Manager is a code manager: it installs and stores other tools on your site (the analytics counter, ad pixels, chats) and controls when they fire. Google Analytics is the analytics tool itself, which collects and displays data about visitor behaviour. GTM is the box of tags, Analytics is one of the tags inside it. You install Analytics through GTM, not the other way around. -
How do I install GTM on a site without a developer?
Create a free account at tagmanager.google.com, get the two container code snippets and paste them into your site: one in the head section, the second right after the opening body tag. On WordPress, Shopify and most builders this is done through a built-in field or plugin, with no manual code editing. The simplest option for WordPress is a dedicated GTM plugin where you just enter the container ID. -
How do I set up Google Ads conversions through GTM?
In Google Ads, create a conversion action and get the conversion ID and label. In GTM, add a "Google Ads Conversion Tracking" tag, enter this data and attach it to a trigger - for example, a view of the thank-you page after an order is placed, or a click on a form submit button. Check through GTM's preview mode that the tag fires exactly at the moment of conversion. -
Can I install the Meta Pixel and TikTok Pixel at the same time through GTM?
Yes, that's the whole point of GTM. A single container can hold as many pixels and counters as you want: the Meta Pixel, TikTok Pixel, analytics counter, Google Ads pixel. They are all managed from one interface, without touching the site code each time. Each pixel is added as a separate tag and attached to its own triggers. -
How do I set up GTM for WordPress, Shopify or WooCommerce?
On WordPress, through a Google Tag Manager plugin or a field in the theme or builder. On Shopify, GTM is added through the theme code or a dedicated app. On WooCommerce, through an analytics plugin that supports GTM and the data layer. In every case it's enough to enter a container ID in the form GTM-XXXXXX, while the tags themselves are configured inside GTM.