Troubleshooting Consent Mode installation
This article will help you with finding a problem with your Google Consent Mode
Follow the steps below to fix your Consent Mode installation:
Troubleshooting installations with Google Tag Manager (GTM):
Make sure you have the latest GTM template that supports the Consent Mode validator (necessary GTM template updates were released on 2024-07-30)
Re-save your banner to make sure your banner supports Consent Mode validator (code updates were released on 2024-07-31)
Validate GTM installation. Go to your CookieScript dashboard > Google Consent Mode, check the checkbox ENABLE GOOGLE CONSENT MODE V2, and press the Validate GTM installation tab. It checks if you use the last version of the GTM template and the GTM is installed correctly. If the GTM installation is not correct, make changes according to the list below, re-save your cookie banner, and validate the GTM installation again.
The CookieScript trigger is set to Consent Initialization (AND there are no other tags in that trigger).
Make sure you have only one CookieScript tag.
Use GTM preview mode to see if consents are fired properly.
Validation of GTM installation
I. If you press Validate GTM installation and get ar error like this, use the following options to fix the problem:
Check if the CookieScript tag has the Consent Initialization trigger and the changes are Published.
Check if you use the latest CookieScript community template. If not- update it.
Open the GTM preview mode (debug mode) and check if the CookieScript tag fires first. If any other tag fires first, the GTM validation will not pass.
II. If the validation fails, check if you have the latest CookieScript template at GTM:
Go to Tag templates > CookieScript CMP.
If you see a clock, it means you need to update the CookieScript template:
Press the clock > Accept Update and update the CookieScript template:
The updated version of the CookieScript template should look without a clock.
If you go to Tag templates > CookieScript CMP and you donโt see Gallery tab at the right side, it means that you edited the code inside the template, and you don't have the latest version of the CookieScript template:
Perform the following steps to fix the issue:
Delete the CookieScript tag.
Delete the CookieScript template and the tag.
Go to the Tags section and add the CookieScript template from the community templates.
Note: use this order of steps. Otherwise, it will not work.
Installations with manually added code (gtag) or using plugins:
Re-save your banner to make sure your banner supports Consent Mode validator (code updates were released on 2024-07-31).
For manually added code: Make sure you have included the necessary Google Consent Mode code.
For plugins: make sure you have Consent Mode enabled in plugin settings and latest plugin versions are installed.
Note: Use only one method to install CookieScript. If you installed CookieScript manually (inserting the script in the header section) but now want to start using other installation method (installation with GTM), you must delete the script from the header section. Installation with GTM is the preferred method.
Did this answer your question?