Google Consent Mode: Advanced, Basic and Off
On this page
- Advanced, Basic and Off at a glance
- Where to change the setting
- Advanced consent mode (default)
- Basic consent mode
- Off
- Installation requirements
- Check that it works
- Questions
Consent Mode is a way to pass consent choices to Google tags. Deciding which consent your website needs to collect, and from whom, is up to you and your legal advisers. For background on Consent Mode itself, see Google Consent Mode v2 and Google's About consent mode.
Advanced, Basic and Off at a glance
Google describes two ways to implement consent mode:
- Basic consent mode: "When you implement consent mode in its basic version, you prevent Google tags from loading until a user interacts with a consent banner."
- Advanced consent mode: "When you implement consent mode in its advanced version, Google tags load when a user opens the website or app."
ConsentBit supports both, and also lets you turn Consent Mode off.
Advanced (default)BasicOffGoogle tags before the visitor choosesLoad when the page opensBlockedBlockedConsent Mode commands sent by ConsentBitDefault (denied) on page load, update on every choiceDefault with the visitor's choices when they accept, update on every later changeNoneData sent to Google before the visitor choosesCookieless pings only (no Google cookies are set while consent is denied)NoneNoneIf the visitor rejectsTags stay loaded with consent denied and send cookieless pingsTags never load; nothing is sent to GoogleTags never load; nothing is sent to GoogleIf the visitor acceptsTags update to the visitor's choice right awayTags load with the visitor's choiceTags load without any consent informationConversion modelingGoogle can use cookieless pings for advertiser-specific modelingGoogle uses a general modelNo consent information is sent to Google
Where to change the setting
- In the ConsentBit dashboard, open your site and go to Cookie Banner → General.
- In the Google Consent Mode (GCM) card, set the two switches:
- Support Google Consent Mode: send Google the visitor's consent choices (Consent Mode default and update commands).
- Allow Google tags to fire before consent: shown only when the first switch is on.
- Click Publish. The new setting applies to your live site straight away. The card shows the mode in use, for example Current mode: Basic.
Support Google Consent ModeAllow Google tags to fire before consentModeOnOnAdvanced (default for every site)OnOffBasicOff(hidden)Off
These settings are available on every ConsentBit plan.
Advanced consent mode (default)
Advanced mode is what every ConsentBit site uses unless you change it. You don't need to change any settings.
- Your Google tags (Google Analytics 4, Google Ads, Floodlight and Google Tag Manager) load as soon as the page opens.
- Before they run, ConsentBit sends a Consent Mode default with
ad_storage,ad_user_data,ad_personalization,analytics_storage,functionality_storageandpersonalization_storageset todenied, andsecurity_storageset togranted. - While consent is denied, Google tags don't set Google cookies. They send cookieless pings instead.
- When the visitor makes a choice, and whenever they change it, ConsentBit sends a Consent Mode update with the new values, and the tags adjust right away.
- Returning visitors get their saved choice on every page.
ConsentBit also sets ads_data_redaction and url_passthrough to true. See Other settings ConsentBit applies.
Basic consent mode
In Basic mode, ConsentBit keeps your Google tags from loading until the visitor interacts with the banner and accepts.
- Before the visitor chooses, Google tags are blocked and nothing is sent to Google. ConsentBit doesn't send any Consent Mode command either.
- When the visitor accepts Analytics or Marketing, ConsentBit sends the Consent Mode default with the visitor's actual choices (for example,
analytics_storagegranted and the advertising types denied). Then your Google tags load, so they start with the right consent state. - If the visitor rejects (or accepts only categories that don't apply to Google tags), your Google tags never load and nothing is sent to Google.
- If the visitor later changes or withdraws their choice, ConsentBit sends a Consent Mode update straight away, so Google tags stop using the consent types the visitor withdrew.
- Returning visitors who accepted earlier get the default with their saved choice on page load, before the Google tags run.
ConsentBit sets ads_data_redaction and url_passthrough in Basic mode too, at the same time as the default.
Visitors who see the opt-out banner. The opt-out banner (CCPA and other US state laws) doesn't ask visitors to accept first. For these visitors, Google tags load and Consent Mode works as in Advanced mode, with consent granted unless the visitor opts out or their browser sends a Global Privacy Control signal.
Keep the Google tag file from downloading before consent (optional)
In Basic mode, ConsentBit stops your Google tag from running before consent. If the tag is written directly in your page's HTML, the browser may still download the tag file (for example gtag/js?id=G-…) as soon as it reads the page, before any script can act. The downloaded file doesn't run, sets no cookies, and sends no data to Google, but it appears in your browser's Network tab.
If you don't want the file downloaded at all before consent, mark both parts of your Google tag with type="text/plain" and a data-consentbit-category attribute. The browser then treats the tag as plain text, and ConsentBit loads it only after the visitor accepts that category:
<head>Your Google tag
<!-- 1. ConsentBit: first -->
<script id="consentbit" src="https://manager.consentbit.com/consentbit/YOUR-SCRIPT-ID/script.js"></script>
<!-- 2. Google tag: loaded by ConsentBit after the visitor accepts Analytics -->
<script type="text/plain" data-consentbit-category="analytics" async
src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script type="text/plain" data-consentbit-category="analytics">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>
</head>data-consentbit-categoryGoogle Analytics 4analyticsGoogle Ads or FloodlightmarketingOne tag for both Analytics and Adsanalytics,marketing (loads only when the visitor accepts both)
Use this markup only in Basic or Off mode. In Advanced mode it would keep the tag blocked until the visitor accepts, so Google would get no cookieless pings before consent. To go back to Advanced, remove type="text/plain" and data-consentbit-category from the tag.
Google Tag Manager's standard snippet adds the container file from a script, not from your page's HTML, so the browser doesn't download it early. You don't need this markup for Google Tag Manager.
Off
With Support Google Consent Mode turned off, ConsentBit doesn't use Consent Mode at all:
- ConsentBit sends no Consent Mode commands (no default, no update).
- Your Google tags are blocked like any other tracker until the visitor accepts the category they belong to:Google tagLoads after the visitor acceptsGoogle Analytics 4 (
G-)AnalyticsGoogle Ads (AW-) and Floodlight (DC-)MarketingGoogle Tag Manager (GTM-)Analytics and Marketing. Tags inside the container can't see a consent signal in this mode, so the container loads only when both are accepted. - If the visitor rejects, the tags never load and nothing is sent to Google.
- If a visitor withdraws consent, Google tags that already loaded stay until the visitor opens another page. From the next page on, they're blocked again.
Before you choose Off: Google receives no consent information for your visitors in this mode. Google requires consent signals for some features and regions, for example for visitors in the European Economic Area (EEA) and the UK. Without them, features such as conversion modeling, remarketing and audience building may be limited. Check Google's consent mode guidance for your account before you turn Consent Mode off.
Installation requirements
Script order (all modes)
Put the ConsentBit script first in your page's <head>, above your Google tag, and don't add async or defer to it. A Google tag placed above the ConsentBit script runs before ConsentBit loads: in Advanced mode it starts without the consent default, and in Basic and Off mode ConsentBit can't block it. The ConsentBit apps for Webflow and Framer add the script to your page's <head> for you. If you've also added a Google tag in your site's custom code, make sure it comes after the ConsentBit script.
Google Tag Manager template
The Advanced, Basic and Off switches apply when the ConsentBit script is on your page (script install, Webflow app or Framer). If you load ConsentBit through the ConsentBit CMP template in Google Tag Manager, the template always sets the Consent Mode defaults inside Google Tag Manager, so your site works in Advanced mode whatever the switches say. To use Basic or Off, add the ConsentBit script to your site's <head> directly instead of loading it through the template.
If you keep the template, you can get Basic behaviour with Google Tag Manager's own consent settings: open each Google tag, go to Advanced Settings → Consent Settings, choose Require additional consent for tag to fire, and add analytics_storage (Google Analytics) or ad_storage (Google Ads and Floodlight). See Set up basic consent mode.
IAB TCF banner
With the IAB TCF banner, Google reads consent from the TCF string, so these switches don't apply and are hidden in the dashboard. The TCF banner keeps Google tags waiting until the visitor makes a choice.
Check that it works
Open your site in a private (incognito) window, so you start as a new visitor. Then use one of these:
- Google Tag Assistant: open tagassistant.google.com, connect your site, and open the Consent tab.
- Browser console: type
dataLayerto see the Consent Mode commands on the page. - Network tab: filter by
collectto see requests to Google Analytics. Thegcsparameter in each request shows the consent state Google received:G100= analytics and ads denied,G101= analytics granted and ads denied,G111= both granted.
ModeBefore you chooseAfter you click Accept allAfter you click Reject allAdvancedA consent default with everything denied appears first. The Google tag loads. Analytics requests have gcs=G100.A consent update with everything granted. Requests have gcs=G111.A consent update with everything denied. Requests stay at gcs=G100.BasicNo consent entry. The Google tag hasn't run, and there are no collect requests.A consent default with your choices appears first, then the tag loads. Requests have gcs=G111, also after you reload the page.No consent entry and no collect requests, also after you reload the page.OffNo consent entry. The Google tag hasn't run, and there are no collect requests.Still no consent entry. The tag loads, and its requests carry no consent state.No consent entry and no collect requests.
To test a withdrawal, accept first, then reopen the banner preferences and turn Analytics and Marketing off. In Advanced and Basic mode you'll see a consent update with the types denied.
"Check now" and debug mode
The Check now button in the Google Consent Mode card, and debug mode, load your page as a new visitor who hasn't made a choice yet. They're built to check Advanced mode, where the consent default must be set before your Google tags. In Basic and Off mode no Consent Mode command is sent at that point by design, so they show warnings such as No consent default found on this page and The ConsentBit developer ID was not found. In these modes, use the table above to check your setup instead. In Basic mode, debug mode shows the default and the developer ID after you accept.
Questions
Which mode should I choose?
Advanced is the default. Google tags can then send cookieless pings while consent is denied, which Google can use for advertiser-specific conversion modeling. Choose Basic if you don't want Google tags to load at all before the visitor accepts. Choose Off only if you don't use Consent Mode with your Google tags; see the note under Off.
Does changing the mode affect visitors who already made a choice?
No. Their saved choice is kept. From their next page view, ConsentBit applies the new mode to that choice.
Do I need to change my Google tag when I change the mode?
No. Keep your Google tag below the ConsentBit script and ConsentBit handles the rest. The only exception is the optional type="text/plain" markup described under Basic consent mode, which you should remove if you switch back to Advanced.
Where can I read Google's documentation?
- About consent mode (Google Ads Help)
- Consent mode overview (Google for Developers)
- Set up consent mode on websites (Google for Developers)