SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How Do You Add a Consent Object to Events in Segment Spec?

Question

How to add consent object to your events in Segment? 

 

Product

Twilio Segment

 

Environment

Segment Console

 

Answer

It's necessary for every event from all of your sources to include the end-user preferences that are captured by your Consent Management Platform in the form of a consent object. 

The consent object is a JSON object nestled within the context object with the following format:

{
"context": {
  "consent": {
    "categoryPreferences": {
        "Advertising": true,
        "Analytics": false,
        "Functional": true,
        "DataSharing": false
      }
    }
  }
}

 

If you're using Segment’s OneTrust wrapper, then the consent object will be automatically added to your events but you can also include it manually in case you are using a different management platform. 
 

If events reach the Source Debugger but not a destination, inspect event payloads for context.consent.categoryPreferences and compare the values with the destination’s mapped categories. A category set to false blocks delivery to its mapped destinations. Check Delivery Overview for “Filtered by end user consent,” and correct the frontend consent values to reflect the user’s actual preferences.

 

Additional Information 

Know more about fixing conflicts between your consent object and your integration object and between your Consent Management Platform and the consent categories you configured in the Segment app. 

Have more questions? Submit a request
Powered by Zendesk