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 v2: four signals to Google
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):
| Signal | What it controls |
|---|---|
ad_storage | Storage for advertising, such as ad cookies in the browser. |
analytics_storage | Storage for analytics, such as cookies for visit duration. |
ad_user_data | Whether user data may be sent to Google for advertising. Denied also means no enhanced conversions. |
ad_personalization | Whether 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:
- 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.
- The gcs and gcd parameters. Requests to Google carry the parameter
gcswith the state of ad_storage and analytics_storage, and the parametergcdwith 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. - 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).
- The consent state in the dataLayer. Type
dataLayerinto the console of the developer tools. The entry with “consent” and “default” must come before the first event that sends data. - Cookies after rejecting. Tab “Application”, then “Cookies”: after “Reject” and a reload, no third-party advertising or analytics cookies may appear.
- Withdrawal. Accept first, then open the banner again and reject. After that, requests to third parties must stop.
- 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.