CMP Tag Leakage

CMP installed but tags still firing?

Troubleshooting for OneTrust, Cookiebot, CookieYes, TrustArc, Didomi, Osano, Usercentrics, and custom CMP setups where tags still run before consent or after reject.

Implementation context

Start from observable behavior, then repair the consent contract.

A CMP can collect a valid preference while the browser still runs tags that do not respect that preference.

The failure usually sits between CMP categories, callbacks, consent cookies, GTM triggers, auto-blocking, hard-coded scripts, embedded apps, and regional templates.

ModeConsent tests the runtime behavior and builds the map that shows which tags are governed, which vendors are bypassing the CMP, and where the repair belongs.

What breaks

The failure pattern usually starts before the dashboard can see it.

01

Callbacks lose the race

All Pages, DOM Ready, pageview events, and vendor loaders can run before the CMP creates usable consent state.

02

Categories are not wired to execution

Performance, analytics, targeting, and functional categories must control GTM triggers, Consent Mode updates, and script loaders.

03

Auto-blocking does not cover everything

Custom HTML, app embeds, tag templates, and scripts inserted after page load can bypass CMP scanning.

04

Regional templates drift

A correct EU template can coexist with weaker behavior on US, subdomain, language, or fallback routes.

How ModeConsent fixes it

Repair the consent system where visitors and tags actually interact.

  1. 01

    Compare preference state to tag behavior

    Capture CMP state, GTM events, Consent Mode signals, storage writes, and requests under each visitor choice.

  2. 02

    Map categories to vendors

    Tie each analytics, advertising, chat, heatmap, conversion, and session replay tag to a CMP category and control.

  3. 03

    Repair race conditions

    Move defaults, callbacks, triggers, and blocking rules earlier than the tags they govern.

  4. 04

    Retest high-value flows

    Validate product, checkout, lead form, campaign, and landing-page templates after repair.

Request audit

Need evidence for the live consent stack?
Start with browser behavior.

Request Compliance Audit