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.
- In the left navigation bar, select Templates
- In the Tag Templates window, click Search Gallery
- A window will pop up on the right side. Search for TrueVault Polaris CMP
- Click Add to Workspace and confirm
Step 2: Add the TrueVault Polaris CMP Tag
- In the left navigation bar, select Tags
- Click New, then Tag Configuration
- A window will pop on the right side. Under Custom, find the TrueVault Polaris CMP tag and click on it
- Next, click Triggering
- On the Choose a Trigger screen, select Consent Initialization - All Pages
- 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.
- In the Workspace tab of Google Tag Manager, select Tags from the left navigation bar
- Click on the tag you want to configure
- Click Tag Configuration
- Open Advanced Settings→Consent Settings
- Select Require additional consent for tag to fire, then Add required consent
- 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
- Click Save
- 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
- Select the Admin tab from the top navigation
- Click Container Settings
- Select Enable Consent Overview
- 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
- In the list of tags, check the box to the left of each tag you would like to edit
- When one or more boxes are checked the Edit Consent Settings icon (a shield with a cog) will appear; click this icon
- 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
- Click Save
- 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