Home / Guides / Why Scanners Still Detect Cookies After You Added a Banner

Free GDPR Tools

Why Scanners Still Detect Cookies After You Added a Banner

Banners do not block cookies by themselves. Understand race conditions, GTM ordering, third-party iframes, and cached consent that keep scans failing.

Author

GDPRChecker Editorial Team

Reviewed by

Privacy & Compliance Research Team

Last updated

July 2026

Reading time

3 min read

Educational guidance for compliance readiness — not legal advice. Requirements vary by jurisdiction and your specific processing activities.

Introduction

Teams install a consent banner, rerun a scanner, and still see analytics or advertising cookies on the first visit. That result usually reflects real behavior—not a broken scanner. Most CMPs display UI without controlling every tag path on the page.

Cookies appear when scripts execute before consent defaults apply, when GTM fires tags outside CMP triggers, when plugins inject parallel tracking, or when you test with an browser profile that already accepted cookies yesterday.

Understanding why scanners persistently detect cookies separates cosmetic compliance from enforced compliance—and points to fixes that actually move scores and reduce legal risk.

What it means

Race on load: GTM and gtag often download and execute while the CMP JavaScript is still initializing. The first pageview completes in hundreds of milliseconds—before the banner renders or consent defaults run.

Partial coverage: CMP integrates with GTM for some tags but misses hardcoded GA4 in the theme, affiliate pixels in a landing page builder, or chat widgets that set their own storage.

Consent Mode misconfiguration: denied defaults never set, or set after tags loaded, so Google cookies still appear. Scanners treat storage as evidence regardless of Consent Mode modeling intent.

Iframe and embed leakage: YouTube, Maps, social plugins, and ad iframes may set third-party cookies before interaction unless blocked or replaced with consent-gated placeholders.

Scanner session hygiene: crawlers use clean sessions, but humans retest in the same browser where Accept was clicked earlier—seeing cookies and blaming the scanner. Always verify in a fresh profile.

Server-set cookies: less common on marketing sites but relevant for SSO or A/B frameworks that set identifiers without client-side CMP hooks.

Why it matters

Believing the scanner is wrong delays fixes while public reports still list your domain. Authorities and partners trust automated behavior tests over internal checklists.

Each undeclared pre-consent cookie undermines consent validity for the whole visit. Legal teams cannot defend a banner when _ga exists before interaction.

Diagnosis teaches durable skills—script order, GTM triggers, network filtering—that transfer across every future tag marketing adds.

Common mistakes

  • Assuming banner presence equals blocking.
  • Testing only with Tag Assistant while network tab shows google-analytics requests.
  • Blocking first-party cookies but not third-party ad network domains.
  • Deferring CMP auto-blocking and never wiring manual GTM triggers.
  • Ignoring subdomain or regional variants with different templates.
  • Using consent for analytics in UI while GTM consent state stays granted.
  • Dismissing scanner as false positive without fresh-session reproduction.

Practical checklist

  1. Reproduce in private window; open network tab; filter google, facebook, hotjar.
  2. View cookies before any banner click; screenshot evidence.
  3. Ensure runtime-guard or consent default is first synchronous script in head.
  4. Audit GTM for All Pages tags without consent requirements.
  5. Search codebase and plugins for duplicate analytics snippets.
  6. Replace or block embeds that set cookies until marketing consent.
  7. Fix issues; wait for CDN cache; rescan with clean session.
  8. Compare GDPRChecker and third-party scanner results.

How GDPRChecker helps

GDPRChecker scanner reports pre-consent network requests with remediation hints—move guard above GTM, publish banner—targeting the root causes scanners detect rather than dismissing results.

Runtime protection blocks configured tracker domains until category consent is stored, closing gaps where CMP UI loads too late to prevent first-hit cookies.

Tracker-blocking debug tools in the dashboard show which rules matched or missed scripts on live pages, speeding diagnosis when scans still list unexpected cookies.

GDPRChecker tools for cookie scan diagnostics

FAQ

Are scanner results ever false positives?
Strictly necessary session cookies may be flagged for review but are often acceptable. Analytics and ad cookies are rarely false positives—verify with a clean session before claiming error.
Why does my browser show no cookies but the scanner finds some?
You may have already consented, use an ad blocker, or test a different URL than the scanner. Align URL, geography, and session state.
Does lazy-loading the CMP fix pre-consent cookies?
No. Lazy CMP delays make races worse. Load blocking or consent defaults before any marketing script.
Can CDN caching cause scanner issues?
Yes. Cached HTML without guard script or with old GTM order persists until purge. Scanners may hit edge caches—verify origin HTML.
How long after fixes should I rescan?
After deploy and cache invalidation—often minutes to hours. Run two scans to confirm consistency.

GDPRChecker guides are educational resources and do not constitute legal advice. Use them to understand technical and operational privacy requirements, and consult qualified counsel for legal interpretation.

Check Your Website in Under 60 Seconds

  • No signup required
  • GDPR-focused checks
  • Cookie banner detection
  • Privacy policy verification