Cookies, tracking and consent banners
Cookie banners are the most visible part of privacy law, and the part most often done wrong. The rule is simpler than the banners suggest: you need consent before you store or read information on someone's device, unless it is strictly necessary for the service they asked for. Analytics, advertising pixels and most third-party embeds need consent first.
Cookie rules come from the ePrivacy Directive (2002/58/EC, article 5(3)) as written into national law, combined with the GDPR's definition of consent. National rules and authority guidance differ, especially on analytics. This is not legal advice; check your authority's current guidance.
What counts as a cookie
The rule is not only about cookies. It covers any technique that stores or reads information on a device: cookies, local storage, pixels, device fingerprinting, SDKs in apps. So "we don't use cookies, only a pixel" does not escape the rule.
Three categories
| Category | Examples | Consent needed? |
|---|---|---|
| Strictly necessary | Shopping cart, login session, checkout, security, remembering the cookie choice itself | No |
| Analytics / statistics | Google Analytics, heatmaps, session recordings | Usually yes. Some countries allow limited, privacy-friendly analytics without consent under strict conditions. Check yours. |
| Marketing / advertising | Meta pixel, Google Ads tags, TikTok pixel, retargeting, many embedded videos and social widgets | Yes |
"Strictly necessary" means necessary for the service the user explicitly asked for, not necessary for your business model.
What valid consent looks like
Consent under the GDPR must be freely given, specific, informed and unambiguous. For cookie banners, regulators and the courts have made this concrete:
- No pre-ticked boxes (Court of Justice, Planet49, C-673/17).
- No tracking before the choice. Marketing and analytics tags may only fire after the user clicks accept.
- Rejecting is as easy as accepting. Many authorities expect a "Reject all" button on the first layer, equally visible as "Accept all". The EDPB's cookie banner taskforce report (2023) lists practices that several authorities consider unlawful, such as hiding the reject option or using deceptive colours.
- Specific: users can choose per category.
- Informed: say which categories, which parties, and for what purpose, with a link to your cookie policy.
- Withdrawable at any time, as easily as given: a "cookie settings" link in the footer.
- Recorded: keep proof of consent (your consent tool does this).
- "By continuing to browse you accept cookies" is not consent.
Google Consent Mode v2
If you use Google Ads or Google Analytics with visitors in the EEA, Google requires that you pass users' consent choices to Google, via Consent Mode v2 with a consent management platform. Consent Mode does not replace the legal requirement for consent; it tells Google's tags what the user chose so they behave accordingly. Check the current requirements in Google's help pages. The course Paid advertising shows how to set it up and test it.
First-party, privacy-friendly analytics
You can reduce the need for consent by measuring less, and measuring yourself. my-app.engineer's Pulse counts each app's visits, sign-ups and activations first-party in your own cluster, without a third-party script. That avoids sending data to an outside analytics company. Whether a particular analytics setup is exempt from consent in your country still depends on national rules and how it is configured (for example, whether it stores or reads anything on the device). Check your authority's guidance and decide deliberately.
Inside your BIAB shop, the shop's own analytics give you visits and sales summaries. For any additional third-party tags you add to the shop, the consent rules above apply.
Your cookie policy
Alongside the banner, publish a cookie policy (or a section in your privacy policy) that lists:
- each category and what it is for;
- each cookie or tool, the provider, the purpose and the lifetime;
- whether data goes outside the EU;
- how to change the choice (link to the settings).
Most consent tools generate this list by scanning your site. Check the scan: scanners miss tags that only load after consent or on certain pages.
The 15-minute cookie test
Do this test on your own site, in a private browser window:
- Open your site and do not click the banner. Open the browser's developer tools (Network tab) and look for requests to known trackers (facebook, google-analytics, googletagmanager with ad tags, tiktok, doubleclick, hotjar). There should be none that set marketing or analytics identifiers.
- Check the Application/Storage tab: only strictly necessary cookies should exist.
- Click Reject all. Browse three pages and add a product to the cart. Still no tracker requests.
- Clear site data, reload, click Accept all. Now the tags should load.
- Open the footer link "cookie settings" and withdraw consent. Check that tags stop on the next page.
Write the result and date in your Compliance file. If something fires before consent, fix it before you spend on ads.
Rules on analytics without consent, the design of banners, and fines differ per country. Examples: CNIL (France) publishes conditions for consent-exempt audience measurement; the Autoriteit Persoonsgegevens (Netherlands) and UODO (Poland) publish cookie guidance; in Germany the TDDDG (formerly TTDSG) implements the cookie rule; in the UK the PECR and the ICO apply, and the Data (Use and Access) Act 2025 relaxed some rules for low-risk analytics. Check your authority's current guidance.
I want to check my website's cookies and tracking. Here is the list of tools and tags on my site: [list: analytics, pixels, chat widget, embedded video, consent tool, shop platform]. For each, tell me: which category it likely falls under (strictly necessary, analytics, marketing), whether it needs consent under the ePrivacy rule and GDPR consent standards, what a cookie policy entry should say (provider, purpose, typical lifetime, transfer outside the EU: mark as "check"), and how to test that it does not fire before consent. Then write a short banner text with "Accept all", "Reject all" and "Settings" in plain English. Mark anything that depends on my country's guidance.
Run the 15-minute cookie test on your site and write down every tag that loads before consent. Fix those first. Then generate or update your cookie policy and add the test result and date to your Compliance file.
This course is general information, not personal legal, tax or financial advice. Rules, amounts and dates change: check the official source for your country before you act.