Google Consent Mode

Google Consent Mode diagnostics centre

How to check Google Consent Mode on the homepage and on subpages. In the CookieOfficer panel you can see which subpages need fixing and how to fix them.

9 min read

The Google Consent Mode diagnostics centre is a report in the CookieOfficer panel. In the report you can check whether Google Consent Mode is implemented correctly on the homepage and on subpages. The report is created automatically with every full scan of the domain, if the CookieOfficer tool is set up on the site.

When to use the diagnostics centre

  • After implementing Google Consent Mode on the site for the first time.
  • After changing the site template or the Google Tag Manager container.
  • After enabling Google tag gateway.
  • When Google Ads, Google Analytics or Tag Assistant show warnings about Google Consent Mode.

How to open the diagnostics centre

  1. Log in to the CookieOfficer panel and select your project.
  2. In the "Dashboard" tab, scroll to the very bottom to the "Google Consent Mode diagnostics centre" card.
  3. Click "Open".

If the project has several domains, select the domain in the top right corner of the report.

Where the results come from

The results come from the latest full scan of the domain, that is, a scan of the homepage and subpages. The same scan also detects cookies. The homepage and subpages are opened in a browser, the same way a user opens them. On each of them, the consent state before the user's decision in the banner is checked, and then the "Accept" button is clicked.

The scan runs automatically: every 30 days on the Free plan, every 14 days on the Basic plan, every 7 days on the Pro plan and every day on the Enterprise plan. You can also run it manually with the "Check again" button. It usually takes a few minutes, and up to about fifteen minutes for a large site. When the scan finishes, the report refreshes automatically.

The scan checks a sample of subpages, not all of them. The number of checked subpages depends on the plan and the size of the site. The Google Consent Mode configuration is usually the same on all subpages, so a sample is enough to detect problems that affect many subpages.

The first scan after creating a project checks only the homepage, so it does not create a report. The report will appear after the first full scan or after you click "Check again".

If the scan did not detect the CookieOfficer tool on the site, a message appears instead of the report: "The report will be available once the CookieOfficer tool is set up on…". After setting up the tool, click "Check again".

What the report contains

Google Consent Mode status

The first card shows the result for the whole domain:

StatusMeaning
"No errors"No errors were found on the checked subpages.
"Needs fixing"An error was found on at least one subpage.
"No Google tag"No Google tools were found on the checked subpages, so the check is not possible.
"Partially checked"No errors were found, but at least one checkpoint could not be assessed.
"Could not be checked"None of the subpages could be checked, for example the site did not load or blocked the scanner.

Below the status you can see the number of checkpoints passed, for example "5 of 5 checkpoints passed". If a checkpoint could not be assessed, the number of such checkpoints is shown as well, for example "not checked: 1".

Checklist

The list contains five checkpoints. A checkpoint is marked as failed if it is not met on at least one subpage. An explanation of each checkpoint appears when you hover over the "i" icon.

CheckpointWhat we check
A Google Consent Mode default consent state is added on the pageWhether the page sets initial values of consent types that apply until the user's decision in the banner.
The Google Consent Mode default consent state is added before Google tools runWhether the Google Consent Mode default consent state is added before Google tools run, for example Google Analytics 4 and Google Ads.
All consent types required in Google Consent Mode v2 are includedWhether the page sets four consent types: ad_storage, analytics_storage, ad_user_data and ad_personalization.
Before the user's decision in the banner, consent types are set to deniedWhether all four consent types are set to denied until the user's decision in the banner.
After clicking "Accept" in the banner, the Google Consent Mode consent state is updatedWhether, after clicking "Accept", the page sends a Google Consent Mode consent state update that changes at least one consent type to granted.

A grey dash instead of a result means that the checkpoint could not be assessed. The reason is shown in a tooltip when you hover over the dash, for example no Google Consent Mode default consent state or a failed click on "Accept" during the scan.

Consent types before the user's decision in the banner

The table shows the values of consent types on the homepage before the user's decision in the banner. The "Expected value" column shows the required value, and the "Value on page" column shows the value detected during the scan. A value other than the expected one is marked in red.

Below the four required consent types, the other ones are listed: functionality_storage, personalization_storage and security_storage. Google does not require them, so they can have any value.

Additional settings

This card shows additional Google Consent Mode settings detected during the scan:

SettingMeaning
ads_data_redactionRemoving ad click identifiers from data sent to Google Ads when ad_storage is set to denied.
url_passthroughPassing information about an ad click in the page address when the user has not consented to cookies.
wait_for_updateTime in milliseconds during which sending data to Google is paused while waiting for the user's decision in the banner.

These settings are up to the site owner. If they are missing, it is not an error.

Results for individual subpages

The table shows the result of each checkpoint for each checked subpage. You can:

  • choose "All", "With errors" or "Without errors",
  • search for a subpage by its address,
  • move between table pages with the "Previous" and "Next" buttons.

Next to a subpage with an error you can see a description of the problem and a link to instructions on how to fix it.

At the bottom of the report you can see the number of subpages without Google tools (the check does not apply to them) and the number of subpages that could not be checked.

What the errors mean and how to fix them

There is no Google Consent Mode default consent state on the page

What it means: Google tools run without information about the consent state. Cookies may be stored before the user's decision in the banner.

What to do: check that Google Consent Mode is enabled in the CookieOfficer panel ("Setup" → "Settings"). Also check that this subpage has the "Google Consent Mode: default consent" block or the CookieOfficer tag in Google Tag Manager. We describe how to implement it in the article How to implement Google Consent Mode v2 in Basic or Advanced mode in CookieOfficer.

The Google Consent Mode default consent state is added after Google tools run

What it means: Google tools started before the Google Consent Mode default consent state was added. The most common cause is Google tag gateway or Google tools code placed above the "Google Consent Mode: default consent" block.

What to do: first check whether the site uses Google tag gateway. Then follow the article Google tag gateway: Google tags running before the Google Consent Mode default state.

Consent types required in Google Consent Mode v2 are missing

What it means: the page does not set all four consent types. Missing ad_user_data or ad_personalization may limit Google Ads advertising features for users in the European Economic Area.

What to do: if the Google Consent Mode default consent state comes from code other than CookieOfficer, for example your own tag in Google Tag Manager, add the missing consent types there. You can also remove that code and use the Google Consent Mode default consent state from CookieOfficer. We describe how to implement it in the article How to implement Google Consent Mode v2 in Basic or Advanced mode in CookieOfficer.

Before the user's decision in the banner, consent types are set to granted

What it means: consent types are set to granted before the user makes a decision in the banner. The report shows which consent types are affected.

What to do: check that the page does not have a second piece of code that adds a Google Consent Mode default consent state, for example in Google Tag Manager or in the site template. The Google Consent Mode default consent state should be added in one place only.

After clicking "Accept", the Google Consent Mode consent state is not updated

What it means: after clicking "Accept", no consent state update appears, or the update does not change any consent type to granted. The user's decision is therefore not taken into account in Google tools. Google tools run as if the user had not given consent.

What to do: check that Google Consent Mode is enabled in the CookieOfficer panel and that the changes have been published. Then open the page in debug mode. After clicking "Accept", a consent update should appear in the browser console.

Frequently asked questions

Why doesn't the report include all subpages of my site?

The scan checks a sample of subpages. Their number depends on the plan and the size of the site.

I fixed the error. When will I see the new result?

After the next scan. If you don't want to wait, click "Check again".

The report shows the "No Google tag" status. Is this an error?

No. No Google tools were found on the checked subpages, so Google Consent Mode cannot be checked.

Why do I see the message "The report will be available once the CookieOfficer tool is set up" instead of the report?

The latest full scan did not detect the CookieOfficer tool on the site. Check the setup in the "Installation" tab, then click "Check again".

Does the report replace debug mode?

No. The report shows results for many subpages at once. Debug mode applies to a single page, and the details, for example each consent update, appear in the browser console.

Related articles

Didn't find an answer?

Write to us. We reply on working days, usually the same day.

Contact us