On this page
Symptoms
You see one or more of these:
- Tag Assistant shows no consent default, or the default arrives after your tags fire
- a consent update appears before anyone has selected a button on your banner
- Tag Assistant shows two different consent defaults
- your browser console shows
[CookieScan] Google tags were initialised before CookieScan set the Google Consent Mode default - visitors can't choose Marketing or Statistics on their own
Contact CookieScan support before Google. CookieScan sends the default and update commands, so we can usually see what's wrong quickly.
Quick checks
Check the Portal setting
Go to Cookie Banner, then Settings and check that Use Google Consent Mode is ticked.
Read the browser console
Open your website, open your browser's developer tools, and look for messages that start
[CookieScan].Log every command
Add
?cookiescan_debug=1to a page address, such ashttps://www.example.com/?cookiescan_debug=1. The console then lists each consent default and update CookieScan sends.Check Tag Assistant
Open your website in Tag Assistant in a private window, so you arrive as a new visitor. Select the first event, then Consent. On-page Default shows denied, or your regional defaults.
Cause: Consent Mode is turned off
There's no consent default at all. Which setting is off depends on how you installed CookieScan:
- With a script tag, Use Google Consent Mode is unticked in the Portal.
- With Google Tag Manager, Enable Google Consent Mode is unticked in the CookieScan tag, and Use Google Consent Mode is unticked in the Portal.
Tick the setting that is off. With Tag Manager, tick both. Then select Save & Publish in the Portal, or publish your Tag Manager container. See Set up Google Consent Mode.
Cause: CookieScan loads after your Google tags
The default arrives after your tags start, and the console shows this warning:
[CookieScan] Google tags were initialised before CookieScan set the Google Consent Mode default, so they may run before consent is known.Your Google tag or Tag Manager code runs before the CookieScan script. Fix it in one of two ways:
- move the CookieScan script above your Google tag and Tag Manager code in
<head> - install with the CookieScan template on the Consent Initialization - All Pages trigger, as in Install with Google Tag Manager
Cause: the template is on the wrong trigger
With a Tag Manager install, the default arrives late if the CookieScan tag fires on All Pages or Initialization - All Pages. Change its trigger to Consent Initialization - All Pages, then publish your container.
Cause: an old CookieScan template
Two different consent defaults appear, or no update follows a visitor's choice. Your container may have an old version of the CookieScan template.
In Tag Manager, open Templates, select the CookieScan template and select Update. Then publish your container.
Cause: an update appears before anyone chooses
With Geo-Awareness on, a visitor from a country that doesn't need consent gets a granted update as the page loads. That is how Geo-Awareness works, not a fault.
A returning visitor also gets an update as the page loads, from the choice they saved earlier. To test as a new visitor, use a private browser window.
Cause: visitors can't choose Marketing or Statistics
With Consent Mode off, your banner lists Marketing and Statistics only when your scan found cookies in them. Turn on Use Google Consent Mode, and both categories are always listed.
Still stuck?
Email support with these details so we can help faster:
- your CookieScan ID, from Cookie Banner, then Overview next to CookieScan ID:
- the address of a page where you see the problem
- any message in your browser's console, copied as text
- a screenshot of the Consent tab in Tag Assistant
To help Google improve Consent Mode, we may ask to copy Google's support team, at cmp-support-helper@google.com, into the email. You can copy them in yourself.
Google's own checks are in its guide to troubleshooting Consent Mode.