Skip to content

Free tool · CMP checker · OneTrust

OneTrust checker: does your OneTrust banner block tracking?

This check loads your homepage, finds the OneTrust banner and records what is sent before a choice. Where it recognises the banner’s Accept and Reject buttons, it clicks each in a separate pass and records what keeps running. A Reject it does not recognise is not clicked, and the result says so. The steps below show how to read what OneTrust stored.

What this checks

What the check looks at on one homepage load.

Each item is something the scan records from the browser or reads from your published Tag Manager container.

How it finds OneTrust

The check recognises OneTrust by its script from cdn.cookielaw.org, the OneTrust and OptanonWrapper objects on the page and its OptanonConsent cookie.

How it clicks the OneTrust banner

It clicks Accept All for the Accept pass, and Reject All for the Reject pass when it recognises it. Some regional banners only offer OK and a link to the preference centre, where the check may not reach a refusal. When it does not, the result says Reject was not tested, so test that route by hand.

What fires before a choice

It records requests to ad and analytics vendors, and the tracking cookies set, before the visitor answers the banner.

Whether Reject stops tracking

When the check recognises a Reject or Deny button on the banner, a separate pass clicks it and records the vendor requests, new tracking cookies and Google consent signals that keep running afterwards. A relabelled Reject, or one behind a settings screen, may not be reached; when it is not, the result says Reject was not tested.

Whether Accept updates the signal

After Accept, the Google requests the page sends should carry the new consent state. The check reports when it found no consent update and none of those requests carries a granted state. Tag Assistant confirms what was sent.

Consent Mode v2 signals

It reads the consent signals in the Google requests it sees, including ad user data and ad personalization. It flags a first Google request with no consent state when later ones have one, which means the default came too late. Tag Assistant shows all four states for a full check.

Google Consent Mode

How OneTrust connects to Consent Mode.

What OneTrust documents about its Consent Mode setup, so you know what the check should find.

Turn it on per geolocation rule

OneTrust’s Consent Mode setting sits in each geolocation rule and takes effect when you publish. Its docs say the v2 parameters need script version 202311.1.0 or later.

Order matters

OneTrust’s guide sets the defaults first, then Tag Manager or the Google tag, then the OneTrust script, and says the order of that code is vital. In Tag Manager, the OneTrust CMP template on Consent Initialization does the same job.

Groups map to signals

By default C0002 is Performance and C0004 is Targeting. Performance maps to analytics storage, and Targeting to ad storage, ad user data and ad personalization. Each mapping can be edited per rule, and group IDs can be renamed.

Check it yourself

How to test OneTrust by hand.

Use a private window so no earlier choice is stored, and open developer tools before the page loads.

01

Read the active groups in the console

Load the page, then type OnetrustActiveGroups in the browser console. It lists the group IDs that are switched on. After Reject All it should list only the groups that are always active.

02

Check the OptanonConsent cookie

In Application, then Cookies, open OptanonConsent and find groups. Each group reads 1 for on and 0 for off. After Reject All, the analytics and advertising groups should read 0.

03

Read what Google was told

In the Network tab, open a request to google-analytics.com or a Google Ads address and find the gcs parameter. G100 means ad and analytics storage were both denied, G111 means both were granted. In basic Consent Mode, Google tags send nothing until consent, so no Google request after Reject is the expected result. Tag Assistant’s Consent tab shows all four signals.

What the results mean

How to read a result.

Each result says what the check saw. Some are information, and some are gaps to fix. The gaps from this check are listed first, then any other gaps the scan found.

Ad data sent before a choice

The page sent requests to an ad vendor before the visitor answered the banner. Check whether the banner holds that tag back.

Tracking still runs after Reject

Vendors sent requests, or set tracking cookies, after Reject was clicked. Treat this as the first item to fix.

Google is told consent was granted after Reject

A Google request after Reject carried a granted state, so Google would treat those visits as consented.

Clicking Accept doesn’t update Google Consent Mode

Accept was clicked, but the Google requests that followed still carried the default state and the check found no consent update. Confirm in Tag Assistant.

Google requests lack Consent Mode signals

The site shows a consent banner, but the Google requests on this load carried no Consent Mode signals. Either the banner and Google’s tags are not connected, or a regional rule leaves the signals out where the scan ran, so check which rule applies.

We didn’t test the banner’s Reject button

Accept was clicked, but the check could not click a Reject or Deny button, either because the banner’s first screen has none or because the click failed. A result with no Reject findings says nothing about Reject, so refuse by hand with the steps above.

We couldn’t click the banner’s Accept or Reject button

The result for that pass is unknown. This is not a pass. Test the banner by hand in a private window.

How to fix it

Common fixes for what this check reports.

Each one is a change to your site or your tag setup. Your team decides how to make it.

  • Check the storage mapping

    OneTrust’s docs suggest reading OneTrust.GetDomainData().GoogleConsent in the console to see the mapping the live script uses, then republishing if it is wrong.

  • Make tags wait for the right group

    A tag that needs consent should wait for it: a trigger that checks OnetrustActiveGroups for the granted group, or Additional Consent Checks in Tag Manager. A tag with neither runs whatever the visitor chose.

  • Load the CMP before any tag

    The banner’s script, or its Tag Manager template, has to set the consent default before the first tag fires. Put it first in the page head or at the top of the container.

  • Check how each tag waits for consent

    A tag that needs consent should wait for it, through its trigger (such as your CMP’s consent event) or a consent setting in Google Tag Manager. Add a consent check where a tag has neither.

  • Bring pasted scripts under the banner

    Vendor scripts added straight into the site code can skip the CMP. Move them into the container or into the CMP’s own blocking.

  • Turn on Consent Mode in the CMP

    Most CMPs can send the Consent Mode default and updates for you, including ad user data and ad personalization. Check that the setting is on and covers all four signals.

Limits

What this check can’t see.

The limits of one homepage load, so you can read the result correctly.

  • One homepage load on desktop, from one region. A CMP can show a different banner, or none, in another country.
  • Banners inside a cross-site frame, and some banners built into a shadow root, can be detected but not clicked. The check says when it could not operate the banner.
  • It reads the requests the browser sends. It cannot see server-side tags or what a vendor does with the data.
  • It does not review your banner wording, your cookie list or your privacy notice, and it is not a legal review.

Read more

Guides on the setup this check covers.

Background reading for the same setup, with the steps behind each fix.

Other free checkers

Check the rest of your tracking.

The other free checks run the same scan and list the gaps for their own topic first.

Consent Mode v2 checker

Consent Mode tells Google tags what a visitor agreed to. This check reads the consent signals your homepage sends and flags setups that leave out the v2 settings or set the default too late.

Cookie consent checker

Many sites load ad and analytics tags as soon as the page opens. This check loads your homepage once and records what fires before any choice is made on the banner.

Cookie banner reject test

A Reject button should stop optional tracking. This check clicks Reject on your homepage in a separate pass and records what keeps running afterwards.

Meta Pixel checker

A Meta Pixel that loads twice, or sends the same page view twice, can inflate the numbers Meta reports. This check counts what your homepage sends to Meta and shows where the Pixel is set up more than once.

Google Ads conversion checker

A Google Ads conversion only counts if a tag sends it to Ads. This check reads how your conversions are set up in your published Tag Manager container and whether they are sent to Google Ads.

GA4 checker

Enter any website and this check loads its homepage in a browser, records what is sent to Google Analytics 4, and flags more than one measurement ID, repeated page views and retired Universal Analytics tags. It needs no access to your GA4 account.

Personal data tracking checker

Ad and analytics tags sometimes send personal details inside page addresses or request data. This check looks for categories, such as an email field, and never stores the values. It is built with healthcare and banking sites in mind, but any site can run it.

Google Tag Manager checker

This check reads the published Tag Manager container your homepage loads. It looks at how the container is set up, not only at what reaches the browser.

Lead form attribution checker

When a visitor clicks an ad and fills in a form, the campaign details have to survive the trip. This check follows links to your lead pages and looks for the fields that carry them.

FAQ

OneTrust checker: common questions.

Answers to the questions we hear most about this check.

Is this checker free?
Yes. Enter your website and the scan loads your live site and reports what it finds. You see the verdict and how many gaps it found right away; enter a work email to see each gap and what it means.
Why is there no Reject result for my OneTrust banner?
Some regional banners only offer OK and a link to the preference centre, where the check may not reach a refusal. The result then says Reject was not tested, so refuse there by hand and read the consent groups, as in the steps above.
Does OneTrust support Google Consent Mode v2?
Yes, from script version 202311.1.0. It is turned on per geolocation rule and published.

Free Tracking Scan

Find your tracking gaps in about 10 seconds.

Enter your website and we check your live site, then list every gap we find, starting with this check’s. No call needed.