Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Optimizely Data Platform Destination


Destination Info
  • Accepts Page, Alias, Group, Identify and Track calls.
  • Refer to it as Optimizely Data Platform in the Integrations object
  • This integration is partner owned. Please reach out to the partner's support for any issues.
  • This destination is in Beta

Sync your Twilio Segment customer data to Optimizely Data Platform (ODP) for real-time segmentation, reporting, and to enrich customer profiles in ODP.

After you set up your Optimizely Data Platform destination, Segment syncs your customer data to ODP in near real-time.

This destination is maintained by Optimizely. For any issues with the destination, contact Optimizely Support team.


Prerequisites

prerequisites page anchor

  1. In ODP, open the App Directory.
  2. Select the Twilio Segment app.
  3. Click Install App.
  4. On the Settings tab, click Generate and copy the displayed token.
  5. Open the Segment app and navigate to the Destination catalog page(link takes you to an external page).
  6. Search for and select Optimizely Data Platform.
  7. Click Add destination and select a source to connect to the Optimizely Data Platform destination.
  8. Enter a name for your destination and click Create destination.
  9. On the destination's Settings tab, enter the following information:
    • Api Key – Paste your ODP API token from step 4
    • Region – Select your region
    • Enable Destination – Toggle to On
  10. Click Save Changes.

Configure event mappings

configure-event-mappings page anchor

After you enable the Optimizely Data Platform destination, you must map the events that you want Twilio Segment to send to ODP.

In Twilio Segment, on the Mappings tab of the Optimizely Data Platform destination, Segment displays a list of pre-built mappings that you can enable or disable. For example, if you enabled the Email Opened mapping, each email opened event Segment ingested after you enabled the mapping would sync to ODP.

If you want to map an event that is not listed:

  1. Click New Mapping > Custom Event.
  2. (Optional): Enter a descriptive name for the event.
  3. Select the event that you want to send to ODP.
  4. Click Load Test Event from Source. This generates the raw data for the selected event and populates your mappings. The ID and timestamp field mappings auto-populate, but you can edit them as desired.
  5. Select the event type and, optionally, the event action. For example, if you are configuring a custom event to track button clicks, select button for the event type and click for the event action.
(information)

Required fields

In ODP, each event requires an ID, timestamp, and event type. The event action is optional. See ODP's Events(link takes you to an external page) documentation for more details.

  1. (Optional): To ensure the custom event is configured correctly, click Send test event to destination.
  2. Click Save.
  3. Toggle your custom event's status to Enabled.

The event data sends from Twilio Segment to ODP starting after you enable the mapping in the destination. It does not retroactively send events that occurred prior to configuring the integration and enabling the mappings.


Property nameTypeRequiredDescription
Api Keypassword
required

Api Key used for Optimizely API authorization when sending events


Regionselect
required

Optimizely Region to sync data to. Default is US


Optimizely Data Platform has the following presets

Preset NameTriggerDefault Action
Email Link ClickedEvent type = "track" and event = "Email Link Clicked"Email Event
Email OpenedEvent type = "track" and event = "Email Opened"Email Event
Product AddedEvent type = "track" and event = "Product Added"Ecommerce Event
Order CompletedEvent type = "track" and event = "Order Completed"Ecommerce Event
Email SentEvent type = "track" and event = "Email Sent"Email Event
Product RemovedEvent type = "track" and event = "Product Removed"Ecommerce Event
Email Marked as SpamEvent type = "track" and event = "Email Marked as Spam"Email Event
Product ViewedEvent type = "track" and event = "Product Viewed"Ecommerce Event
UnsubscribedEvent type = "track" and event = "Unsubscribed"Email Event

Build your own Mappings. Combine supported triggers with the following Optimizely Data Platform-supported actions:

(information)

Mapping limits per destination

Individual destination instances have support a maximum of 50 mappings.

Upsert Contact

upsert-contact page anchor

Send user profile data from Segment to Optimizely Data Platform. Creates or updates a user profile in Optimzely Data Platform

Upsert Contact is a Cloud action. The default Trigger is type = "identify"

Property nameTypeRequiredDescription
User identifiersOBJECT
required

User identifier details to send to Optimizely.


Company NameSTRING

Optional

The name of the company associated with the Contact


TitleSTRING

Optional

The Contact's Title


NameSTRING

Optional

Contact's full name


First NameSTRING

Optional

Contact's first name


Last NameSTRING

Optional

Contact's last name


GenderSTRING

Optional

Contact's gender


BirthdayDATETIME

Optional

Contact's birthday. The format should be datetime


PhoneSTRING

Optional

Contact's phone number.


AgeNUMBER

Optional

Contact's age.


AddressOBJECT

Optional

Address details object


avatarSTRING

Optional

The user's avatar image URL.


Addition User TraitsOBJECT

Optional

Additional user profile details

Send email related Segment track() events to Optimizely Data Platform

Email Event is a Cloud action.

Property nameTypeRequiredDescription
User identifiersOBJECT
required

User identifier details to send to Optimizely.


Optimizely Event ActionSTRING
required

The name of the Optimizely Event Action.


Campaign NameSTRING
required

The campaign name


Campaign IDSTRING

Optional

The campaign unique identifier


Link URLSTRING

Optional

URL of the link which was clicked


TimestampSTRING
required

Event timestamp

Send Segment Ecommerce track() events to Optimizely Data Platform

Ecommerce Event is a Cloud action.

Property nameTypeRequiredDescription
User identifiersOBJECT
required

User identifier details to send to Optimizely.


Optimizely Event TypeSTRING

Optional

The Optimizely Event Type. Defaults to "custom" if not provided


Optimizely Event ActionSTRING
required

The name of the Optimizely Event Action.


Product detailsOBJECT

Optional

Product details to associate with the event. Product ID field is required for each product


Order IDSTRING

Optional

Identifier for the order


Order TotalSTRING

Optional

Total value of the order


TimestampSTRING
required

Event timestamp

Send Segment custom track() events to Optimizely Data Platform

Custom Event is a Cloud action.

Property nameTypeRequiredDescription
User identifiersOBJECT
required

User identifier details to send to Optimizely.


Optimizely Event TypeSTRING

Optional

The Optimizely Event Type. Defaults to "custom" if not provided


Optimizely Event ActionSTRING

Optional

The name of the Optimizely Event Action.


Event PropertiesOBJECT

Optional

Additional information to send with your custom event


TimestampSTRING
required

Event timestamp


You can send computed traits and audiences generated using Engage to this destination as a user property. To learn more about Engage, schedule a demo(link takes you to an external page).

For user-property destinations, an identify call is sent to the destination for each user being added and removed. The property name is the snake_cased version of the audience name, with a true/false value to indicate membership. For example, when a user first completes an order in the last 30 days, Engage sends an Identify call with the property order_completed_last_30days: true. When the user no longer satisfies this condition (for example, it's been more than 30 days since their last order), Engage sets that value to false.

When you first create an audience, Engage sends an Identify call for every user in that audience. Later audience syncs only send updates for users whose membership has changed since the last sync.

(information)

Real-time to batch destination sync frequency

Real-time audience syncs to Optimizely Data Platform may take six or more hours for the initial sync to complete. Upon completion, a sync frequency of two to three hours is expected.


Segment lets you change these destination settings from the Segment app without having to touch any code.

Property nameTypeRequiredDescription
Api Keypassword
required

Api Key used for Optimizely API authorization when sending events


Regionselect
required

Optimizely Region to sync data to. Default is US

Default: US