Search documentation...

K
ChangelogBook a demoSign up

Hightouch Events + OneTrust

Hightouch Events offers a pre-built integration for managing user consent with OneTrust.

Prerequisites

Make sure to setup your consent categories in OneTrust before integrating with Hightouch Events.

The integration expects the OneTrust Banner SDK to be available in order interact with OneTrust. This library derives the group IDs that are active for the current user from the window.OneTrustActiveGroups object provided by the OneTrust SDK (more info).

Installation

The Hightouch Events + OneTrust integration is available via NPM. It can also be installed using a <script> tag.

npm install @ht-sdks/events-sdk-js-consent-wrapper-onetrust
import { HtEventsBrowser } from '@ht-sdks/events-sdk-js-browser'
import { withOneTrust } from '@ht-sdks/events-sdk-js-consent-wrapper-onetrust'

export const htevents = new HtEventsBrowser()

withOneTrust(htevents).load({ writeKey: 'WRITE_KEY' })

API

For a full list of features and options, see the README.

Ready to get started?

Jump right in or a book a demo. Your first destination is always free.

Book a demoSign upBook a demo

Need help?

Our team is relentlessly focused on your success. Don't hesitate to reach out!

Feature requests?

We'd love to hear your suggestions for integrations and other features.

Last updated: Mar 28, 2024

On this page

PrerequisitesInstallationAPI

Was this page helpful?