How Google Tag Manager works

A single Google Tag Manager (GTM) code is added to the website once. All other tracking and advertising codes (Google Analytics 4, Google Ads conversions, Meta Pixel, Hotjar and others) are then added and edited in the GTM interface. It works with three concepts:

  • Tag: the code itself that should run, for example sending a conversion to Google Ads.
  • Trigger: when it should run, for example after a form is submitted or on the order thank-you page.
  • Variable: the value passed along, for example the order value in €.

Why use it

  • Order: all tracking is in one place rather than scattered across the theme and plugins.
  • Faster changes: you add new tracking without touching the website code.
  • Preview and testing: you check that a tag works before publishing it.
  • Versions: every change is saved and you can roll back if something goes wrong.
  • Cookie compliance: tags can be tied to visitor consent through Consent Mode.

A real example

A construction company from Malacky was paying for ads on Google Ads and Facebook, but did not know how many enquiries they brought. Its website form was built with Elementor and nothing was being tracked. In GTM I set up one trigger for a successful form submission and connected a Google Ads conversion, Meta Pixel and a GA4 event to it. Since then the company can see which campaign brings enquiries and which only brings clicks.

Common mistakes

  • The same code is added through both GTM and a plugin, so everything is counted twice.
  • The GTM account is set up in the name of an agency or a former employee. The company should be the owner.
  • Tags fire before cookie consent is given, which breaches GDPR.
  • Dozens of old, forgotten tags slow the website down.

Tag Manager is free. Setting it up does take some technical knowledge, though, and a mistake in it can skew your tracking. If you are not sure, I can set it up as part of Google advertising or Meta advertising.