Why your website loads tracking before consent (and how to check in 5 minutes)
Many sites set tracking cookies before the visitor clicks anything on the cookie banner. What EU law says, what regulators have fined, what is allowed before consent, and a 5-minute browser check.
You added a cookie banner. Visitors see it and click “Accept” or “Reject”. On many websites, though, analytics and advertising tags have already run by the time the banner appears: cookies are already on the device and requests have already gone to ad networks. The banner asks a question the site has already answered for the visitor.
This article explains how common that is, why it’s a problem, what is genuinely allowed before consent, and how to check your own site in about five minutes with nothing more than a browser.
This is general information, not legal advice. Rules differ slightly between EU countries.
How common is it?
Researchers have measured this several times, and the results point the same way:
- Consent recorded before anyone clicked. Matte, Bielova and Santos crawled 22,949 European websites that use banners built on the IAB Europe consent framework. 141 sites stored a “yes” before the visitor made any choice, and 27 stored a “yes” even after the visitor explicitly refused. In a detailed review of 560 sites, 54% had at least one suspected violation. [3]
- Most tracking happens before the choice. Papadogiannakis and colleagues measured that more than 75% of the tracking activity they observed happened before visitors could choose in the banner, or after they had rejected all cookies. [4]
- Few banners meet the minimum. Nouwens and colleagues looked at 680 UK websites using the five most popular consent platforms: only 11.8% met minimal requirements based on European law. [5]
These studies cover specific samples, not the whole web. But they agree that “we have a banner” and “we respect the visitor’s choice” are not the same thing.
Typical technical reasons are simple: a tag pasted directly into the theme or added by a plugin, a Google Tag Manager tag with no consent condition, a consent script that loads after other scripts, or an embedded video, map or chat widget that sets its own cookies.
What the law says
Consent comes first. Article 5(3) of the EU ePrivacy Directive allows storing information on a visitor’s device, or reading information already stored there, only with the visitor’s consent after clear and comprehensive information. There are narrow exceptions for what is strictly necessary (see below). [1][6] In Lithuania this rule is in Article 73(4) of the Law on Electronic Communications. [2]
It’s not only about cookies. The European Data Protection Board’s Guidelines 2/2023 (final version adopted 7 October 2024) explain that the same rule covers tracking pixels, tracking links, unique identifiers and similar techniques, so that the consent obligation can’t be bypassed by swapping cookies for something else. [6]
Consent has to be an active choice. In Planet49 (case C‑673/17, 1 October 2019), the EU Court of Justice ruled that a pre-ticked checkbox is not valid consent for cookies. [7] The GDPR defines consent as a clear affirmative action; silence, pre-ticked boxes and inactivity don’t count (Article 4(11) and recital 32). [8]
So “the visitor kept browsing” or “the banner was visible” is not consent. Anything that needs consent must wait until the visitor actually clicks.
Is it really a problem?
Regulators enforce exactly this point, including against very large companies. The French data protection authority (CNIL) has been the most active:
| When | Who | What the regulator found | Fine |
|---|---|---|---|
| Dec 2020 | Google LLC and Google Ireland | Advertising cookies placed automatically when visitors opened google.fr, without prior consent [9] | €100 million (€60M + €40M); upheld by France’s Council of State in January 2022 [10] |
| Dec 2020 | Amazon Europe Core | Cookies placed automatically on amazon.fr without any action by the visitor [11] | €35 million |
| Dec 2022 | Microsoft Ireland | Cookies, including for advertising, placed on bing.com without consent; refusing was not as easy as accepting [12] | €60 million |
| Sep 2025 | SHEIN (Infinite Styles Services) | Cookies, including advertising cookies, placed as soon as visitors arrived on shein.com, before any interaction; some kept being placed after refusal [13] | €150 million |
Fines are calculated case by case, and these cases involved very large audiences: in the Google case, the Council of State noted roughly 47 million users in France. [10] The rule itself applies to every website, large or small.
What is allowed before consent
Not everything needs to wait. The EU’s data protection authorities (then the Article 29 Working Party) described the two exceptions in Opinion 04/2012 [14]:
- Transmission: what is needed for the communication itself to work, for example a load-balancing cookie.
- Strictly necessary for a service the visitor explicitly asked for: for example a shopping cart, a login session or a security feature. “Necessary” is judged from the visitor’s point of view, not the site owner’s.
The same opinion lists what is not covered: social plug-in tracking cookies, third-party advertising cookies, and both third-party and first-party analytics cookies. Its advice for doubtful cases is to ask for consent. [14]
National differences exist. For example, the CNIL allows some audience-measurement tools without consent if strict conditions are met: the purpose is limited to measuring the site’s own audience, the output is anonymous statistics, and the data isn’t combined with other processing or passed to third parties. [15] Check your own country’s guidance before relying on an exemption.
In short: a well-configured site loads only what is genuinely necessary before the click, and everything else after the visitor says yes.
How to check your site in 5 minutes
You need Chrome (Edge works the same way). [16]
- Open a private window (Ctrl+Shift+N / Cmd+Shift+N), so old cookies and earlier choices don’t hide the problem.
- Open DevTools before loading the page: F12, or Cmd+Option+I on a Mac. Go to the Network tab and tick Preserve log.
- Open your website. Don’t touch the banner.
- Check cookies: go to Application → Storage → Cookies and select your domain. Note what is already there. For example, Google Analytics 4 uses
_gaand_ga_<ID>cookies to distinguish users, kept for 2 years by default. [17] If you see these before clicking, analytics ran without consent. - Check requests: in the Network tab, type the names of services you use into the filter (for example
google-analytics,googletagmanager,doubleclick,facebook) and look for requests that left the browser before your click. - Now click “Reject”, reload the page and repeat steps 4–5. After a refusal, non-essential cookies and requests should not appear.
- Repeat on a page with an embedded video, map or chat, because embeds often bring their own cookies.
If you see analytics or advertising cookies, or requests to ad networks, before the click or after “Reject”, your banner isn’t doing its job.
A manual check covers one page at one moment. New plugins and tags appear over time, so it’s worth repeating after every change, or using a scanner that does it automatically.
How to fix it
- Load the consent script first, at the top of
<head>, before any other tags. - Put every non-essential tag behind consent: in Google Tag Manager with consent conditions, in code with a consent category, or for Google tags with Consent Mode signals set to “denied” by default.
- Replace embeds with a placeholder until the visitor agrees (for example “Load YouTube video”).
- Check again after each new plugin, tag or campaign.
How ZiiZ Consent helps: third-party scripts don’t load until there is consent; known services are recognised automatically and unknown third parties are blocked by default. The scanner opens your site twice, without consent and after “Accept all”, and marks everything that appeared before consent, so you can see the problem without opening DevTools. Free during the beta until 1 February 2027.
Sources
- Directive 2002/58/EC (ePrivacy Directive), Article 5(3), as amended by Directive 2009/136/EC. EUR-Lex: https://eur-lex.europa.eu/eli/dir/2002/58/oj
- Law of the Republic of Lithuania on Electronic Communications No IX-2135, Article 73(4) (consolidated version from 2 November 2025). e-seimas: https://e-seimas.lrs.lt/rs/actualedition/TAIS.232036/CDCbVvSHKe/format/ISO_PDF/
- C. Matte, N. Bielova, C. Santos, “Do Cookie Banners Respect my Choice? Measuring Legal Compliance of Banners from IAB Europe’s Transparency and Consent Framework”, IEEE Symposium on Security and Privacy 2020. arXiv: https://arxiv.org/abs/1911.09964
- E. Papadogiannakis, P. Papadopoulos, N. Kourtellis, E. P. Markatos, “User Tracking in the Post-cookie Era: How Websites Bypass GDPR Consent to Track Users”, ACM, 2021, DOI 10.1145/3442381.3450056. arXiv: https://arxiv.org/abs/2102.08779
- M. Nouwens, I. Liccardi, M. Veale, D. Karger, L. Kagal, “Dark Patterns after the GDPR: Scraping Consent Pop-ups and Demonstrating their Influence”, CHI 2020, DOI 10.1145/3313831.3376321. MIT DSpace: https://dspace.mit.edu/handle/1721.1/129999
- European Data Protection Board, Guidelines 2/2023 on Technical Scope of Art. 5(3) of ePrivacy Directive, version 2.0, adopted 7 October 2024: https://www.edpb.europa.eu/system/files/2024-10/edpb_guidelines_202302_technical_scope_art_53_eprivacydirective_v2_en_0.pdf · press release: https://www.edpb.europa.eu/news/news/2023/edpb-provides-clarity-tracking-techniques-covered-eprivacy-directive_en
- Court of Justice of the EU, Case C‑673/17 Planet49, judgment of 1 October 2019, press release No 125/19: https://curia.europa.eu/jcms/upload/docs/application/pdf/2019-10/cp190125en.pdf
- Regulation (EU) 2016/679 (GDPR), Article 4(11) and recital 32. EUR-Lex: https://eur-lex.europa.eu/eli/reg/2016/679/oj
- CNIL, Deliberation SAN-2020-012 of 7 December 2020 (Google LLC and Google Ireland Limited): https://www.cnil.fr/sites/cnil/files/atoms/files/deliberation_of_restricted_committee_san-2020-012_of_7_december_2020_concerning_google_llc_and_google_ireland_limited.pdf
- Conseil d’État, decision No 449209 of 28 January 2022, press release: https://conseil-etat.fr/en/news/advertising-cookies-google-fined-100-million
- CNIL, Deliberation SAN-2020-013 of 7 December 2020 (Amazon Europe Core), summarised in Dechert LLP, “French Regulator Imposes Record-Breaking Fines on Google and Amazon for Unlawful Use of Cookies” (February 2021): https://www.dechert.com/knowledge/onpoint/2021/2/french-regulator-imposes-record-breaking-fines-on-google-and-ama.html
- CNIL, “Cookies: MICROSOFT IRELAND OPERATIONS LIMITED fined 60 million euros” (Deliberation SAN-2022-023 of 19 December 2022): https://www.cnil.fr/en/node/8781
- CNIL, “Cookies placed without consent: SHEIN fined 150 million euros by the CNIL” (Deliberation SAN-2025-005 of 1 September 2025): https://www.cnil.fr/en/cookies-placed-without-consent-shein-fined-150-million-euros-cnil
- Article 29 Data Protection Working Party, Opinion 04/2012 on Cookie Consent Exemption (WP194), adopted 7 June 2012: https://datenschutz.hessen.de/sites/datenschutz.hessen.de/files/2022-11/wp_194.pdf
- CNIL, “Mesurer la fréquentation de vos sites web et de vos applications” (conditions for the audience-measurement exemption): https://www.cnil.fr/fr/mesurer-la-frequentation-de-vos-sites-web-et-de-vos-applications
- Chrome for Developers, “View, add, edit, and delete cookies”: https://developer.chrome.com/docs/devtools/application/cookies
- Google Analytics Help, “[GA4] Cookie usage on websites”: https://support.google.com/analytics/answer/11397207