How to set up GetTerms Cookie Banner for Explicit Consent
If you will be using Google Consent Mode with the GetTerms Cookie Consent Widget, and would like to manage consent settings via Google Tag Manager, you there are two primary steps you need to follow.
Important Note: This guide is for a GDPR compliant setup, where explicit consent is required before setting cookies. For this reason, we assume you have enabled 'Enable auto-blocking of scripts likely to set third-party cookies'. With this setup, your Google Analytics tag will not fire unless consent is given.
To avoid significant drops in your analytics data due to users not providing their consent preferences, we recommend that you enable 'Block page interaction until preferences are set'.
Step 1: Install Google Tag Manager Template
- Add the 'GetTerms Consent Management' Tag Template to your workspace
- In your 'Google Tag Manager' workspace, open the 'Templates' tab.
Within the 'Tag Templates' panel, click 'Search Gallery'.
Search for 'GetTerms'
Click the 'GetTerms Consent Management' result
Click 'Add to workspace'
Review the permissions required by the GetTerms Consent Management template, and click 'Add'
- Create a new 'Trigger' named 'GetTerms - consentUpdate'
Open the 'Triggers' tab and click 'New' to create a new trigger.
- Click the 'Trigger Configuration' panel.
Select the 'Custom Event' trigger type.
- In the 'Event name' field, type 'consentUpdate'
Ensure this trigger fires on 'All Custom Events'
- Click 'Save' to save the new trigger and exit.
- Add the 'GetTerms Consent Management' Tag
Open the 'Tags' tab and click 'New' to add a new tag.
Click the 'Tag Configuration' panel, and select the 'GetTerms Consent Management' custom tag type
Configure any default consent preferences using the dropdowns provided. These defaults will be applied before the user has updated their consent preferences.
If you need scripts to be 'opt-in' for compliance, you should leave all preferences defaulted to 'Denied'.
Scroll down and click the 'Triggering' panel.
Note: You can add multiple triggers by hovering the trigger's icon to reveal a checkbox to select more than one.
Select 'Consent Initialization - All Pages'
- Click 'Save' to save the tag and exit.
- Configure your 'Google Tag (Analytics Tag)' to fire only fire once consent is given
Open the edit window for your Google Tag
Under 'Consent Settings' enable 'Require additional consent for tag to fire' and add 'analytics_storage' as a 'required consent'
Add 'GetTerms - consentUpdate' as the only trigger
- Click 'Save'
- Publish your GTM container, your GTM is configured.
Step 2: Enable Consent Mode in your Cookie Consent Widget configuration
- Enable 'Google Consent Mode' in GetTerms
- Log into 'GetTerms' and open your chosen Policy Pack with Cookie Consent enabled.
- Open the 'Cookie Consent' tab.
- Open the 'Cookie Consent Widget' tab.
- Open the 'Configuration' tab.
- Toggle 'Enable Google Consent Mode' to 'On'
- Review your Installation Instructions.
- Go to the Installation tab and review the instructions, as they will be different than when Consent Mode was toggled off.
- Ensure that your website has embedded the GetTerms Cookie Consent Widget correctly:
- It should be the first
<script>
tag on the page. - It should be embedded above your Google Tag Manager embed code.
- It should be the first
- Updates to your Cookie Consent Widget configuration can take up to 5 minutes to be reflected on your website. Grab a coffee & have a snack!