# Google Tag Manager triggers explained: every type, with examples

> Every Google Tag Manager trigger type explained: page view, click, form, scroll, visibility, custom event, history change, timer and trigger groups, with examples.

**In short:**
- A trigger decides when a GTM tag fires; page-load triggers fire in order: Consent Initialization, Initialization, Page View, DOM Ready, Window Loaded.
- Use Custom Event triggers fed by dataLayer pushes for leads and ecommerce, not the Form Submission trigger.
- On single-page apps, use either History Change or enhanced measurement page views, never both.

- URL: https://noxtag.com/google-tag-manager-triggers/
- Category: Google Tag Manager
- Last updated: 2026-12-03
- Publisher: noxtag (https://noxtag.com)

In Google Tag Manager, a **trigger** decides *when* a tag fires. Tags say *what* to send ("a GA4 event called `generate_lead`"). Triggers say *when* ("when the contact form is submitted successfully on /contact").

Pick the wrong trigger and you get either missing data or inflated data. This guide covers every trigger type, when to use it, and the setups we see go wrong most often.

## How triggers work, in one paragraph

GTM listens to a stream of events: some built in (`gtm.js`, `gtm.dom`, `gtm.load`, `gtm.click`…), others you push yourself with `dataLayer.push({ event: '...' })`. A trigger matches one event type plus optional **conditions** ("Page Path contains /checkout"). When both match, every tag attached to that trigger fires. **Exception triggers** (blocking triggers) do the opposite: if they match, the tag doesn't fire.

![Quick reference: which trigger to use for common tracking jobs](https://noxtag.com/img/gtm-which-trigger.svg)
*Figure: Which GTM trigger should you use?. Quick reference: which trigger to use for common tracking jobs.*

In GTM, go to **Triggers → New → Trigger Configuration** to pick a type. They are grouped by what they listen to: page-load timing (1), clicks (2), user engagement, and events you push to the data layer (3).

![Google Tag Manager – New trigger – Choose trigger type](https://noxtag.com/img/shot-gtm-choose-trigger-type.png)

## Page view triggers

GTM has five page-load triggers. They fire in this order on every page:

| Trigger | Fires when | Use it for |
|---|---|---|
| **Consent Initialization** | First, before anything else | Your consent management platform (CMP) and consent defaults *only* |
| **Initialization** | Right after consent initialization | Tags that must run before all others, e.g. the Google tag (GA4 config) |
| **Page View** (`gtm.js`) | As soon as GTM loads | Most page-level tags |
| **DOM Ready** (`gtm.dom`) | When the HTML is parsed | Tags that read page elements |
| **Window Loaded** (`gtm.load`) | When everything, images included, has loaded | Low-priority tags like heatmaps and surveys |

![GTM page-load triggers fire in this order on every page](https://noxtag.com/img/gtm-page-trigger-order.svg)
*Figure: The order GTM page-load triggers fire in. GTM page-load triggers fire in this order on every page.*

**Rule of thumb:** put consent defaults on *Consent Initialization*, the Google tag on *Initialization*, and everything else on *Page View* unless it needs the DOM. Pushing heavy marketing pixels to *Window Loaded* is a cheap performance win.

## Click triggers

- **All Elements:** any click on any element. Use it for buttons, icons and divs acting as buttons.
- **Just Links:** clicks on `<a>` elements only. It can **wait for tags** before the browser navigates (it holds navigation for up to 2 seconds by default) and **check validation**.

Click triggers rely on GTM's **built-in click variables**, which are off by default. Enable them under Variables → Configure: *Click Element, Click Classes, Click ID, Click Target, Click URL, Click Text*.

Example: track clicks on "Book a demo" buttons anywhere on the site.

- Trigger type: **Click – All Elements**
- Fires on: *Some Clicks*
- Condition: `Click Text` equals `Book a demo`

> **Fragile vs. robust:** text and CSS classes change whenever someone edits the page. A `data-track="book-demo"` attribute on the element, matched with **Click Element** *matches CSS selector* `[data-track="book-demo"], [data-track="book-demo"] *`, survives redesigns. The second selector also catches clicks on icons inside the button.

![Track elements, not their text or styling](https://noxtag.com/img/triggers-selectors.svg)
*Figure: Fragile vs. robust click tracking. Track elements, not their text or styling.*

## Form submission trigger

It listens for the browser's native `submit` event. It works on classic HTML forms and **often fails** on:

- forms submitted with JavaScript/AJAX (most React, Vue and HubSpot-style embeds)
- forms inside iframes (Typeform, Calendly, many HubSpot embeds)
- forms that call `preventDefault()` and handle submission themselves

Even when it fires, it fires on *submit*, not on *success*, so validation errors count as leads.

![Why a dataLayer event beats the built-in form trigger](https://noxtag.com/img/triggers-form.svg)
*Figure: Form Submission trigger vs. a dataLayer event. Why a dataLayer event beats the built-in form trigger.*

**Better approach:** ask developers to push an event once the server confirms success, then use a Custom Event trigger:

```js
window.dataLayer.push({ event: 'generate_lead', form_id: 'contact_main' });
```

For third-party embeds, use the vendor's own callback or `postMessage` events and push to the data layer from there.

## User engagement triggers

**Scroll Depth:** vertical or horizontal thresholds in percent or pixels. GA4's enhanced measurement already logs a `scroll` event at 90%, so only add this if you need 25/50/75 marks. Turn off enhanced-measurement scroll if you do, to avoid duplicates.

**Element Visibility:** fires when an element enters the viewport. Great for "promo banner seen" or "pricing table viewed". Settings that matter:
- *When to fire*: **Once per page** for impressions, otherwise you'll count every scroll back up.
- *Minimum percent visible* and *minimum on-screen duration* filter out flicks past the element.
- Tick **Observe DOM changes** if the element loads late, e.g. a lazy-loaded section or single-page app content.

**YouTube Video:** start, complete, pause, seeking and progress percentages for embedded YouTube players. It requires the embed to allow the JS API. GA4 enhanced measurement covers basic video engagement already.

## Other triggers

**Custom Event:** fires when a `dataLayer.push` includes a matching `event` value. This is the workhorse of any serious setup: every ecommerce event, lead, sign-up and app-state change should arrive this way. Event names are case-sensitive (1), and the field supports regex (tick *Use regex matching*, 2) to catch several events with one trigger.

![Google Tag Manager – Custom Event trigger – Event name and regex matching](https://noxtag.com/img/shot-gtm-custom-event-trigger.png)

**History Change:** fires when the URL changes without a page reload (`pushState`, `replaceState`, hash changes). That's how single-page apps (React, Next.js, Vue) "change pages". GA4's enhanced measurement can already count these as page views ("Page changes based on browser history events"). If you *also* fire a page view on History Change, you'll double count.

**Timer:** fires every N milliseconds, up to a limit. It's sometimes used for "engaged after 30 seconds", but GA4 already measures engagement time, so it's rarely needed now.

**JavaScript Error:** fires on uncaught JS errors. Handy for spotting broken pages, but send errors to a monitoring tool rather than flooding GA4.

![The most common single-page-app tracking bug](https://noxtag.com/img/spa-double-pageview.svg)
*Figure: How single-page apps end up with 2 page views. The most common single-page-app tracking bug.*

**Trigger Group:** fires once **all** of its member triggers have fired on the same page. Example: "user scrolled 50% **and** viewed the pricing table". Each member counts once, so a trigger group fires at most once per page load.

## Fires on: All vs. Some

Every trigger has *All [events]* or *Some [events]* plus conditions. Build conditions from variables like:

- `Page Path` matches RegEx `^/(checkout|cart)`
- `Click URL` contains `calendly.com`
- `Page Hostname` equals `www.example.com` (blocks staging domains from production data)

Here is a real one from our own container: a **Just Links** trigger set to *Some Link Clicks* (1), with a single condition (2) so it only fires on email links.

![Google Tag Manager – Just Links trigger – Some Link Clicks with a Click URL condition](https://noxtag.com/img/shot-gtm-trigger-some-link-clicks.png)

Use a hostname condition, or a lookup table that maps hostnames to GA4 measurement IDs, so test traffic never pollutes production reports.

> **Further reading:** [What is a data layer? Practical guide with GA4 ecommerce examples](https://noxtag.com/data-layer-guide/)

## The mistakes behind most broken triggers

![Six trigger mistakes we fix most often](https://noxtag.com/img/triggers-mistakes.svg)
*Figure: 6 trigger mistakes behind broken tracking. Six trigger mistakes we fix most often.*


1. **Forgetting built-in variables.** Click triggers with no click variables enabled show "undefined" everywhere in Preview.
2. **Form trigger on AJAX forms.** It looks fine in Preview on one form and misses the rest. Switch to data layer pushes.
3. **Double page views on SPAs.** History Change trigger *plus* enhanced measurement's browser-history page views.
4. **Case mismatch in Custom Events.** `Purchase` ≠ `purchase`. GTM won't warn you.
5. **Tags on Consent Initialization that shouldn't be there.** Only the CMP and consent defaults belong on that trigger.
6. **Overlapping triggers on one tag.** If a tag has two triggers that can both match the same action, it fires twice. Use one trigger with a regex, or an exception trigger.

## Frequently asked questions

### What is a trigger in Google Tag Manager?

A trigger in Google Tag Manager defines when a tag fires. It listens for an event, such as a page load, a click, or a custom dataLayer event, and checks optional conditions such as the page path. When both match, the tags attached to it fire.

### What is the difference between Page View, DOM Ready and Window Loaded?

Page View fires as soon as GTM loads, DOM Ready fires when the HTML has been parsed, and Window Loaded fires when everything, including images, has finished loading. Use Page View for most tags, DOM Ready for tags that read page elements, and Window Loaded for low-priority scripts.

### Why is my GTM form submission trigger not working?

The Form Submission trigger only catches native HTML form submits, so it misses most AJAX, React and iframe-embedded forms. It also fires on submit rather than on success. A dataLayer push after the server confirms the submission, with a Custom Event trigger, is more reliable.

### How do I track page views in a single-page app with GTM?

Use either GA4's enhanced measurement setting 'page changes based on browser history events' or a GTM History Change trigger that fires a page_view, but not both. Using both counts every route change twice.

## Test every trigger before you publish

![GTM Preview: tags fired, tags not fired, and why](https://noxtag.com/img/triggers-preview.svg)
*Figure: Debug triggers in GTM Preview mode. GTM Preview: tags fired, tags not fired, and why.*


Use **Preview mode**: perform the action, then select the event in the left-hand timeline. *Tags Fired* and *Tags Not Fired* show the result, and clicking a tag shows which trigger conditions passed or failed. Then confirm the event reached GA4 in DebugView. Our [DebugView and Preview troubleshooting guide](https://noxtag.com/ga4-debugview-gtm-preview-troubleshooting/) walks through both.

If your container has grown into hundreds of tags and nobody's sure which triggers still matter, that's exactly what our [GA4 & GTM audit](https://noxtag.com/audit/) untangles.

---
Source: https://noxtag.com/google-tag-manager-triggers/ · Need help with GA4 or GTM? https://noxtag.com/audit/
