GA4 Setup Agency

Google Tag Manager Explained: Tags, Triggers and Variables

Google Tag Manager Explained: Tags, Triggers and Variables

By GA4 Setup Agency. Updated 28 November 2026. Filed under Tag Management.

Google Tag Manager (GTM) is a free system for deploying measurement and marketing tags without editing site code for each change. It does not store or report data itself.

The building blocks

Tags

A tag does something, such as sending a GA4 event or recording an advertising conversion.

Triggers

A trigger decides when a tag runs: a page load, a click, a form submission or a custom event.

Variables

Variables supply values, such as a page path, a product price or a form name.

The data layer

The data layer is a JavaScript object your website pushes information into. It is more dependable than reading text from the page.

window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'generate_lead',
  form_name: 'quote_request'
});

Never push names, email addresses or other personal data into general analytics parameters.

A naming convention that scales

Name items by platform, type and purpose, for example GA4 - Event - generate_lead and CE - generate_lead. Use folders and write a note with every published version.

Preview before publishing

Preview mode shows which tags fired, which did not and why. Test the unhappy path too: a form with errors should not create a lead.

Common mistakes

  • Leaving the old hard coded tag in place after adding it to GTM.
  • Triggering conversions on a button click rather than a successful result.
  • Pasting unreviewed custom HTML, which can create security and speed problems.
  • Giving publish access to everyone.

When Tag Manager helps and when it does not

GTM is useful when several tools need the same events, when changes are frequent or when you want versions and rollback. It is less helpful if a platform integration already sends everything you need, because adding a second route creates duplicates. It also cannot know about information the page never exposes. For order totals or product lists, a developer or a reliable plugin must provide the data layer.

Workspaces and versions

A workspace holds unpublished changes. Publishing creates a numbered version of the whole container. Give each version a name that explains the business reason, such as Add quote form lead event. If numbers change later, you can match the date to a version and restore an earlier one.

Consent settings

Google tags can read consent state and adjust their behaviour. Other tags often need an additional consent condition before they fire. Check the consent overview, then test with a fresh browser profile: once with everything refused and once with everything accepted.

Read about our Google Tag Manager implementation, or continue with how to audit a container.

About the author

This guide was written and published by GA4 Setup Agency, an analytics and conversion tracking service for businesses in the USA and UK. Platform interfaces change often, so please check the linked official documentation before editing a live account.

Need help with your tracking?

Tell us what is not adding up and we will review your setup.

Get a Free Tracking Audit
Scroll to Top