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.
Free tool · CMP checker · OneTrust
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
Each item is something the scan records from the browser or reads from your published Tag Manager container.
The check recognises OneTrust by its script from cdn.cookielaw.org, the OneTrust and OptanonWrapper objects on the page and its OptanonConsent cookie.
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.
It records requests to ad and analytics vendors, and the tracking cookies set, before the visitor answers the banner.
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.
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.
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
What OneTrust documents about its Consent Mode setup, so you know what the check should find.
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.
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.
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
Use a private window so no earlier choice is stored, and open developer tools before the page loads.
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.
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.
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
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.
The page sent requests to an ad vendor before the visitor answered the banner. Check whether the banner holds that tag back.
Vendors sent requests, or set tracking cookies, after Reject was clicked. Treat this as the first item to fix.
A Google request after Reject carried a granted state, so Google would treat those visits as consented.
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.
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.
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.
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
Each one is a change to your site or your tag setup. Your team decides how to make it.
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.
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.
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.
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.
Vendor scripts added straight into the site code can skip the CMP. Move them into the container or into the CMP’s own blocking.
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
The limits of one homepage load, so you can read the result correctly.
Read more
Background reading for the same setup, with the steps behind each fix.
Other consent platforms
The check runs the same way on every platform. Each page covers how it finds and clicks that banner.
Every consent platform, on one page.
How the check tests a Cookiebot banner, how to refuse through Customize by hand, and how Cookiebot sets Consent Mode.
How the check tests a CookieYes banner, how to read getCkyConsent() by hand, and how CookieYes sets Consent Mode.
How the check tests a Usercentrics banner, how to read its consent details by hand, and how it sets Consent Mode.
How the check tests a Complianz banner on WordPress, how to ask Complianz by hand, and how it sets Consent Mode.
How the check tests a Didomi notice, how to read the user status by hand, and how Didomi sets Consent Mode.
How the check tests a Termly banner, what to watch after Decline, and how Termly sets Consent Mode.
How the check tests an Osano banner, how to read Osano.cm.getConsent() by hand, and how Osano sets Consent Mode.
How the check tests a CookieFirst banner, how to read CookieFirst.consent by hand, and how it sets Consent Mode.
Other free checkers
The other free checks run the same scan and list the gaps for their own topic first.
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.
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.
A Reject button should stop optional tracking. This check clicks Reject on your homepage in a separate pass and records what keeps running afterwards.
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.
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.
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.
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.
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.
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
Answers to the questions we hear most about this check.
Free Tracking Scan
Enter your website and we check your live site, then list every gap we find, starting with this check’s. No call needed.