Setting Up Cookie Consent in Google Tag Manager

It takes just a few minutes to integrate TrueVault’s consent management platform (CMP) and configure the consent requirements for your tags.

Step 1: Add the TrueVault Polaris CMP Template

To add the TrueVault Polaris CMP template to your site, follow these steps in Google Tag Manager.

  1. In the left navigation bar, select Templates
  2. In the Tag Templates window, click Search Gallery
  3. A window will pop up on the right side. Search for TrueVault Polaris CMP
  4. Click Add to Workspace and confirm

Step 2: Add the TrueVault Polaris CMP Tag

  1. In the left navigation bar, select Tags
  2. Click New, then Tag Configuration
  3. A window will pop on the right side. Under Custom, find the TrueVault Polaris CMP tag and click on it
  4. Next, click Triggering
  5. On the Choose a Trigger screen, select Consent Initialization - All Pages
  6. Click Save

Step 3: Categorize Your Tags

Option 1: Edit Tags One at a Time

Now you can assign a consent category to each tag your site uses. If you want to make changes to multiple tags at once, go to Option 2, below.

  1. In the Workspace tab of Google Tag Manager, select Tags from the left navigation bar
  2. Click on the tag you want to configure
  3. Click Tag Configuration
  4. Open Advanced Settings→Consent Settings
  5. Select Require additional consent for tag to fire, then Add required consent
  6. Choose the appropriate consent category for each tag (e.g., "ad_storage" for advertising tags, "analytics_storage" for analytics tags, etc.). Refer to your organization's categorized list of cookies, which can be found under the Cookie Consent tab in Developer Instructions
  7. Click Save
  8. Once you've finished with all your tags and are ready for them to go live on your site, you'll need to publish the container. To do so, click Submit in the top-right corner, then Publish

Note: Some Google products, such as Google Ads, already have built-in consent settings. In these cases, you will not need to manually categorize the tag.

Option 2: Make Bulk Edits with Consent Overview

Google Tag Manager has introduced a feature called Consent Overview that allows users to quickly check the consent settings of all their tags at once, as well as make bulk edits to consent settings so that you don’t have to click into each tag individually. For sites with dozens of tags operating, using this feature can save a lot of time.

How to Enable Consent Overview
  1. Select the Admin tab from the top navigation
  2. Click Container Settings
  3. Select Enable Consent Overview
  4. Save your settings

With Consent Overview enabled, you can return to Workspace→Tags. Along the top of the Tags menu, you should now see a shield icon. Click this shield icon to access Consent Overview.

How to Make Bulk Edits to Consent Settings
  1. In the list of tags, check the box to the left of each tag you would like to edit
  2. When one or more boxes are checked the Edit Consent Settings icon (a shield with a cog) will appear; click this icon
  3. Under Additional consent settings, select the appropriate consent category. Refer to your organization's categorized list of cookies, which can be found under the Cookie Consent tab in Developer Instructions
  4. Click Save
  5. Once you've finished with all your tags and are ready for them to go live on your site, you'll need to publish the container. To do so, click Submit in the top-right corner, then Publish

Step 4: Test Your GTM Integration