How to use Consent Mode Triggers preset?
Google Consent Mode is simple and powerful solution to track users' privacy preferences and standard way. Given this is a low-level framework there is few things that still require manual wiring and configuration, one of them is improving tags firing sequences as described below. If you need more introduction read our article:
Using Consent Mode in Google Tag Manager requires compatible consent banner to be installed on the website. Using the Consent Mode Triggers or adding required consent checks to any tag without the banner will cause those tags to never fire (user won't be able to grant their consent).
This preset is compatible out-of-the-box with our Consent Mode Banner plugins.
In order to make it work with other Consent Management Platforms ensure the Consent Mode state is first set and then there is additional consent_update
event pushed to the dataLayer.
Use this preset together with native GTM consent mode features that are described in this guide.
1. Download & import the Consent Mode Triggers preset
Navigate to WP Admin > Settings > Google Tag Manager
and then GTM Presets
tab. Find Consent Mode Triggers preset and download it.
Then go to Google Tag Manager workspace and select Admin. Then click Import Container and follow our general guide for importing presets.
2. Replace triggers for selected tags
One the preset is imported you can use any of the following new triggers:
- Consent Update - Ad Granted
- Consent Update - Analytics Granted
- Consent Update - Functionality Granted
- Consent Update - Personalization Granted
- Consent Update - Security Granted
Those triggers will fire as soon as specific consent type is granted. When using our Consent Mode Banner plugin it can be safely used as replacement for All Pages - Page View trigger.
Use it together with setting Additional Consent Checks.
- Use new consent triggers for general tags like Facebook Pixel Tag that typically fire on Page View and which you want to only fire when certain consent type is granted
- Set it together with Additional Consent Checks
- For other related tags such as Facebook Add To Cart use only Additional Consent Checks without altering triggers.