OneTrust Cookie Consent

Platform

Cookie banner and consent platform with a browser JavaScript API

Price
Contact sales for pricing
Access
OneTrust tenant and domain script

About

OneTrust Web CMP publishes cookie banners and a preference center. Its browser script exposes consent-change callbacks. With logging enabled, it records visitor choices for receipt lookup. Set up and publish a domain script in a OneTrust tenant before using the API.

What you can do with it

  • Show a cookie banner and let visitors choose consent categories
  • Open the preference center from a custom privacy settings button
  • Log each visitor's cookie consent choices for later receipt lookup

Get started

  1. Configure and publish a Web CMP domain script in OneTrust
  2. Add the published script to your site's head using its domain script ID
  3. Use OneTrust.OnConsentChanged to react when preferences change

Example

<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
        data-domain-script="YOUR_DOMAIN_SCRIPT_ID"></script>
<script>
  function OptanonWrapper() {
    OneTrust.OnConsentChanged(function () {
      console.log(window.OnetrustActiveGroups);
    });
  }
</script>

Details

Hosting
Hosted service
Available in
Worldwide
MCP server
None

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .