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 to Backfill Consent Preferences to Segment Profiles Using Reverse ETL

Objective

This article explains how to backfill consent preferences from a data warehouse (such as BigQuery) into Segment Profiles using the native Consent Mapping feature in Reverse ETL. Customers often ask how to efficiently update consent traits and ensure consent states are attached to the context.consent object in Segment events.

 

Product

Segment

 

Environment

Segment Console

 

User Account Permission/Role(s) Required 

Workspace Owner or user with permission to configure Reverse ETL models and Consent Mappings.

 

Procedure 

  1. Prepare Your Data Model:

    • In your data warehouse (e.g., BigQuery), create columns for each consent category (such as has_analytics_consent, has_marketing_consent) with boolean values for each user.
  2. Access Reverse ETL in Segment:

    • Log in to the Segment Console.
    • Navigate to Connections > Sources > Reverse ETL.
  3. Select Your Source/Model:

    • Choose your BigQuery source and the model you want to use for backfilling consent.
  4. Configure Consent Mappings:

    • In the model settings, locate Consent settings or Consent Mappings.
    • Map each consent-related column from your warehouse to the corresponding Segment Consent Category.
  5. Set Up the Track Event:

    • Configure your Reverse ETL model to trigger a Track event named "Segment Consent Preference Updated".
  6. Automatic Consent Injection:

    • When the model runs, Segment automatically formats the extracted rows and injects the context.consent.categoryPreferences object into the event payload.
    • No manual payload manipulation or webhooks are required.
  7. Verify Delivery:

    • Check your destination or Profile Explorer to confirm that consent preferences are appearing in the context.consent object as expected.

 

Additional Information 

Have more questions? Submit a request
Powered by Zendesk