Compliance with data protection regulations such as the GDPR is more crucial than ever. For businesses leveraging online tracking and analytics, Google Consent Mode offers a way to continue gathering valuable insights while respecting user consent. But many businesses struggle with the complexity of Consent Mode and how to integrate it with their cookie banner.
What is it?
Advanced consent mode is an enhanced setup within Google Tag Manager (GTM) that allows you to customise how and when your tracking tags fire based on the consent status provided by your users. It allows you to control the flow of information to your analytics and marketing platforms, and it modifes the nature of data sent until consent has been granted.
Each Consent Management Platform (CMP) is different, but there are some basic priniciples around how to integrate them with Adanced Consent Mode.
Steps to Implement Advanced Consent Mode
This process ensures Advanced Consent Mode integrates with your CMP:
1. Enable Google Consent Mode at the GTM container level.
2. Capture Consent Values using a 1st party cookie variable from your CMP. This step ensures that you have the user’s consent status readily available for reference in GTM.
3. Transform Cookie Values using RegEx Table variables. This allows you to map the CMP’s consent indicators (e.g., true/false) to more actionable values (e.g., granted/denied) for each category of cookies—such as advertising, analytics, functional, and necessary. Some CMPs will do this for you.
4. Create Triggers that update consent based on data layer events for each cookie category. These triggers will control when specific tags should fire, depending on whether consent has been granted.
5. Configure Consent Mode settings within each GA4 event and marketing pixel to ensure they respect the consent status. For non-Google advertising pixels, you can create a blocking trigger to prevent these tags from firing until the user has provided explicit consent.
6. Implement a Consent Default Status Tag that sets a default consent status (typically denied for first-time users) when the GTM container loads. This ensures any event tags that are fired before user consent are modified to only send anonymous data to GA4.
7. Create a Consent Update Status Tag that updates the consent status when the user modifies their preferences, firing the appropriate tags as consent is granted. Again, some CMPs automatically implement this with their tag template.
8. Test and test again. Ensure you test your CMP works as expected.
Respecting the Intricacies of Consent Management Platforms
While the above steps outline a robust approach to implementing advanced consent mode, it’s important to note that each Consent Management Platform (CMP) comes with its own unique intricacies.
Please feel free to contact me direct if you are struggling with Consent Mode.










