Set Up Consent Mode
Choose the correct consent setup for tags managed in Google Tag Manager, selected Shopify properties, GoHighLevel, or an AnyTrack-enabled CMP integration, then verify that each tag receives the expected consent state.
How consent reaches your tags depends on where those tags are managed. Choose the setup that matches Google Tag Manager, Shopify, GoHighLevel, or a direct consent management platform (CMP) integration.
Choose Your Consent Setup
Section titled “Choose Your Consent Setup”Google Tag Manager
Use this path when the AnyTrack Tracking Tag and your third-party tags are managed in Google Tag Manager.
Set the GTM consent defaults
Configure your CMP to set consent defaults using the Consent Initialization - All Pages trigger.
Install the AnyTrack template
Install the AnyTrack GTM template from the GTM Community Template Gallery and enter your AnyTrack Property ID.
Set the AnyTrack trigger
Set the AnyTrack tag to trigger on All Pages, after the CMP sets the consent defaults.
Configure consent checks for your tags
Configure the consent checks required by each Google or third-party tag managed in GTM.
The AnyTrack GTM template reads all four Consent Mode v2 types, sends a full consent snapshot to AnyTrack, and listens for later changes. Tags managed in GTM follow the consent settings configured in GTM.
How consent flows with Google Tag Manager
From the visitor choice to a full consent snapshot in AnyTrack
Visitor makes a consent choice
Your CMP sets the consent defaults, then records the visitor choice as a consent update in GTM.
Consent Initialization - All Pages AnyTrack template reads the consent state
The AnyTrack GTM template reads all four Consent Mode v2 signals and listens for later changes.
ad_storage / analytics_storage / ad_user_data / ad_personalization Each tag receives its consent state
The template sends the full consent snapshot to AnyTrack. Tags managed in GTM follow the consent checks configured in GTM.
Shopify
Use this path when your consent banner saves choices through the Shopify Customer Privacy API.
Configure the consent banner
Configure a Shopify-compatible consent banner.
Request Shopify consent sync
Ask AnyTrack support to enable Shopify consent sync for the Property.
Test the consent flow
Test the banner after support confirms that the feature is enabled.
AnyTrack then reads the saved Shopify choice and listens for banner updates.
No custom setConsent callback is required.
- Shopify marketing controls
ad_storageandad_personalization. - Shopify analytics controls
analytics_storage. ad_user_datais granted only when both marketing and sale-of-data consent are granted.
How consent flows with Shopify
From the banner choice to the tags AnyTrack loads
Visitor saves a choice in the banner
The consent banner stores the visitor choice in Shopify.
Shopify Customer Privacy API AnyTrack reads the saved choice
With Shopify consent sync enabled for the Property, AnyTrack reads the stored choice and listens for banner updates.
Signals reach AnyTrack-loaded tags
AnyTrack maps the Shopify categories to the four consent signals and applies them to the tags it loads.
marketing / analytics / sale of data GoHighLevel
Use this path when your GoHighLevel cookie banner offers Essential and Non-Essential choices and you want AnyTrack-managed Google or Microsoft tags, or the Meta Pixel, to receive the visitor’s choice.
Configure the GoHighLevel banner
Enable the cookie consent banner in GoHighLevel. See How to use the cookie consent banner.
Configure the default state
After support enables Consent Mode, open Property Settings → Consent Mode (beta) and set all four signals to Default denied.
Add the consent adapter
Add this code immediately after the AnyTrack Tag in the GoHighLevel page header or head tracking code:
<script> window.addEventListener( 'LCCookieConsentDoneGTag', ({ detail }) => { const value = detail.gtag === 'grant' ? 'granted' : 'denied';
AnyTrack('setConsent', { ad_storage: value, analytics_storage: value, ad_user_data: value, ad_personalization: value, }); }, false, );</script>GoHighLevel exposes one Non-Essential decision through this documented event, so the adapter applies that choice to all four signals. It does not need to read GoHighLevel cookies.
How consent flows with GoHighLevel
From the Essential or Non-Essential choice to the tags AnyTrack loads
Visitor saves a banner choice
GoHighLevel stores the visitor’s cookie consent choice.
Essential / Non-Essential GoHighLevel emits the consent event
The adapter maps grant to granted and every
other value to denied for all four signals.
LCCookieConsentDoneGTag Signals reach AnyTrack-loaded tags
AnyTrack applies the current state to the tags it loads.
AnyTrack('setConsent', ...) Direct CMP
Use this path when the CMP is installed directly on your website and you want AnyTrack-managed Google or Microsoft tags, or the Meta Pixel, to receive its choices.
Configure the default state
After support enables the feature, open Property Settings → Consent Mode (beta) and configure the default state for each signal.
Map the CMP categories
Map the CMP categories to the four signals listed below.
Send consent updates
Call setConsent after the CMP restores a saved choice and
whenever the visitor accepts, rejects, or changes consent:
AnyTrack('setConsent', { ad_storage: marketingStorageAllowed ? 'granted' : 'denied', analytics_storage: analyticsStorageAllowed ? 'granted' : 'denied', ad_user_data: advertisingDataAllowed ? 'granted' : 'denied', ad_personalization: personalizationAllowed ? 'granted' : 'denied',});Replace the example variables with the values returned by your CMP. Send all four fields in the first call so the initial state is complete.
How consent flows with a direct CMP
From the CMP choice to the tags AnyTrack loads
CMP collects the visitor choice
The CMP shows the banner, stores the choice, and restores it on later visits.
Your site sends the consent state
Your setConsent call sends the four signals to AnyTrack after each restore or change.
AnyTrack('setConsent', ...) AnyTrack applies the signals
Google and Microsoft tags and the Meta Pixel loaded by AnyTrack receive their supported consent signals.
Consent Signals and Destinations
Section titled “Consent Signals and Destinations”Map CMP categories by purpose, not only by their labels. One “Marketing” category does not always cover every advertising purpose.
| Signal | Purpose to map in your CMP |
|---|---|
ad_storage | Advertising or marketing storage |
analytics_storage | Analytics storage |
ad_user_data | Sending user data for advertising |
ad_personalization | Personalized advertising and remarketing |
Tag Compatibility
Section titled “Tag Compatibility”This table applies to tags loaded by AnyTrack.
| Tag | Status | Consent handling |
|---|---|---|
| Google Ads | ✅ Supported* | Receives all four Consent Mode v2 signals |
| Google Analytics 4 | ✅ Supported* | Receives all four Consent Mode v2 signals |
| Microsoft Advertising UET | ✅ Supported* | Receives ad_storage |
| Meta Pixel | ✅ Supported* | Uses ad_storage for the browser Pixel’s consent state |
| TikTok Pixel | 🕒 Coming soon | Manage consent through your CMP or GTM |
| Outbrain Pixel | 🕒 Coming soon | Manage consent through your CMP or GTM |
| Taboola Pixel | 🕒 Coming soon | Manage consent through your CMP or GTM |
* For tags loaded by AnyTrack, Shopify consent sync or AnyTrack Consent Mode must be enabled for the Property. Tags installed in GTM use the consent state and consent checks configured in GTM and do not require AnyTrack Consent Mode access.
Verify the Setup
Section titled “Verify the Setup”Check the initial state
Open a private browser window before interacting with the banner. Confirm that the configured default consent state is active.
Test every relevant choice
Accept and reject each consent category. Confirm that the enabled integration receives the expected state after each choice.
Test a returning visitor
Reload the page and confirm that the saved choice is restored.
Use the relevant tag helper to confirm that each tag loads only once.
Related Guides
Section titled “Related Guides”- Install the AnyTrack Tracking Tag
- Install AnyTrack with Google Tag Manager
- Connect Google Ads
- Connect Microsoft Ads
- Connect Facebook Ads
- Set up the Shopify integration
- Integrate marketing tools with the GoHighLevel cookie banner
- Google Consent Mode
- Microsoft UET Consent Mode
Consent Mode FAQs
FAQ was last reviewed on 2026-08-13
Does AnyTrack configure consent for every third-party tag?
ad_storage to the browser Meta Pixel it loads. Configure all other third-party tags in your CMP or tag manager.Which Consent Mode signal controls the Meta Pixel?
ad_storage controls the browser Meta Pixel. Set it through one of the supported Consent Mode setup paths and establish an explicit default before the Tracking Tag loads. analytics_storage, ad_user_data, and ad_personalization do not control the browser Pixel.Can I send only the field that changed?
setConsent calls can contain only changed fields. Send all four fields in the first call to establish a complete state.