A banner is quickly built in. It is only right when nothing fires before the choice.

Consent is set up correctly when no third-party tag sends data before the visitor decides, Google receives the four Consent Mode v2 signals in the right order, and the rules fit the region of the visitor. You do not check this in the banner, but in the developer tools of your browser and in Google Tag Assistant.

Guide · Chain 4 · A system of your own

From principle to settings

The guide GDPR and good tracking is about the architecture: your server measures, third parties only with consent. This guide is about the settings behind it, the places where a tidy looking banner fails in practice.

Our own line is quickly stated. Measurement on your own server always runs, pseudonymously and without cookies. Everything that passes data to third parties, such as ad tags, pixels and embedded content, only starts with consent. And when someone sends an enquiry, we process that enquiry and its source on the basis of legitimate interest. That is a documented position, not legal advice. For your business you decide together with your data protection adviser.

Consent Mode is the Google interface through which your banner tells Google tags what the visitor has allowed. The tags then behave accordingly. For advertising and analytics, four signals matter since version 2 (Google: Consent Mode):

The four Consent Mode v2 signals and what they control
SignalWhat it controls
ad_storageStorage for advertising, such as ad cookies in the browser.
analytics_storageStorage for analytics, such as cookies for visit duration.
ad_user_dataWhether user data may be sent to Google for advertising. Denied also means no enhanced conversions.
ad_personalizationWhether personalised advertising is allowed, such as remarketing.

The order is what matters. First the page sets a default state, in the EU usually “denied”, before any tag sends data. Only after the click in the banner comes the update with the choice of the visitor. Google states explicitly that the default must come before any commands that send data (Google: set up consent). If it comes later, the first measurements run without any signal.

Google distinguishes two ways to use Consent Mode. In basic mode, Google tags only load once the visitor has decided in the banner. If they reject, nothing goes to Google, not even the consent state. In advanced mode, the tags load straight away and send measurements without cookies when consent is denied. Google uses these to estimate missing conversions more precisely (Google: basic and advanced). So advanced mode gives Google more, but it sends data to a third party before any decision. That is exactly where the legal debate starts.

What happens without Consent Mode? For visitors from the EEA, Google requires that you collect consent and pass on the signals if you want to keep using Google tags for measurement, personalised advertising and remarketing (Google: Consent Mode in the EEA). Without the signals, Google cannot verify consent, and these features are only available to you in a limited way for those visitors.

Consent by region

Not every country has the same rules. In practice there are two basic patterns:

  • Opt-in means: ask first, then measure. This applies to the EU and the EEA, meaning the EU plus Iceland, Liechtenstein and Norway, and to the UK and Switzerland. Google applies its consent policy to exactly these countries (Google: EU user consent policy).
  • Opt-out means: measuring is allowed until the visitor objects. That is the pattern in several US states, such as California.

On top of that comes Global Privacy Control, GPC for short: a browser setting with which a visitor tells all websites at once that their data should not be sold or shared. In California, businesses must treat this signal as a valid opt-out request (California Attorney General). If you have visitors from such regions, read GPC and treat it like a click on “Reject”.

Technically this can be separated cleanly. Consent Mode allows a separate default state per region, given as country codes (Google: default by region). Shopify does something similar for web pixels: in opt-in regions they only run after consent, in opt-out regions until the visitor objects (Shopify: web pixels).

Two warnings. First, the region of the visitor decides which rules apply, not just where your company is based, and matching a region by IP address is never perfect. Second, the laws keep changing. So maintain the list of regions with your data protection adviser, not just once. Our measurement on our own server stays the same in every region. Only the handling of third parties changes.

How to check whether tags fire before consent

The banner looks tidy in almost every case. Whether it works, you only see behind the surface. Work in this order, ideally after every change to the website or the tag manager:

  1. Network before the click. Private window, developer tools, tab “Network”, load the page, do not click the banner. Filter for “google”, “doubleclick”, “facebook” and the addresses of your other providers. In basic mode, nothing from Google may appear here.
  2. The gcs and gcd parameters. Requests to Google carry the parameter gcs with the state of ad_storage and analytics_storage, and the parameter gcd with the more detailed choice (Google: consent parameters). Click a request and compare the value before and after your choice. If it does not change after “Accept”, the update is not arriving.
  3. Tag Assistant. Start Tag Assistant with your address. In the earliest “Consent” event, all four signals must be set, and after your choice in the banner, the update. If Tag Assistant reports that a tag read or wrote cookies before the default, the default sits too late in the code (Google: troubleshoot consent).
  4. The consent state in the dataLayer. Type dataLayer into the console of the developer tools. The entry with “consent” and “default” must come before the first event that sends data.
  5. Cookies after rejecting. Tab “Application”, then “Cookies”: after “Reject” and a reload, no third-party advertising or analytics cookies may appear.
  6. Withdrawal. Accept first, then open the banner again and reject. After that, requests to third parties must stop.
  7. Regions. If you use different defaults per region, repeat the check with simulated locations, as Google describes for Tag Assistant.

Record the result with a date. A test log helps you when someone asks, and it shows when an update changed something.

What honestly remains open

Some questions have no single answer. Art. 5(3) of the ePrivacy Directive requires consent when information on the device of a user is accessed. How far this access reaches has been read broadly by the data protection authorities in the European Data Protection Board Guidelines 2/2023. Whether that covers, for example, cookieless measurement in advanced mode or server-side identifiers is disputed among lawyers, and courts have not settled it. We say this openly instead of promising a certainty that does not exist. Our solution in the system is under privacy and consent.

Questions

Three questions about it.

W-01Basic or advanced: which should I choose?

In advanced mode, Google sends measurements without cookies before consent. Whether that requires consent under ePrivacy law is disputed. We load third-party tags only after consent, which matches basic mode, and without consent we measure only on our own server. Make the decision for your business together with your data protection adviser.

W-02Do I need Consent Mode if I do not use Google Ads?

If no Google tag runs on your website, there is nothing that could read the signals. As soon as Google Analytics, Google Ads or Google services such as embedded maps are added, the signals should be set. Google requires them for users in the EEA if you want to use measurement, personalised advertising or remarketing.

W-03Is my website legally safe when all checks are green?

No, no technical check can promise that, and this guide is not legal advice. The checks show whether the technology does what your privacy policy says. What is allowed is a question for a lawyer. Both together are the core of a solution that holds up.

Approval note

We listen. Lets talk.

  1. Ask for a slot: 30 minutes by video or phone.
  2. We listen and say openly whether Guidance, Expansion, an audit or nothing at all makes sense. Nothing at all is an answer too.
  3. No follow-up pressure. If it fits, the next step is the audit, from €200.

Free · no preparation · by video or phone

We dont need to impress anyone. Only your numbers.

on the phone, with names
People
data centre
Germany

Who is behind it: who we are

Step 1 of 5

Lets talk. 30 minutes

What do you sell?

One answer is enough.

Newsletter