Running promotions for Segment audiences
The Personas Audiences feature in Segment enables you to group users or accounts based on event behavior and traits that Segment tracks.
In Segment, you can build an audience from a core tracking event and synchronize it with a destination. By configuring Talon.One as a destination, you can reference the audience in your Talon.One campaigns.
For example, in Segment, you can group all users who abandoned their cart before checkout into an audience. Then, in Talon.One, you can create a campaign to offer them a convincing discount by issuing a coupon code for their checkout.
Let's configure Talon.One as a destination and define an audience in Segment.
Prerequisites
- You are an Admin user in Talon.One and Segment.
- In Segment, you configured a data source. Segment requires this data source to track events.
- In Talon.One, you created a Segment-specific API key.
Configuring Talon.One as a Segment destination
Segment tracks event data coming from the data source and passes it to a valid destination. You can configure Talon.One as a destination.
To configure Talon.One as a Segment destination:
- In the Segment dashboard, click Connections > Destinations > Add Destination.
- On the Catalog page, select the Actions-enabled destination named Talon.One (Actions).
- On the catalog summary page, review the selected destination and click Configure.
- Select the data source you configured as a prerequisite and click Confirm Source.
- On the Basic Settings page, enter the following information:
- In Name, type the name of your destination.
- In API Key, type the API key you created as a prerequisite.
- In Deployment, type the base URL of your Talon.One deployment.
- Select Enable Destination and click Save Changes.
Defining the Segment audience
Using Segment's Audience Builder, define the audience based on your business requirements.
In this tutorial, the event of users abandoning their cart
before checking out is marked by Product Removed
.
To define the Segment audience:
- In the Segment dashboard, click Personas > Audiences > Create > Audience.
- On the Configure and Preview Your Audience page,
click Add Condition > Performed an Event.
- In ...performed, select Product Removed, at least, and type
1
time. - Click Next.
- In ...performed, select Product Removed, at least, and type
- On the Select Destinations page, select the destination you created in the previous step.
- In Connection settings, select Send Identify and Send Track.
- In Enter Event, type the name of the event to send to the destination
when a user enters the audience, for example,
Product Removed
. - Click Save and Next.
- On the Review & Create page, type a name and optional description for the audience and click Done.
Configuring the data mapping for the Segment destination
An explicit data mapping allows you transform the incoming data into a Talon.One-readable format before passing it to the destination. Configure this mapping in the destination you created earlier for Talon.One.
To configure the data mapping for the Segment destination:
- In the Segment dashboard, click Connections > Destinations, and open the destination you created earlier for this audience.
- In the Mappings tab, click New Mapping and select the action you want to map, for example, Update Customer Profile V2.
- In Define event trigger > Event Name > is, type the name of the event you specified
while defining the audience and test it, for example,
Product Removed
. - In Define mappings > The audiences for the customer to join, enter:
context.personas
name
=computation_key
integrationid
=computation_id
- (Optional) In the last step, click Test Mapping.
- Click Save.
- In the Mappings table, under Status, enable the mapping.
Building the rule in Talon.One
In your Talon.One campaign, you can now reference the audience you defined in Segment. In your rule, use the Is member of an audience condition to act on the members of the audience.
You can also use the other available audience conditions in the Rule Builder.