What happens before someone clicks “Accept”
Operations and securityThe interesting moment on a website is the one between opening the page and clicking the cookie notice.
8 min read
By Timo Wessels Published
A few seconds pass between opening your website and clicking the cookie notice. Something already happens in that time. It happens without your visitor’s consent. That is exactly what the rules are about.
The most important points first:
- Third-party services may only load once your visitor has agreed.
- This covers more than cookies.
- You can check it yourself in two minutes.
One clarification for the whole article: This is not legal advice. I describe what happens technically and which rules it touches. Whether that amounts to a breach is for a lawyer or a data protection officer to assess.
The rule in plain words
The law is called TDDDG. It used to be called TTDSG. The important section is § 5.
It says: you may not store anything on your visitor’s device, or read anything from it, until they have agreed. They must first be told clearly and in plain terms.
The only exception is what is strictly necessary for a service the visitor asked for themselves.
For you, that means: everything stays blocked until someone agrees. A banner that only informs while everything loads in the background is not enough.
The point where most people fail
It is not only about cookies. It is about everything stored on the device.
The word “cookie banner” is misleading. Cookies are only one kind of storage. The rule also covers:
- localStorage: storage in the browser that stays for good.
- sessionStorage: storage in the browser that lasts only for the visit.
The European Data Protection Board explained this in its Guidelines 2/2023. They are about what falls under this rule.
Two things matter:
Storing alone triggers the rule. You do not have to read anything back. It is enough that something is saved.
It does not matter whether the value identifies a person. The law says “information”. An anonymous counter counts too.
It follows that anyone who only checks cookies checks too little. Many tools do exactly that.
The second mistake: counting visitors
The law has an exception for things that are strictly necessary. Many people rely on it when they count visitors.
It does not fit. The section names two conditions. Both must hold:
- The storage is strictly necessary.
- The visitor expressly asked for the service.
The visitor numbers help you. Your visitor did not order them. So you need their consent.
The exception covers what the visitor would miss: the shopping basket, the login, a language they chose themselves.
The third problem: third-party servers
If your page loads a file from a third-party server, your visitor’s IP address goes there. It happens on its own. Nobody has to click anything.
The IP address is something like the house number of their internet connection.
An IP address can be personal data. The Court of Justice of the European Union decided this in 2016 in the Breyer case. It is enough if the website operator has legal means to identify the person through third parties. They do not have to be able to do it alone.
A German court has ruled on this for fonts. The Regional Court of Munich I decided on 20 January 2022: if you pass your visitors' IP addresses to Google without their consent, because you load Google Fonts from Google’s servers, you violate their personality rights. The claimant received 100 euros. The court also said that the fonts can be used without any connection to Google.
These are the classics, in the order I find them:
Fonts from a third-party server. The most common find. It is also the easiest to fix. More on that below.
Videos in the standard mode. The page opens the connection as soon as it loads.
Maps. The same.
Checks against automatic entries, for example Google reCAPTCHA. That also loads from a third-party server.
And less obvious things: chat windows, review widgets, social network buttons, embedded booking systems and tracking pixels from ad campaigns.
How to check it yourself
The test takes two minutes. It often shows surprises.
1. Open a private browser window. That shows you what a new visitor sees.
2. Open your home page.
3. Do not click the cookie notice. Neither accept nor decline. This is exactly the state being tested.
4. Open the developer tools with F12 and choose the “Network” tab. There you see every address that has already been contacted. Anything that is not your own domain is a contact with a third party before consent.
Tip: there is a “Domain” column. If it is missing, right-click the column headings and show it. Sort by it. Then the third-party addresses sit together.
5. Open the “Application” tab (in Firefox it is called “Storage”). You find the cookies there. Below them are “Local Storage” and “Session Storage”. Whatever is already there before you clicked was written without consent.
A note against false alarms: antivirus software and browser extensions add their own entries. They look like yours. If you are unsure, check in a fresh browser without extensions.
6. The quick test in the source code. Press Ctrl+U and then Ctrl+F. Search for fonts.googleapis.com, youtube.com/embed, google.com/maps and google.com/recaptcha.
7. The most important test: click “Decline”. Then look at the Network tab again. In surprisingly many setups, things still load afterwards.
What you can do
Load nothing before someone agrees. That solves every case at once.
For that you need a consent tool that really blocks scripts. Many banners only show a notice. They are decoration, not a solution.
For the single cases:
Serve fonts from your own server. Then no connection goes outside. You no longer need consent. This is the best way: do not manage the problem, remove it. There is a separate article on this.
Put videos behind a preview image. The video loads only after the click. Whoever clicks has decided. The provider’s “enhanced privacy mode” is better than nothing. The preview image is cleaner.
Replace maps with an image and link to the map application. For directions, that is almost always enough. It also loads faster.
Replace the check against automatic entries. For a small business’s contact form, a simple solution without a third-party service is often enough.
Counting visitors: either count only after consent. Then you miss the data of those who decline. Or use a solution that stores nothing on the visitor’s device. If you evaluate only on your own server, § 5 is not touched. The General Data Protection Regulation still applies. That is the cleanest way if you need the numbers.
Remove everything nobody needs any more. On almost every grown website I find tracking pixels from campaigns that ran years ago. Add widgets from services that were cancelled long ago. They keep loading.
The check nobody does
Finally, one exercise. It gives a lot for little effort.
Put your privacy policy next to the list from the Network tab.
Every service your page loads must be named in the policy. And the other way round: services that are named there and no longer run should come out.
You do not have to interpret any rule for this. You only compare two statements of your own. On almost every website I look at for the first time, they do not match.
The most common case: the policy comes from a generator. It names services that were never used. The one service that really runs is missing.
What this means for the talk with the lawyer
If you ask for a legal opinion, bring the list from the Network tab. It answers the question that otherwise costs the most time: What actually happens on this website?
With the list, a lawyer can assess at once. Without it, they have to search first. Or they assess only what you tell them.
An honest assessment to finish: you can do the technical part in an afternoon. Fonts local, videos behind the click, map as an image, unneeded services out. After that the list is short. The rest becomes manageable. It only becomes laborious when you manage many services instead of having a few.
Sources
- Gesetz über den Datenschutz und den Schutz der Privatsphäre in der Telekommunikation und bei digitalen Diensten (TDDDG), § 5 — consent before storing or reading on the device and the two conditions of the exception: gesetze-im-internet.de(external site: gesetze-im-internet.de)
- European Data Protection Board, Guidelines 2/2023 on Technical Scope of Art. 5(3) of ePrivacy Directive, version 2.0 of 16 October 2024 — what falls under the rule on storing and accessing on the device; the page was opened, the PDF was not read: edpb.europa.eu(external site: edpb.europa.eu)
- Court of Justice of the European Union, judgment of 19 October 2016, Breyer, C-582/14 — a dynamic IP address can be personal data for the provider if they have legal means to identify the person through third parties: eur-lex.europa.eu(external site: eur-lex.europa.eu)
- Landgericht München I, judgment of 20 January 2022, 3 O 17493/20 — passing the IP address to Google through Google Fonts without consent violates personality rights, 100 euros in damages: gesetze-bayern.de(external site: gesetze-bayern.de)
- Own testing practice — the seven test steps in the private window, the note on entries from antivirus software and extensions, the decline test, the list of less obvious services, the comparison of the privacy policy and the Network tab.