FreeWeb GTM tags

Google Consent Mode Listener tag

The Google Consent Mode Listener tag monitors consent status changes and pushes a dedicated event to the dataLayer whenever a monitored consent type is updated. This allows Google Tag Manager to react to consent changes and trigger tags, scripts, or workflows based on a user's latest consent preferences.

The tag is a completely free solution available for all users. To start configuring the tag, download the template from the Stape GitHub repository.

Import the template into your web GTM container via Templates → Tag Templates → Import.

How it works

The Google Consent Mode Listener tag continuously monitors Consent Mode states configured in GTM. When one or more monitored consent types change, the tag pushes a dedicated event to the dataLayer.

By default, the event name is: stape_consent_update

The event also includes the current consent state for all monitored consent types, making it easy to use the updated values in GTM triggers and tags.

The event also includes the current consent state for all monitored consent types, making it easy to use the updated values in GTM triggers and tags.
  • More reliable consent-based tracking. Detect consent changes immediately and trigger tags only after updated consent becomes available.
  • Better control over non-Google tags. Create a dedicated trigger for consent updates and ensure third-party tags react correctly to user consent decisions.
  • Improved troubleshooting. With a visible consent update event in GTM Preview mode, you can verify consent changes more easily, which contributes to faster debugging and validation.
  • Consistent consent handling. Ensure tracking logic always uses the latest consent state and prevent tags from firing based on outdated consent values.

Use the Google Consent Mode Listener tag to create a dedicated consent update event in GTM and simplify consent-based tracking workflows.

Related to this solution

Consent mode in server Google Tag Manager
Sep 9, 2026

Blog

Consent mode in server Google Tag Manager

In this guide, learn what consent mode is, why it’s crucial to implement it, and how to use consent mode in the server Google Tag Manager container.

Google Consent Mode V2
Sep 9, 2026

Blog

Google Consent Mode V2

Google Consent Mode V2 lets websites share users' cookie choices with Google tags. Learn what's new, how it works, and how to implement it.

CMP not pushing consent update event to dataLayer: how to fix
Sep 9, 2026

Blog

CMP not pushing consent update event to dataLayer: how to fix

Learn how to detect missing consent update events in GTM and push consent changes to the dataLayer using the Google Consent Mode Listener tag.

We have more than 200 000 happy clients

Try Stape for all things server-side