Ott Ristikivi

Feb 27, 2026 • 3 min read

Your Cookie Banner may be Lying to You

Most websites today have a cookie banner but still violating GDPR.

Your Cookie Banner may be Lying to You

Most websites today have a cookie banner. Most of them are still violating GDPR.

Not because the banner is missing — but because trackers fire before consent is actually given.

This is a runtime problem, not a legal one.

The Illusion of Compliance

A common setup looks like this:

  1. Cookie banner loads

  2. User sees “Accept / Reject”

  3. Tracking appears controlled

But if you open DevTools and watch what actually happens:

  • Google Analytics fires at ~800ms

  • Facebook / marketing pixels fire before interaction

  • Consent is only given seconds later

From a regulator’s perspective: consent did not exist when tracking started.
The banner didn’t protect you. It just made you feel safer.

Why This Happens (The Technical Reality)

Most violations are accidental and caused by architecture choices.

Here are the most common causes I see:

1. Google Tag Manager Triggers Are Misconfigured

Tags fire on:

  • Page View

  • DOM Ready

  • All Pages

Instead of waiting for consent state updates.

2. Async Script Loading

Third-party scripts load independently of your CMP logic.

By the time consent is evaluated, the request is already gone.

3. Hardcoded Tracking Scripts

Analytics embedded directly in HTML or React layouts bypass consent logic entirely.

4. Third-Party Embeds

YouTube, chat widgets, A/B tools — many "phone" home instantly.

5. Broken Consent Mode Implementations

Consent Mode is enabled, but defaults are wrong or not enforced at runtime.

On paper: compliant.

In runtime: leaking.

How to Verify This Yourself (No Tools Needed)

You can confirm this in under 2 minutes.

Step 1

Open Chrome DevTools → Network tab

Step 2

Reload the page without clicking Accept

Step 3

Filter requests by:

collect
analytics
pixel
fb
doubleclick

Step 4

Check timestamps.

If you see tracking requests before user interaction, consent is already broken.

This is what regulators actually care about.

The Bigger Problem: Manual Checks Don’t Scale

This approach works once.

It doesn’t work when:

  • You deploy weekly

  • You have multiple pages

  • You run multiple client sites

  • Marketing adds a new script at 5pm Friday

Compliance silently regresses.

No alert.
No error.
Just risk.

A Real Example

We recently scanned a site using a well-known CMP.

Everything looked correct visually.

But at runtime:

  • A custom HTML tag in GTM loaded Facebook Pixel

  • Fired before consent

  • Only on specific routes

No one noticed — until we did.

That’s the dangerous part: these issues are invisible unless you watch runtime behaviour.

Why This Matters in 2026

This isn’t just about fines.

  • Broken consent setups now lead to:

  • Ad account restrictions

  • Data quality issues

  • Trust erosion

  • Audit failures

  • Hard-to-explain legal exposure

Tracking isn’t going away.

Undisciplined tracking is.

What We Built to Solve This

This problem is exactly why we built SecureSpells.

Instead of checking what’s configured, we audit what actually runs:

  1. Runtime network behaviour

  2. Pre-consent leaks

  3. Third-party data flows

  4. Regression over time

Findings are mapped to EU privacy principles and scored by risk — so teams know what to fix first.

We don’t replace consent tools.
We verify they actually work

Want to Check Your Own Site?

If you’re curious whether your website behaves the same way, you can run a free runtime compliance scan.

  • No signup.

  • No email required.

  • No PII collected.

It analyses what actually fires before consent and highlights potential risk areas.
You can try it here:

https://securespells.com

Building privacy-respecting tooling should start with respecting user privacy ourselves.

Final Thought

If your tracking fires before the user clicks anything,

you’re not collecting data — you’re collecting liability.

If you’re curious how runtime auditing works in practice, you can read the original technical breakdown here:

👉 https://securespells.com/blog/cookies-loading-before-consent

Join Ott on Peerlist!

Join amazing folks like Ott and thousands of other builders on Peerlist.

peerlist.io/

It’s available... this username is available! 😃

Claim your username before it's too late!

This username is already taken, you’re a little late.😐

2

6

0