OneTrust Source

Good to know: Event Cloud source

The OneTrust Source is an event source. This means that it sends data as events, which are behaviors or occurrences tied to a user and a point in time. Data from these sources can be loaded into your Segment warehouses, and also sent to Segment streaming destinations. Learn more about cloud sources.

OneTrust makes it easy for you to capture, centralize, govern, and sync consented first party data while keeping trust & transparency at the forefront of all consumer interactions. The OneTrust Integration provides data to Segment’s CDP and allows you to view & activate consented data in the appropriate way.

This is an Event Cloud Source which can not only export data into your Segment warehouse, but they can also federate the exported data into your other enabled Segment Destinations.

This source is maintained by OneTrust. For any issues with the source, contact their support team.

Getting Started

  1. From your workspace’s Sources catalog page click Add Source.

  2. Search for “OneTrust” in the Sources Catalog, select MoEOneTrustngage, and click Add Source.

  3. On the next screen, give the Source a nickname configure any other settings.
    • The nickname is used as a label in the Segment app, and Segment creates a related schema name in your warehouse. The nickname can be anything, but Segment recommends using something that reflects the source itself and distinguishes amongst your environments (like OneTrust_Prod, OneTrust_Staging, or OneTrust_Dev).
  4. Copy the Write key from the Segment UI and log in to your OneTrust account - navigate to Settings > Integrations > Segment Integration and paste the key after encoding it.


OneTrust uses Segment’s stream Source component to send Segment event data. It uses a server-side method(s) to send data to Segment. These events are then available in any destination that accepts server-side events and are available in a schema in your data warehouse, so you can query using SQL.

OneTrust allows you to configure the userId from various sources from within the OneTrust platform.


Use the OneTrust integration to define the events to be sent to Segment These events can be tailored to align with your existing process or particular use case.

Event Properties

The OneTrust integration allows you to define event properties within the following constraints:

  • Use Track events to define the properties object
  • Use Identify events to define the traits object

Adding Destinations

Now that your Source is set up, you can connect it with Destinations.

Log into your downstream tools and verify that events and properties appear the way you expect. If events and properties don’t appear as you expect them to, check the Event Delivery tool, and refer to the Destination docs for each tool for troubleshooting.

If there are any issues with how the events are arriving to Segment, contact the OneTrust support team.

This page was last modified: 01 Mar 2023

Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
Create free account