Introduction
Segment is a customer data platform that helps you collect, clean, and activate your customer data.
This article will give an overview of the connection between MoEngage and Segment Personas, and list down step by step approach to enable the integration.
Scope
The MoEngage and Segment integration allows you to use Personas , Segment’s built-in audience builder, to create segments of users based on data you have already collected across various sources. These users will then be assigned user attributes or custom events that can be used to create MoEngage segments for use in MoEngage campaigns and flows.
Integration
library_add_check |
Prerequisites
|
Computed traits and audiences can be sent to MoEngage as custom attributes or custom events.
- Traits and audiences sent using the identify call will appear in MoEngage as Tracked Custom Attributes with value as True.
- Traits and audiences sent using the track call will appear in MoEngage as Tracked User Events.
You can choose your desired method (or choose to use both) when you connect the computed trait/audience to the MoEngage destination.
Sync time
The default integration for MoEngage <> Segment Personas connection is Real Time. But there are some filters that will disqualify the persona from syncing in real-time, including some time-based filters which restrict your audience’s size at the time of message send.
Step 1: Create a Segment computed trait / audience
Computed trait
- In Segment, navigate to the Computed Traits in Personas.
- Click New Computed Trait.
- Create your computed trait or audience. A lightning bolt in the top corner of the page will indicate if the computation updates in real-time.
- Next, select MoEngage as your destination.
- Preview by clicking Review & Create.
Note- By default, Segment queries all historical data to set the current value of the computed trait and audience. To omit this data, uncheck Historical Backfill.
- In the computed trait, adjust the connection settings based on how you would like your data sent to MoEngage.
Audience
- In Segment, navigate to the Audience in Personas.
- Click New
- Create your audience. A lightning bolt in the top corner of the page will indicate if the computation updates in real-time.
- Next, select MoEngage as your destination.
- Preview your audience by clicking Review & Create.
Note- By default, Segment queries all historical data to set the current value of the audience. To omit this data, uncheck Historical Backfill.
- In the computed trait or audience settings, adjust the connection settings based on how you would like your data sent to MoEngage.
Step 2: Segment users in MoEngage
To create a segment of these users, navigate to Segments >> Create Segment. Next, based on which call you used:
- Identify: Select User Property and select the specific attribute.
- Track: Select User Behaviour and select the specific event.