Consent management
Community home
  • Overview
  • Responsability of actors
  • Releases notes
  • Setup Guides
    • Tag Manager
      • TagCommander
      • Google Tag Manager (GTM)
      • Consent Mode in TAG
      • Consent Mode in GTM
      • Adobe Launch
    • Websites (Hardcoded)
    • Mobile apps
      • iOS
        • ATT - App Tracking Transparency (iOS 14.5+)
      • Android
  • User Guides
    • Categories & Tags
      • Manage Categories
      • Manage Vendors
      • Assign Categories
    • Privacy Banners
      • Banner Templates
        • Accessibility Template
      • Manage Banner
      • Deploy Banner
      • Copy Banner
    • Dashboard
    • Exports
    • Options
  • Extensions
    • Cookie Scanner
    • TagFirewall
    • Tag Hierarchy
  • Marketing Preferences Center
    • Marketing Preferences Center (additional module)
  • Knowledge Base
    • Consent Object
    • Consent cookies exemption
      • Implementation guide for exempted consent statistics FR market
    • Consent Cookie
    • IAB TCF V2.0 Consent
    • IAB TCF V2.0 and Google FAQ
    • IAB TCF V2.2 Release details
      • IAB TCF v2.2 CMP requirements
      • IAB TCF v2.2 Migration guide Web
      • IAB TCF v2.2 Migration guide App
    • CCPA & Global Privacy control
  • Rest data API
    • GET/PUT Consents / preferences
  • Onsite API
    • Getting Started
    • consent.get
    • consent.update
    • consent.revoke
    • consent.onUpdate
    • consent.onReady
    • consentBanner.show
    • consentBanner.hide
    • consentCenter.show
    • consentCenter.hide
  • PLATFORM API
    • Get statistics
Powered by GitBook
On this page
  • Setup
  • Configure the related tag and its trigger
  • Configure your third-party vendor tags
  1. Setup Guides
  2. Tag Manager

Consent Mode in GTM

Steps to configure the "Consent Mode" in Google Tag Manager.

PreviousConsent Mode in TAGNextAdobe Launch

Last updated 2 years ago

Commanders Act provides a tag template to manage the "" in Google Tag Manager. This seamless integration takes advantage of our .

Setup

Summarizing all recommended steps:

  1. Access .

  2. Select your "Web" type container.

  3. Add our tag template from the "".

  4. Configure the related tag and its trigger.

  5. Configure your third-party vendor tags.

  6. Test and deploy your container.

Configure the related tag and its trigger

Following the above steps, adding our template "" from the Google "Community Template Gallery", you're presented with the following "Tag Configuration" which is the core area where you can manage your consent needs with GTM:

Your ids are shown between round parentheses (see highlighted in green below):

If TrustCommander loads asynchronously in your implementation, it might not always run before your GTM container. That’s why you have the option to set a "Wait for update" value in milliseconds to control how long to wait before data is sent. This field is optional and its default value is 0. In case you need to set it, we recommend starting from the base value of 500 milliseconds.

To make sure that the consent is correctly managed by GTM with third-party vendor tags, we strongly recommend to enable reactive events. Turn on the (3) "Advanced Features", (4) "Activate Reactive Events" and (5) "Activate [Storage-Name] Reactive Event" for each [Storage Name] you're using. Finally, enter their (6) "Event Name". These events will be used in the next section when configuring your third-party vendor tags.

You also have the option to directly inject your Trust CMP script by turning on the (7) "Advanced Features", (8) "Inject CMP Script" and input your (9) "URL".

Disabling the default consent may come handy when you don't want to use the Consent Mode. This is done by turning on the (10) "Advanced Features" and (11) "Disable Default Consent".

As the last step, you need to select the "Consent Initialization - All Pages" trigger in the "Triggering" lower area:

Configure your third-party vendor tags

While Google native product tags, such as "Google Analytics" or "Google Ads" ones, work out of the box, third-party vendor tags require additional settings to properly operate with the user consent. First, open your tag configuration and check under the (12) "Advanced Settings" and (13)"Consent Settings" if a consent type (E.g. "ad_storage") is already preconfigured, if not you need to add it by selecting the option (14) "Require additional consent for tag to fire" and (15) input the consent type(s) you want to include.

In the trigger group add (16) any preexisting triggers and (17)a trigger named as your configured reactive event.

The latter has to be configured as a (18)"Custom Event" with the same (19)"Event Name" you used in the previous section and it has to fire on (20)"All Custom Events".

First, you need to input your TrustCommander category identifiers for the following 5 categories: "Ad Storage", "Analytics Storage", "Functionality Storage", "Personalization Storage", and "Security Storage". You can find these ids by logging in to our platform and follow the section: (1)"TRUST" → (2)"" from the navigation sidebar.

If you have sub-categories with the same scope of the five defined by Google, you need to use their ids instead of the main category ones. You can also rename your categories or change their ids by checking the subsection "".

You also need to set the default status, for each of the 5 categories, before users interact with your TrustCommander and taking into account region-specific behavior. This is done by clicking the "Add Row" button and selecting either "Denied" or "Granted" to match with your input regions and/or sub-regions.

Ensure that your default command accounts for regional variations in your consent strategy. For more information on customizing the default command, you can see Google’s documentation .

Then, you need to configure its triggers and this is where we're going to use our reactive events we prepared in the previous section. Locate the "Triggering" area in your tag configuration and add a "".

This completes your configuration. You can now start the testing phase, leading to the final deployment in production. Learn more on how you can configure and run tests with your tags in GTM by checking the section "" in the "".

Categories and Tags
Managing categories
privacy banner
here
Trigger Group
Consent configuration
Help Center
Consent Mode
TrustCommander OnSite API
GTM
Community Template Gallery
Commanders Act | OnSite CMP API
The "Commanders Act | OnSite CMP API" configuration in GTM.
Find your category ids.
The "Categories and Tags" section in TrustCommander.
Select your default status for each category and by region and sub-region.
Reactive events activation under "Advanced Features".
Inject your Trust script directly using this template.
Disable the "Default Consent".
Select "Consent Initialization - All Pages" as trigger.
Tag specific "Consent Settings" in GTM.
Part 1: configure a "Trigger Group".
Part 2: configure a "Trigger Group".
Part 3: configure a "Trigger Group".