Skip to main content
Vendor reference · Consent management

OneTrust Cookie Consent

A consent management platform. It shows a cookie banner and preference center and stores the visitor's choices for other tags to read.

OneTrust Cookie Consent at a glance

Company
OneTrust
Category
Consent management
Tag script
https://cdn.cookielaw.org/scripttemplates/otSDKStub.js
Sends data to
cdn.cookielaw.org
JavaScript object
OneTrust OptanonWrapper OnetrustActiveGroups
Cookies
2 attributed to OneTrust Cookie Consent in the TagPipes Vendor Registry

The OneTrust object and its methods are from OneTrust's developer documentation. The script path is from OneTrust's installation guidance and is commonly found on sites using it.

What OneTrust Cookie Consent is

OneTrust's cookie consent product shows a cookie banner and preference center and stores the visitor's choices by category in the OptanonConsent cookie. Other tags and tag managers can read those choices to decide whether to run.

Its JavaScript API is exposed on a OneTrust object, and the OptanonWrapper function runs each time the banner loads or a choice changes.

What marketers use it for

Marketing and privacy teams use it to present consent choices and pass them to tag managers and ad platforms, for example through Google consent mode. The OnetrustActiveGroups value is commonly used to decide which tags fire.

How to recognize OneTrust Cookie Consent on a site

  1. Open the site in Chrome, open DevTools (F12, or Cmd+Option+I on a Mac) and go to the Network tab.
  2. Reload the page and type cookielaw.org into the filter box. The banner script and its configuration load from cdn.cookielaw.org.
  3. In the Console tab, type OnetrustActiveGroups and press Enter. Returns the IDs of the cookie categories that are currently turned on.
  4. In Application, then Cookies, look for OptanonAlertBoxClosed, OptanonConsent. Some cookies only appear after a consent choice or a specific action.

What TagPipes observed

1.2%

of sites scanned had OneTrust Cookie Consent detected

TagPipes scanned 41,162 public websites between August 11, 2026 and September 13, 2026, loading up to three pages per site in a real browser as a first-time visitor, and matched what loaded against the TagPipes Vendor Registry. That is how TagPipes recognizes OneTrust Cookie Consent: by the hosts its tag loads from and the cookies attributed to it.

Observed TagPipes scan data, not a figure published by OneTrust. Websites of TagPipes customers are excluded and no individual site is named. Snapshot dated September 13, 2026.

Sources

What it is, what it is used for, and its scripts, hosts and JavaScript objects were checked against the vendor documentation above on . The detection rate is TagPipes scan data from September 13, 2026, not a value published by the vendor. Browse all vendors.

Know when a tag stops firing

TagPipes Auditor checks with real browsers that your marketing pixels fire with the right parameters, and alerts you when tracking breaks. Pulse checks how marketing tags behave against your consent banner.

TagPipes monitors, configures and reports. It does not determine legal compliance and does not provide legal advice. Output is informational and reflects observed state at the time of observation. Rawsoft's expertise is technology, not law; please confirm any regulatory interpretation with your own counsel.