Cookie Consent
Banner Setup and Modes
TrueVault supports multiple consent banner variants. Choose the mode that suits your organization's needs.
The Cookie Consent and GTM consent categorization setup in this guide is essential for all banner variants to work correctly, because it determines which tags are allowed to run based on the consumer's consent preferences. This includes the "Informational banner" variant (and "no banner"), both of which still enforce a user's opt-out preference using our custom GTM consent category. See US & Canada Opt Outs.
- Informational banner: Shows a customizable notice and dismissal controls, but does not prompt for consent preferences.
- "Opt-Out" banner (has consent by default): Consent starts as allowed by default and users can change preferences (for example, via Reject All or Manage buttons).
- "Opt-In" banner (no consent by default): Consent starts as denied by default until the user explicitly grants it (for example, via Accept All or Manage buttons). This is the most restrictive mode.
These banner variants can be configured on a per-state basis to match your regional needs.
Note: If a user clicks Decline All, cookies that were already set by 3rd parties are not automatically removed. Browser security restrictions prevent any CMP from reliably deleting cookies set by other domains (for example, 3rd-party scripts or pixels).
Generally, after a decline, these cookies are considered "inert," as the actual script or pixel that could read them should now be blocked based on the setup in this guide. If residual cookies are a concern for your organization, use the more restrictive Opt-In banner mode so consent-gated scripts do not run until consent is granted (thereby preventing their cookies from being set until consent is given).
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.
- For Advertising or Marketing tags, set them to require the following consent signal:
ad_storage
- For Analytics tags, require:
analytics_storage
- For Personalization tags, require:
personalization_storage
- For tags to block for opted-out visitors, require:
tv_not_opted_out- (See this article for more information)
- For any other tags that do not require consent, you can leave them as-is or require
functionality_storageorsecurity_storage
- For Advertising or Marketing tags, set them to require the following consent signal:
- 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
Next: Add the "Consent Changed" Event
After categorizing your tags, set up the Consent Changed trigger so GTM reacts immediately when a consumer updates their preferences.