Notification

G Suite is now Google Workspace: everything your business needs to get work done.

Unblock Google tags when using consent mode

Learn how to unblock your Google tags to get the full benefits of consent mode. Troubleshoot Tag Manager and CMP consent settings.
This article is for website or app owners who have implemented consent mode.

Consent mode allows you to adjust how your Google tags behave based on the consent status of your users and enables Google to model conversions and behavioral data. If your Google tags may be delayed or blocked until a consent interaction occurs, your modeled conversions are less accurate, and behavioral modeling in Google Analytics 4 is unavailable.

For more comprehensive measurement to make sense of disparate data and make the most of first-party data, we recommend you adjust your tag settings so Google tags load in all cases. If consent is denied, tags that fire communicate non-identifying signals like consent state and country. These signals improve conversion modeling and enable behavioral modeling. However, blocking tags prevents them from firing so they can't send any information at all.

To get behavioral modeling in Google Analytics 4 and improve conversion modeling in Google Ads while respecting your users' consent status, follow the troubleshooting steps in this article to unblock your Google tags.

How to check if you have blocked tags

You may have blocked tags if you have set up consent mode but you see a message that behavioral modeling is unavailable in your Google Analytics 4 property.

GA4 Admin > Reporting identity > Blended > Modeling > "Modeling is unavailable for this property. Once it’s available, it will be turned on by default in your reports."

 

If you use Tag Manager, you can use Tag Assistant to check if you have blocked tags:

  1. Start a new debug session in Tag Assistant.
  2. Go to Summary > Tags.
  3. Look at the Tags Fired section. Check if all the tags you expect to fire are listed.
  4. If any tag you expect to fire did not, find it in the Tags Not Fired section and click it. The tag is blocked if either
    • A trigger or variable based on the user’s consent is one of the trigger conditions, or
    • You see a section called "Required Additional Consent" with one or more rows in the table beneath it.

For more information on using Tag Assistant to debug consent settings, read Tag Assistant Consent Mode debugging.

How to unblock tags

How you unblock tags depends on how you tagged your website or app and what mechanisms you've implemented to prevent tags from firing. Google tags may be blocked in multiple places. Check each tagging method that you've used. If you use a Consent Management Platform (CMP), check its settings as well.

This document provides troubleshooting steps for the most common causes of blocked tags.

Unblock tags with Tag Manager

The two most common causes of blocked tags in Tag Manager are exception triggers and additional consent checks. Follow the troubleshooting instructions in this section to remove exception triggers and additional consent checks from Google tags. Google tags are Google Analytics 4, Universal Analytics, Google Ads, Floodlight, and Conversion Linker tags.

Remove exception triggers

Exceptions triggers for Google tags were likely set up before consent mode existed and should be removed. Consent mode adjusts Google tag behavior based on consent state, so the exception isn't necessary anymore.

Remove exceptions from Google tags so they work properly:

1. In Tag Manager, click Workspace.

2. Click Tags in the left navigation.

3. In the Firing triggers column, find Google tags with exceptions.

Workspace > Tags > Firing Triggers

4. In the Name column, click the name of the tag.

5. Click Triggering.

6. Under Triggering, find the exception. You may have more than one exception trigger.

To quickly identify which tags use a particular exception trigger, click the trigger. At the bottom of that trigger, References to this Trigger lists all the tags that use the trigger.

7. Click RemoveRemove next to each of the exception triggers you’d like to remove.

Only remove exception triggers for Google tags: Google Analytics 4, Universal Analytics, Google Ads, Floodlight, and Conversion Linker. Non-Google tags will not change their behavior based on consent mode.

8. Click Save in the upper right corner.

9. Preview your changes.

10. Publish your container for the changes to take effect.

Remove additional consent checks for tags with built-in consent checks

Tag Manager lets you block non consent-aware tags from firing when the required consent has not been granted. In other words, if tags don't have built-in consent checks, you can use the Tag Manager additional consent checks to respond to consent status. Google tags have built-in consent checks and modify their behavior based on consent status, so they don't require additional consent checks. If you have implemented consent mode and use additional consent checks at the same time, they won't work properly. If your CMP loads asynchronously, it might not always run before your Google tags. The tags may be triggered before users interact with your consent banner, or before consent state updates arrive. Even if consent is later granted, the tags don't fire unless consent is granted when they were first triggered.

Remove additional consent checks from Google tags so they work properly:

  1. In Tag Manager, click Workspace.
  2. Click Tags in the left navigation.
  3. Click the name of your Google tag.
  4. Click Tag configuration > Advanced settings > Consent settings
  5. Review settings listed in Built-In Consent Checks. You should see ad_storage and analytics_storage listed.
  6. Select Additional Consent Checks and choose either:
    • Not set: Default. No additional consent checks are performed by this tag or
    • No additional consent required: Select this option to indicate that your tag does not need to check for additional consent in order to fire.
  7. Preview your changes.
  8. Publish your container for the changes to take effect.

Unblock tags with a Consent Management Platform

Consent Management Platforms (CMPs) block Google tags in three main ways:

  • Automatic blocking
  • Manual blocking
  • Tag Management System (TMS) based blocking

The approach to unblocking the tags varies depending on which of these methods your CMP implementation is using. General instructions for each approach are provided below, followed by links to blocking documentation for select CMPs. If you are unsure which blocking approach your site uses, contact your CMP representative or support team.

Only unblock tags that support consent mode. If you use any legacy tags which don't support consent mode, you must replace them with newer tags which do.
Ensure that the consent mode default command is being set before any Google tags fire. Failure to do this will cause Google tags to fire as if consent mode is not in use.

Automatic blocking

Automatic blocking is set in your CMP's user interface. If you have implemented your CMP’s automatic blocking functionality, the general approach to unblocking Google tags is one of the following:

  • Modify the Google tag as specified by your CMP to indicate that autoblocking should ignore it. This is usually done by adding an attribute to the Google script tags.
  • Exempt Google tags from blocking in your CMP’s user interface. This is usually done by mapping the Google vendor to a purpose which is always allowed (sometimes called Essential) or by setting the automatic blocking feature to ignore Google tags entirely.

The first approach allows for you to choose exactly which Google tags are exempted from blocking. It can be useful if you have a mix of tags that support consent mode and ones that do not. If you choose the second approach, be sure that you have not implemented tags that lack support for consent mode.

Manual blocking

Manual blocking modifies the Google tag so it cannot load until the CMP has loaded. Your CMP may instruct you to make changes to the type or src attributes of the Google tag, such as to change the type to “text/plain” or the src attribute to <cmp_name>-src. To undo this blocking technique, replace the Google tags modified with these CMP-specific modifications with the original tag as downloaded from the source Google platform.

Tag management system blocking

This approach uses a tag management system such as Google Tag Manager to fire Google tags. The CMP fires an event which indicates when consent has been granted, and that event is used as a trigger for Google and other types of tags that require user consent. If you are using this approach, modify the triggers for your Google tags to remove any consent-based criteria, firing only based on the criteria your business requires. For example, for a page view analytics event, fire only on the page load trigger and not on the consent granted event provided by your CMP.

CMP-specific documentation

The following list links to documentation about tag blocking for specific CMPs. Some of these articles describe how to implement rather than how to remove blocking. If this is the case for your CMP, reverse the documented process following the general guidance provided above.

If your instructions for your CMP are not listed, contact your CMP representative or support team for help.

Cookiebot (automatic, manual, Google Tag Manager)

Cookie Information (automatic, manual, Google Tag Manager)

  • To unblock Google tags with automatic blocking, reclassify them in such a way that they are not blocked. If you have questions, contact Cookie Information.

Commander’s Act (Tag Commander, Google Tag Manager)

  • For Tag Commander, uncheck “Include in Privacy Scope”
  • For Tag Manager, remove CMP triggers as described above

Consent Manager (automatic, manual, Google Tag Manager)

Didomi (automatic, manual, Google Tag Manager)

  • If unblocking manually blocked tags with Didomi, remove only the data-purposes or data-vendor attributes. Do not revert the “didomi/javascript” modification as this change ensures that Didomi loads and sets consent mode default consent before Google Tag Manager or other Google tags are allowed to load.

iubenda (manual, Google Tag Manager)

OneTrust (automatic, manual, Google Tag Manager)

Osano (automatic, Google Tag Manager)

Usercentrics (manual, Google Tag Manager)

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
12130419922744024182
true
Search Help Center
true
true
true
true
true
102259
false
false