Skip to main content

Consent Mode

Google Consent Mode: basic vs advanced

Basic mode waits for the visitor's choice before any Google tag loads, while advanced mode loads tags at once and sends cookieless pings to Google after a rejection.

Published
Reviewed on
Reading time
9 min read
By
Limes
On this page

The short answer

Pick basic mode if no Google tag should run in your visitors' browsers before they consent. Pick advanced mode only if you can explain why pings to Google before consent are allowed under the ePrivacy rules where your visitors are, and your data protection officer agrees with that reasoning.

The two modes differ only in the time before the choice. In basic mode the Google tag loads once the visitor accepts in the banner. In advanced mode it loads when the page opens and sends measurements without cookies while consent is missing. Google uses those pings to build a conversion model specific to your Google Ads account.

Basic is the default in Limes. The diagram shows the four signals before the choice, after Accept and after Reject.

Before the choice: consent default

  • ad_storage denied
  • analytics_storage denied
  • ad_user_data denied
  • ad_personalization denied

After Accept: consent update

  • ad_storage granted
  • analytics_storage granted
  • ad_user_data granted
  • ad_personalization granted

After Reject: consent update

  • ad_storage denied
  • analytics_storage denied
  • ad_user_data denied
  • ad_personalization denied

Sample data

What both modes have in common

Basic and advanced mode use the same API. The consent tool calls gtag('consent', 'default', ...) with the starting state. After the choice it calls gtag('consent', 'update', ...) with what the visitor picked. Google Ads and Google Analytics read four signals:

  • ad_storage allows cookies and device identifiers for advertising.
  • analytics_storage allows cookies and device identifiers for analytics, for example visit duration.
  • ad_user_data allows sending user data to Google for online advertising.
  • ad_personalization allows personalized advertising.

Order and wait time

Each signal is either granted or denied. Google defines three more types, functionality_storage, personalization_storage and security_storage. They make no difference to the choice of mode.

Both modes need the same order on the page. The default command runs on every page before any command that sends measurement data, such as config or event. Google's setup guide warns that the defaults do not work when the consent code runs out of order. wait_for_update sets how many milliseconds Google tags wait for the consent tool's update before they send data.

The signals in detail, and what Google requires for visitors in the European Economic Area, are on the page about Google Consent Mode v2.

Basic: no Google tag before consent

In basic mode the site holds the Google tag back until the visitor decides in the banner. Google's overview states that no data reaches Google before that, not even the default consent status. If the visitor accepts, the tag loads and reads the signals. If the visitor rejects, the tag never loads.

That has two effects. The browser makes no request to Google's servers before the choice, so Google receives no IP address and no user agent. In exchange, Google Ads and Google Analytics measure nothing for visitors who reject. Google then models conversions with a general model rather than one built for your account.

Basic is the default in Limes. When you enter your Google Tag Manager ID in Limes, the Limes script loads the container once statistics or marketing is granted. For visitors who need prior consent, that happens only after they accept in the banner. For them the script first sets all four signals to denied, so every tag in the container reads the current state once it loads.

Advanced: cookieless pings

In advanced mode the Google tag loads when the page opens, with every signal set to denied. Until the visitor accepts, the tag neither writes nor reads advertising or analytics cookies. It does send the consent state and measurements without cookies to Google, which Google calls cookieless pings. Once the visitor accepts, the tag writes cookies and sends all measurement data.

Google uses the pings for an advertiser-specific model. The developer docs describe it as more detailed than the general model of basic mode. That model is the only reason to consider advanced mode at all.

index.html

Both modes put the default block before the Google tag. The mode only decides when gtag.js loads.

<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('consent', 'default', {
    'ad_storage': 'denied',
    'ad_user_data': 'denied',
    'ad_personalization': 'denied',
    'analytics_storage': 'denied',
    'wait_for_update': 500
  });
</script>
<!-- Advanced mode loads gtag.js right after this block, basic mode only after consent -->

What Google says it sends

Google's consent mode overview lists what a cookieless ping can contain:

  • Functional information, namely the timestamp, the user agent and the referrer.
  • Whether the current page or an earlier page of the visit carried ad-click information in the URL, such as gclid or dclid.
  • Boolean information about the consent state.
  • A random number generated on each page load.

Page URL and IP address

With ad_storage denied, Google still collects the full page URL, including ad-click information in the URL parameters such as gclid or dclid. Google's ads products truncate the IP address at collection. The address therefore reaches Google's servers with each request, and Google shortens it there.

The ads_data_redaction flag changes what happens to the ad-click information. With ad_storage denied and ads_data_redaction set to true, Google redacts gclid and dclid in consent pings and conversion pings. It also redacts page URLs that contain ad-click identifiers. Requests then go through a domain without third-party cookies, for example pagead2.googlesyndication.com. The flag applies to Google Ads and Floodlight tags and has no effect while ad_storage is granted.

The Limes script sets ads_data_redaction to true by default, and the Limes app has no setting to turn it off. On a Limes site, Google Ads and Floodlight tags therefore send page URLs with ad-click identifiers redacted until the visitor grants marketing.

What this means for § 25 TDDDG and Article 5(3)

Article 5(3) of the ePrivacy Directive 2002/58/EC, as amended by Directive 2009/136/EC, allows storing information on a user's device, or gaining access to information already stored there, only with consent. Germany writes the rule into § 25(1) TDDDG, and every EU member state has its own version. The rule speaks of information, not personal data, and it names no technology such as cookies.

The European Data Protection Board explains when access happens in its Guidelines 2/2023 on the technical scope of Article 5(3). Version 2.0 was adopted on 7 October 2024. Paragraph 33 counts JavaScript that instructs the browser to send requests with the targeted information as access, and states that "such access clearly falls within the scope of Article 5(3) ePD". Paragraph 51 adds that for a dynamically built tracking pixel, delivering that JavaScript logic is the instruction, and collecting the identifiers is gaining access. Paragraph 43 names context data in the HTTP header, such as the user agent. Relying on it to collect information "can lead to the application of Article 5(3) ePD".

The guidelines do not mention Google's consent mode. In our reading, a ping in advanced mode fits these descriptions. The Google tag is JavaScript that runs in the browser and tells it to send the user agent, the referrer and the page URL to Google. The absence of a cookie does not change that. Access to the device therefore happens in both modes once a Google tag runs. Basic mode allows it only after consent, advanced mode allows it before.

The guidelines do not say that every access needs consent. Paragraph 56 reminds readers that an exemption may apply case by case. In Germany the relevant one is § 25(2) No. 2 TDDDG, which drops the consent requirement where access is strictly necessary for the provider to deliver a digital service the user explicitly requested.

If you run advanced mode, you need an argument for why pings for Google Ads conversion measurement meet that test. The visitor asked for your page, not for the measurement of your campaign. The guidelines are not law, but they show how the EU's data protection authorities read Article 5(3). Make the call together with your data protection officer.

Decision table

Basic mode fits when most of your visitors are in the EU and you do not want to defend access by Google tags before consent. Advanced mode is an option when your site skips prior consent in some regions, or when your data protection officer has signed off on the pings before consent. In that case, describe the pings in your privacy policy.

Basic and advanced consent mode side by side

QuestionBasicAdvanced
Does the Google tag load before the choice?NoYes, with every signal denied
What does Google receive before the choice?Nothing, not even the consent statusThe request for gtag.js and cookieless pings
What does Google receive after Reject?NothingPings with timestamp, user agent, referrer and page URL, ad-click identifiers redacted when ads_data_redaction is true
Are cookies set before consent?NoNo
Conversion model in Google AdsGeneral modelAdvertiser-specific model
Device access under the EDPB guidelinesOnly after consentBefore consent, needs an exemption or consent
Privacy policyGoogle services after consentAlso the pings before consent
In LimesDefaultAvailable, applies only where no prior consent is required

How to switch modes in Limes

Limes applies the mode by deciding when your Google Tag Manager container loads. If your page embeds gtag.js in its own source code, the tag loads when your code says so, and Limes only sets the signals. Statistics controls analytics_storage. Marketing controls ad_storage, ad_user_data and ad_personalization.

Advanced mode in Limes changes nothing for visitors who need prior consent. On a site with geo rules, these are visitors from the EU, the EEA, the UK and Switzerland, and visitors in regions set to opt-in. On a site with the "Germany & EU" legal profile and no geo rules, it is every visitor. For these visitors the script sets all four signals to denied and loads the container only after consent, in both modes.

Limes detects the visitor's region only on sites with geo rules. In regions set to opt-out or "Notice only", Limes starts with statistics and marketing granted, so the container loads when the page opens in both modes. There, advanced mode only changes what happens after a rejection. On later page views, basic mode no longer loads the container, while advanced mode loads it and sends cookieless pings.

Advanced mode also changes something in regions set to "No banner" and on sites with the "Outside the EU" legal profile and no geo rules, as long as statistics and marketing stay off by default. Without geo rules, such a site does not detect visitors from the EU either, so advanced mode loads the container for them before consent. Geo rules come with the Professional plan and up, see pricing.

To set the mode:

  1. In Limes, open your site under "All websites" and enter the Google Tag Manager ID under "Google Analytics & Google Ads", for example GTM-XXXXXXX.
  2. Expand "Technical settings" and pick "Basic (default)" or "Advanced" under "Google Consent Mode behaviour".
  3. Check "Wait for consent (ms)" in the same section. Limes uses 500 milliseconds, and the field accepts values from 0 to 2000 in steps of 50.
  4. Click "Publish changes". With advanced mode the checklist shows a note that your privacy policy should mention the pings.
  5. Open your site in a private window with Google Tag Assistant connected and accept in the banner, as a visitor from the EU. In basic mode the container loads only after that choice. In Tag Assistant's Consent view, the default event shows all four signals as denied, and the update event shows the categories you accepted.

Setting up Analytics and Ads

The Google Analytics and Google Ads guide walks through connecting GA4 and Google Ads to Limes. Which signals Limes sets, and when, is on the Google Consent Mode in Limes page. Google Consent Mode v2 is part of every plan, the Free plan included.

Frequently asked questions

Is advanced consent mode GDPR compliant?

Consent mode is a Google API, not a certification. For pings before consent, the ePrivacy rule on device access applies first, in Germany § 25 TDDDG, because the Google tag accesses the device. The GDPR then applies to processing personal data such as the IP address. Whether an exemption covers the pings is a question for your data protection officer.

Does advanced mode set cookies before consent?

No. While ad_storage and analytics_storage are denied, the Google tag neither writes nor reads advertising or analytics cookies. It still loads from Google's servers and sends cookieless pings with the timestamp, user agent, referrer and page URL. With ads_data_redaction set to true, the Limes default, Google redacts ad-click identifiers in those pings and URLs for Google Ads and Floodlight tags.

Do I need consent mode if I use basic mode?

Yes. In basic mode the Google tag reads the four signals once it loads. If the visitor accepted statistics only, analytics_storage is granted and the three ad signals stay denied. Without the signals the tag could not tell which purposes are allowed.

Sources

  1. Consent mode overview(opens in a new tab) Google for Developers developers.google.com Basic and advanced mode, the consent types, what cookieless pings contain, general and advertiser-specific models.
  2. Set up consent mode on websites(opens in a new tab) Google for Developers developers.google.com Order of the default command, wait_for_update, and the scope of ads_data_redaction for Google Ads and Floodlight tags.
  3. Guidelines 2/2023 on Technical Scope of Art. 5(3) of ePrivacy Directive, Version 2.0(opens in a new tab) European Data Protection Board edpb.europa.eu 7 October 2024 Paragraphs 33, 43, 51 and 56 on access through JavaScript and HTTP header data, and on exemptions.
  4. § 25 TDDDG, Schutz der Privatsphäre bei Endeinrichtungen(opens in a new tab) Bundesministerium der Justiz gesetze-im-internet.de
  5. Directive 2002/58/EC on privacy and electronic communications, consolidated version of 19 December 2009(opens in a new tab) Publications Office of the European Union eur-lex.europa.eu Article 5(3) as amended by Directive 2009/136/EC, the rule behind § 25 TDDDG.
  6. Directive 2009/136/EC amending Directive 2002/58/EC(opens in a new tab) Publications Office of the European Union eur-lex.europa.eu Article 2(5) replaced the right to refuse in Article 5(3) with the consent requirement.

Google Consent Mode v2 signals, modes and requirements

Topic overview

Set up a banner where reject stays equal.

The Free plan includes a banner for one domain with Google Consent Mode v2 and consent proofs.