Consent Mode (Google tags)

Community tag by gtm-templates-simo-ahava

What is Consent Mode (Google tags)?

Adjust tag behavior based on consent. This template utilizes Google's Consent API and can be used to adjust how Google's advertising and analytics use cookies and process ad identifiers.

Consent Mode (Google tags) tag is created by gtm-templates-simo-ahava. Once you set up server side tagging with MetricsGate, you can use this tag with Google Tag Manager to enhance your data analytics.

This tag template is part of an open-source community, with its source code accessible on Github, and its documentation can also be found online.

You can check its version history below:

  1. Add functionality_storage and security_storage as new consent states.
  2. Improve timing and accuracy of url_passthrough and ads_data_redaction options.
  3. Make gtag() command optional in order to avoid creating extra consent events.
  4. Add support for personalization_storage
  5. Code refactor, no change to functionality
  6. Added option to push a message to dataLayer upon consent state changes
  7. Add compatibility with GTM's new consent features.
  8. Initial release

More tags and variables supported

Tags

Variables

Join early adopters globally and leverage server-side tagging, GA4 custom events, and cookieless tracking to gain deeper insights and enhanced analytics data about your visitors!

Get Started now