At a larger organisation, the OneTrust banner is usually set up properly: legal signed off the wording, the categories were configured, the script went live. Then the site keeps changing. Marketing adds a pixel through Google Tag Manager, product embeds a chat widget, an agency drops a heatmap snippet into a landing page. The banner looks exactly the same as before.
So whether OneTrust still stops trackers before consent is not a question you settle once. The tool works. What drifts is the integration, and the only way to know is to measure it.
What we measured
In our scan of 10,944 small and mid-sized business websites in nine EU countries (31 October to 1 November 2026), 4,101 sites showed a consent banner and 71 of them used OneTrust. That is a small sample, and OneTrust is mostly used by larger organisations than the ones we scanned, so read the OneTrust figures as an indication, not a benchmark. A real browser opened each site as a first-time visitor, clicked nothing and recorded every request; where there was a first-layer Reject button, we clicked it and measured again.
Of the 71 OneTrust sites:
- 47.9% (34) loaded trackers or tracking cookies before the visitor had made any choice.
- 43.7% (31) fired an advertising pixel before consent. Google Ads was the most common (25 sites), then Google Analytics / Tag Manager (13) and the Meta Pixel (11).
- 18.3% (13) loaded Google Analytics or Google Tag Manager before consent.
- 39.4% (28) loaded Google Fonts straight from Google's servers.
- 23 sites had a first-layer Reject button; on 43.5% of those (10), data still went to third parties after Reject.
- 54.9% (39) used Google Consent Mode, and none of them sent "granted" before a click.
For comparison, across all 4,101 sites with a banner: 59.8% (2,453) tracked before consent, 49.5% (2,030) fired an ad pixel, 67.0% (2,747) loaded Google Fonts from Google, and of the 1,881 with a first-layer Reject button, 43.6% (821) kept sending data after Reject.
The sample is from Central and Eastern Europe, not the UK, but the causes are technical and the same in London. The ICO has been checking the UK's most visited websites on exactly these points: whether advertising cookies are set before a choice is made, and whether rejecting is as easy as accepting.
The 6 most common causes
1. A new tag that the last cookie scan never saw
OneTrust's Cookie Auto-Blocking works from your scan results and cookie categorisations. According to OneTrust's documentation, it only controls cookies in a non-essential category that have an accurate source URL, and it matches exact URLs, not patterns. Anything categorised as Unknown is not blocked. So a pixel a team added after the last scan, or a script whose URL changes, can run freely until someone rescans and categorises it. On sites where many teams publish tags, schedule the scan and review new findings, rather than treating categorisation as a one-off project.
2. Auto-blocking loaded too late, or through a tag manager
OneTrust's documentation is strict here: the OtAutoBlock script must be the first script in the <head>, run synchronously, and be added directly to the page, not through a tag manager or injector. Otherwise tags can fire before it is ready. Cookies set by inline scripts (e.g. document.cookie) are not supported, and only dynamically created iframes are auto-blocked; iframes written into the HTML need manual blocking. OneTrust also says never to deploy auto-blocking without testing it first.
3. Manual blocking: the snippet nobody tagged
For scripts you control, OneTrust recommends client-side type rewriting: change the script to type="text/plain" and add a category class, e.g. class="optanon-category-C0002", where the ID is the cookie group ID (in OneTrust's examples C0002 is Performance and C0004 is Targeting). After consent, OneTrust switches it back so the script runs. Two traps for teams that copy snippets around:
- A script pasted without the attribute and class is simply not blocked.
- If you combine categories (
optanon-category-C0002-C0004), the script runs only when the visitor consents to all of them.
For iframes such as YouTube, rename src to data-src and add the class.
4. Something filed as Strictly Necessary
In OneTrust, Strictly Necessary cookies are always active, whatever the consent model, and visitors can't switch them off. A marketing or analytics tag filed there, often to "make it work" during a launch, runs for everyone. Check the category list with fresh eyes, especially after migrations or when a vendor's cookies were bulk-assigned.
5. Google Tag Manager and Consent Mode v2, set up twice
OneTrust documents two ways to set Consent Mode defaults: the OneTrust CMP template from the GTM Community Template Gallery (triggered on Consent Initialization – All Pages), or gtag('consent', 'default', …) on the page, which must run before Google tags and OneTrust load. By default, OneTrust maps Performance to analytics_storage and Targeting to ad_storage, ad_user_data and ad_personalization. In large setups, problems come from mixing both methods, running another banner script alongside the template (OneTrust warns of unexpected behaviour), or GTM tags on "All Pages" with no consent condition. Google has required Consent Mode v2 for EEA and UK users since March 2024. Our Consent Mode checker shows the signals as a first-time visitor sees them.
6. Geolocation rules that don't match what UK visitors get
OneTrust sets the consent model per geolocation rule, and every rule group has a default rule that also applies when the visitor's location is unknown. OneTrust's documentation says the Consent Mode mapping should match your Geolocation Rule Group, and that a rule with the Notice Only model sets all categories to always active. Global organisations often have a strict rule for Europe and a looser default elsewhere. If the UK isn't in the strict rule, UK visitors get the looser behaviour. Test from the region you care about.
Google Fonts are a separate matter: they usually load through CSS, so script blocking doesn't touch them, and each request to fonts.googleapis.com sends the visitor's IP address to Google. Hosting them locally solves it.
How to check OneTrust in 2 minutes
Yourself, in the browser:
- Open the site in a private window, so no
OptanonConsentcookie from an earlier visit is stored. - Open the developer tools (F12), go to the Network tab and reload without touching the banner.
- Filter for
google-analytics,googletagmanager,doubleclick,facebook,clarity,fonts.googleapisandtiktok. - Any request that appears now went out before consent.
- Click Reject All, reload, and check again. Anything still there is firing despite the rejection.
Or automatically: the free Bannerproof cookie check opens your site as a first-time visitor from the EU, tests before consent and after Reject, reads the Consent Mode signals and lists every request as evidence. We test the result, not the tool, so it works with OneTrust as with any other banner, and it's a quick recheck after another team ships something new.
OneTrust checklist
- Cookie scans scheduled; new findings categorised, nothing tracking left as Unknown
OtAutoBlockfirst in the<head>, synchronous, not loaded through GTM- Scripts you control:
type="text/plain"plus the rightoptanon-category-class; HTML iframes viadata-src - No marketing or analytics tags under Strictly Necessary
- Consent Mode v2: one method only (OneTrust CMP template or on-page defaults), all signals "denied" by default
- Every GTM tracking tag has a consent condition
- Geolocation rules: the UK covered by the intended rule, default rule checked, mapping consistent
- Google Fonts hosted locally
- After every release, campaign launch or new vendor: test again
Frequently asked questions
Is OneTrust GDPR and PECR compliant? OneTrust is a tool. Whether your site meets UK GDPR and PECR depends on how it is set up and whether anything actually loads before consent. That can be measured. It is not a substitute for legal advice on your situation.
Should we use auto-blocking or manual blocking? OneTrust recommends manual type rewriting wherever possible, and manual blocking if you earn revenue from targeted ads. Auto-blocking helps cover what teams add without telling you, but only for what the scan has found and categorised. Many large sites use both.
What is the OptanonConsent cookie?
It is where OneTrust stores the visitor's choices. Delete it, or use a private window, to see the site as a first-time visitor.
Check your OneTrust setup
Run the free cookie check. In about two minutes you'll see whether anything loads before consent or after Reject, and exactly what.
Methodology: Bannerproof's own scan, 31 October to 1 November 2026, of 10,944 successfully loaded small and mid-sized business websites in Czechia, Romania, Hungary, Slovakia, Croatia, Slovenia, Lithuania, Latvia and Bulgaria; 4,101 showed a banner, 71 of them used OneTrust (a small sample). Server-side tracking is not visible to a browser. This is not legal advice, and we do not name individual websites. OneTrust and CookiePro are trademarks of OneTrust LLC; Bannerproof is not affiliated with OneTrust LLC.

