Introduction
A Consent Management Platform's most critical technical job is preventing tracking scripts from firing before the user has given consent. Get this wrong and every privacy policy, cookie banner, and preference modal on your site is purely cosmetic, data still flows to third parties regardless of what the user clicked.
There are fundamentally different philosophies about how to achieve this. Some CMPs try to automatically detect and block scripts on your behalf. Others require you to manually tag each script. And a growing number rely on consent signalling protocols that tell scripts to regulate themselves. Each approach has real trade-offs in accuracy, setup effort, and risk of breaking your site.
This guide compares four widely used CMPs, Osano, Cookiebot, OneTrust, and CookieBeam, to help you understand which script blocking method fits your site and team.
The Two Philosophies
CMPs use one or both of these fundamental approaches:
1. Hard blocking, The CMP prevents scripts from executing at all until consent is granted. This can be done automatically (the CMP intercepts and holds scripts) or manually (you change your script tags so the browser ignores them until the CMP activates them). Hard blocking is the most airtight approach: no code runs, no network requests fire, no cookies are set.
2. Consent signalling, The CMP lets scripts load normally but sends machine-readable signals (such as Google Consent Mode's consent command or the IAB TCF TC String) telling each script whether it has permission to track. The script itself decides how to behave based on the signal. This is less intrusive but relies on the vendor's code actually respecting the signal.
In practice, most sites need a combination of both: consent signalling for scripts that support it (primarily the Google ecosystem), and hard blocking for everything else.
The Four CMPs Compared
The table below provides a high-level comparison of how each CMP handles script blocking, detection, and compliance. The details for each CMP follow in the sections below.
CMP Script Blocking Comparison
| Feature | Osano | Cookiebot | OneTrust | CookieBeam |
|---|---|---|---|---|
| Blocking approach | Paste one line of JavaScript to your website's header for blocking unwanted scripts (product page); specific blocking mechanism not stated | Manual on Free; manual and automatic on Premium (pricing page) | No-code cookie blocking, tag manager integrations, or script re-writing stated on product page | The scanner records observed scripts and connections for classification. Runtime gates cover supported dynamic operations; hardcoded scripts requiring prior consent need inert type, category, and data-src markup to prevent early execution or requests. |
| Script detection method | AI-powered scanning to discover and classify cookies and scripts (product page); specific detection mechanism not stated | Monthly automated scans on Premium; no automated scans on Free (initial scan only) (pricing page). Automatic categorisation stated | Not stated on public cookie consent page | Headless browser scanner (Lambda/CDP) detects scripts, cookies, and network connections automatically. Multi-layer classification pipeline: URL/domain pattern matching, inline script content analysis (40+ inline script patterns), external cookie database, and source grouping. Client-side drift detection continuously monitors for new scripts and connections between scans. |
| Compliance modes | Opt-in and opt-out consent modes described on product page; specific enforcement mode names not stated | Manual on Free; manual and automatic on Premium (pricing page) | No-code cookie blocking and tag manager integrations stated on product page; specific enforcement mode details not stated | Observe (nothing blocked while the inventory builds), Adaptive (blocks classified scripts until consent, lets unknown scripts run) and Lockdown (also blocks all unclassified scripts, fail-closed). Separate toggle for connection-level blocking with its own unknown-connection policy. |
| Dynamic script handling | Script blocking stated on product page; specific dynamic injection handling not stated | Not stated on public pages | No-code cookie blocking stated; dynamic script handling details not stated on public page | Intercepts all dynamically injected scripts via three independent layers: document.createElement override catches script creation, Node.appendChild/insertBefore/replaceChild hooks catch DOM insertion, and a MutationObserver acts as a fallback catch-all. Also blocks Worker and SharedWorker constructors for third-party worker scripts. |
| Iframe blocking | Not stated on public cookie consent page | Not stated on public pages | Not stated on public cookie consent page | Yes, iframes are intercepted by the same runtime engine. Blocked iframes get Shield placeholders (visual overlays explaining why the content is blocked) that are replaced with the real content on consent. |
| Cookie auto-deletion | Not stated on public cookie consent page | Not stated on public pages | Not stated on public cookie consent page | Cleanup scripts via !category prefix for manual cookie deletion on withdrawal |
| Google Consent Mode V2 | Not stated on public pages | Google Consent Mode on all plans including Free (pricing page) | Supported; OneTrust states it has updated its integration to include Consent Mode v2 (per its Consent Mode integration blog post) | Native support with configurable regional defaults |
| TCF support | TCF is not stated on public pages | Cookiebot's pricing page lists IAB TCF 2.4 Framework on Premium; cookie-consent page footer says TCF v2.3 (IAB) | IAB TCF registered CMP (ID 28, per the IAB CMP list) | IAB TCF v2.4 (registered CMP, CMP ID 526; Professional+); GPP supported |
| GTM integration | Not stated on public pages | Google Tag Manager integration listed on pricing page | Tag manager integrations stated on product page | GTM bridge template for Consent Mode integration |
| Network connection blocking | Not stated on public pages | Not stated on public pages | Not stated on public pages | Yes, separate connection-level blocking engine wraps fetch(), XMLHttpRequest, navigator.sendBeacon(), WebSocket, and EventSource. Blocks unconsented third-party network requests even from scripts that are allowed to run, with category-aware gating per connection. |
| Drift detection | Not stated on public pages | Scans detect changes; continuous client-side monitoring is not stated on public pages | Periodic scans stated; continuous client-side monitoring is not stated on public pages | Continuous client-side drift detection for scripts, cookies, and network connections. The CDN script monitors for new tracking activity between scans and reports it. Unknown items auto-promote into the inventory after 5 reports from at least 3 distinct visitor networks. |
| Privacy signal enforcement | Product page mentions GPC-type signals; Osano support not stated | GPC signal supported on all plans (pricing page); DNT not stated on public pages | Not stated on public cookie consent page | GPC and DNT enforcement built into the blocking engine with per-region overrides. Supports US opt-out regime distinctions (CPRA 7025(b)(3) compliant): a privacy signal sets a default deny, but an explicit in-banner opt-in can override it. |
| Over-blocking risk | Auto-blocking carries a general over-blocking risk for essential services; specific behaviour not stated on public pages | Not stated on public pages | Not stated on public cookie consent page | Low, the script map is built from your own scan inventory (not a third-party block list), so the engine only blocks scripts you've reviewed and categorized. Essential services like reCAPTCHA and Stripe are classified as necessary by default and not blocked by default. Observe and Adaptive modes let you review unknown scripts before enforcing. |
| Setup effort | One-line JavaScript installation described on product page; specific ongoing effort not stated | Scanner and automatic blocking available on Premium; Free offers manual blocking only (pricing page) | Not stated on public cookie consent page | Low to medium. The scanner auto-discovers and classifies scripts, cookies, and connections. You review the inventory in the dashboard, adjust categories where needed, and publish. No HTML changes required for scanned scripts. |
Osano: Automatic Discovery and Blocking
Osano's product page describes opt-in consent (scripts are blocked until the user accepts) and opt-out consent (a notice is shown with an opt-out mechanism). It uses AI-powered scanning to discover and classify cookies and scripts, and its one-line JavaScript installation is designed for zero-config setup. The product page mentions GPC-type signals; Osano support for GPC beyond detection is not stated.
The main advantage of auto-blocking is convenience: you add one script tag and the CMP handles the rest. A general risk of URL-based auto-blocking is that essential services (such as reCAPTCHA, payment processors, or authentication) may be blocked if their URL patterns match tracker database entries. When over-blocking occurs, the fix is manual reclassification in the dashboard.
Specific technical details, including named enforcement modes beyond opt-in/opt-out, iframe blocking, localStorage blocking, MutationObserver use, and cookie deletion behaviour, are not described on Osano's public cookie consent page. Scanning frequency is also not stated.
Cookiebot (Usercentrics A/S)
Cookiebot, a trademark of Usercentrics A/S, combines automatic scanning with manual and automatic blocking modes.
The pricing page lists automated scans for Premium plans (monthly by default, daily for an additional fee); the free tier's scan-frequency row is blank, and the free tier is limited to 50 subpages on one domain. Free plans offer manual blocking; Premium plans add automatic blocking.
On the compliance side, Cookiebot lists Google Consent Mode on all plans including Free (the pricing page does not state a specific Consent Mode version). Cookiebot's pricing page lists IAB TCF 2.4 Framework on Premium; the cookie-consent page footer says TCF v2.3 (IAB). GPC is supported on all plans. Cookie auto-deletion and DNT are not stated on the public pages checked.
OneTrust
OneTrust's public cookie consent page describes no-code cookie blocking, tag manager integrations, auto-blocking to block trackers until explicit consent, and A/B testing for template variations, with support for more than 250 languages and geolocation rules for banners.
The product page states that regular scans detect cookies, tags, trackers, pixels, and beacons, and auto-populate your updated cookie list into your privacy or cookie policies, and update descriptions, vendor information, and lifespans. Specific scan schedules, page limits, enforcement mode names, script-tagging attributes, and localStorage detection are not described on that page.
OneTrust offers granular control with specific rules for different regions and consent models. For organizations managing dozens of domains across multiple jurisdictions, this level of control is valuable.
OneTrust is an IAB TCF registered CMP (ID 28) and states it has updated its integration to include Consent Mode v2 (per its Consent Mode integration blog post). GPC and cookie auto-deletion are not stated on the public cookie consent page; check with the vendor for current availability.
CookieBeam: Script and Connection Controls
CookieBeam records cookies, scripts, and network requests observed during scans. Review their purposes in the dashboard and publish the resulting classifications and rules. A scan is a snapshot of the pages visited; it cannot discover every behavior a site may perform.
Script blocking
The runtime uses the published script map and matching rules to check dynamically created scripts through browser API and DOM insertion hooks. A MutationObserver provides additional observation, but it cannot reliably prevent a browser from fetching or executing an ordinary script written directly in HTML.
For hardcoded scripts that require prior consent, keep them inert: use type="text/plain", set data-category to the intended category, and move an external URL from src to data-src. CookieBeam activates the managed script when the relevant category is allowed. Place the loader early, and test the actual page with consent denied and granted.
Connection blocking
Connection controls cover supported JavaScript transports: fetch(), XMLHttpRequest, sendBeacon, WebSocket, and EventSource. They can gate tracking bundled into an application, including a first-party endpoint with an explicit analytics or marketing classification. Same-site ownership alone does not make a reviewed tracking endpoint Necessary. Unclassified same-site requests have a compatibility allowance; explicit supported classifications are evaluated before it.
A blocked fetch receives a synthetic 204 response with an X-CookieBeam-Blocked header. The other transports use their own failure behavior. These API controls do not intercept every request a browser can make, such as all parser-created image or stylesheet loads.
Script blocking and connection blocking have separate settings. A persistent matching rule can classify both script and connection observations, while manual item overrides retain precedence. Bypass rules keep scanner evidence but exclude matched items from runtime blocking and the review queue.
Drift reporting and review
When drift reporting is enabled, the runtime can report newly observed cookies, scripts, and connections. Qualifying repeated findings can enter the inventory for review. Detection depends on which pages visitors load, the reporting settings, and what the browser runtime can observe; it is not a guarantee that every new tracker will be found.
Adaptive mode permits unknown scripts while the inventory is reviewed. Lockdown mode applies stronger blocking to eligible unknown scripts, subject to the runtime's compatibility allowances. Neither mode replaces inert markup for hardcoded scripts or a check of the site's actual consent behavior.
Consent integrations
CookieBeam provides Google Consent Mode integration and configurable regional settings. The GTM consent tag should run on Consent Initialization – All Pages, and each tracking tag needs appropriate consent settings. A consent signal is distinct from preventing every network request. Verify the browser's network and storage behavior after rejection, acceptance, and withdrawal.
1 <!-- Hardcoded external scripts use inert markup so the browser 2 cannot fetch or execute them before consent. --> 3 <script type="text/plain" data-category="analytics" 4 data-src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script> 5 6 <!-- Runtime interception supplements this pattern for scripts 7 created dynamically after CookieBeam has loaded. --> 8 9 <!-- Connection blocking (separate layer): --> 10 <!-- Even if a script runs, unconsented network requests 11 to third-party tracking endpoints are blocked: 12 fetch('https://analytics.example.com/collect') 13 -> returns Response(204, X-CookieBeam-Blocked: 1) --> 14 15 <!-- Inline scripts also require inert manual tagging --> 16 <script type="text/plain" data-category="analytics"> 17 // Inline code that should only run after consent 18 window.dataLayer = window.dataLayer || []; 19 </script> 20 21 <!-- Cleanup script: runs when user REVOKES consent --> 22 <script type="text/plain" data-category="!analytics"> 23 window['ga-disable-G-XXXXXXX'] = true; 24 </script>
Which Approach Should You Choose?
The right approach depends on your site's architecture, your team's technical capabilities, and which third-party scripts you use. Most sites benefit from a combination of methods.
Choosing Your Script Blocking Strategy
Use manual tag-based blocking if:
You have direct control over your HTML, you want precision over which scripts are blocked, and you want to avoid false positives that break essential site functionality like payments or CAPTCHA.
Use automatic blocking if:
You have many third-party scripts that you did not add yourself, your team is non-technical and cannot modify HTML, or you want a zero-configuration starting point and are willing to fix over-blocking issues as they arise.
Use Consent Mode signalling if:
Your tracking scripts are primarily from the Google ecosystem (GA4, Google Ads, Floodlight), they are loaded through Google Tag Manager, and you want to benefit from cookieless conversion modeling for users who decline consent.
Use a combination if:
You have Google tags that should use Consent Mode (loaded via GTM) plus non-Google scripts hardcoded in your HTML that need manual blocking (Facebook Pixel, Hotjar, TikTok, etc.). This is the most common real-world scenario.
The Industry Direction
The consent management industry is steadily moving toward Consent Mode signalling, letting scripts self-regulate based on consent state, rather than hard-blocking scripts from loading entirely.
Several forces are driving this shift:
- Google officially recommends Consent Mode V2 for all sites using Google tags, and has made it a requirement for personalised advertising in the EEA.
- Hard blocking breaks things. Automatic blocking CMPs routinely cause support tickets when essential services are inadvertently blocked. Consent Mode avoids this because scripts still load, they just operate in a restricted mode.
- Cookieless conversion modeling. With Consent Mode, Google tags can send cookieless pings (containing no personally identifiable information) even before consent. Google uses these pings for statistical conversion modeling, helping advertisers recover data that would be completely lost with hard blocking.
However, hard blocking remains essential for non-Google vendors that do not support Consent Mode or any equivalent signalling protocol. Facebook Pixel, TikTok Pixel, Hotjar, and dozens of other tools have no self-regulation mechanism, if the script loads, it tracks. For these scripts, the only GDPR-compliant option is to prevent them from executing entirely until consent is given.
Sources (as of November 2026): Osano Cookie Consent, Osano Cookie Consent Pricing, Cookiebot Pricing, Cookiebot Cookie Consent, OneTrust Cookie Consent, and OneTrust Consent Mode integration. Competitor claims checked against these pages; features not stated on a vendor's public pages are marked accordingly.






