-
Notifications
You must be signed in to change notification settings - Fork 365
Braze Linked Audiences Docs #6748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
0126dac
39a74f7
d2b4185
4f6a8de
ef92210
edda453
5d9029d
9f369ec
6f770f7
51a91c7
eddf053
8137136
83353d3
6d792bc
0cb1f95
c1403d9
0f1f76a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
--- | ||
title: Using Linked Audiences with Braze | ||
plan: engage-foundations | ||
beta: true | ||
hidden: true | ||
--- | ||
|
||
## Overview | ||
|
||
Linked Audiences allows you to send the predefined traits of any audience profile, along with the attributes of any entities used to match the profile into the audience to Braze and use those traits and attributes for [dynamically personalizing email messages](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid){:target="_blank"}. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
The following topic is intended for a Technical Marketer and Data Engineer to complete together while setting up their Linked Audience. | ||
|
||
## Supported Braze Engagement Tools | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are there plans to add more tools? If there are only plans for this one tool, could we break this out into a sentence instead of a table? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, there are plans to add more before GA, so was prepping this for more. |
||
|
||
The following engagement tools are available for use with Linked Audiences in Segment: | ||
|
||
| Type | Description | | ||
| ------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- | | ||
| [Action-based Campaigns](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/building_campaigns/delivery_types/triggered_delivery/){:target="_blank"} | Trigger and dynamically personalize campaigns with rich entity context. | | ||
|
||
## Segment Destination Actions | ||
|
||
Segment sends data from your Linked Audiences to actions-based destinations. (For example: associated account information for the audience profiles with past due accounts). You can configure multiple triggers per audience (For example: one for account entry, and one for account exit). | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
| Segment Destination Action | How does it work? | How does Braze store the data? | Braze API Endpoint | | ||
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | | ||
| [Track Event](/docs/connections/destinations/catalog/braze-cloud-mode-actions/#track-event) | Segment sends personalization payload information into Braze via [Braze Profile custom events](https://www.braze.com/docs/user_guide/data_and_analytics/custom_data/custom_events/){:target="_blank"}. The entity personalization payload is contained in the `events` parameter within API calls. Segment appends Profile Traits as objects (or event properties) and Entity Context as nested objects. | [Event objects](https://www.braze.com/docs/api/objects_filters/event_object/){:target="_blank"} or [Nested objects in custom events](https://www.braze.com/docs/user_guide/data_and_analytics/custom_data/custom_events/nested_objects/){:target="_blank"} | [track API endpoint](https://documenter.getpostman.com/view/4689407/SVYrsdsG?version=latest#4cf57ea9-9b37-4e99-a02e-4373c9a4ee59){:target="_blank"} | | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| [Update User Profile](https://segment.com/docs/connections/destinations/catalog/braze-cloud-mode-actions/#update-user-profile){:target="_blank"} | Segment sends personalization payload information into Braze via [Braze profile custom attributes](https://www.braze.com/docs/user_guide/data_and_analytics/custom_data/custom_attributes/){:target="_blank"}. The entity personalization payload is contained in the `attributes` parameter in API calls. | [User attributes object](https://www.braze.com/docs/api/objects_filters/user_attributes_object){:target="_blank"} OR [Nested Custom Attributes](https://www.braze.com/docs/user_guide/data_and_analytics/custom_data/custom_attributes/nested_custom_attribute_support/){:target="_blank"} | [track API endpoint](https://documenter.getpostman.com/view/4689407/SVYrsdsG?version=latest#4cf57ea9-9b37-4e99-a02e-4373c9a4ee59){:target="_blank"} | | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Braze Action-based Delivery Campaign | ||
|
||
Braze [Action-Based Delivery campaigns](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/building_campaigns/delivery_types/triggered_delivery/){:target="_blank"} store the entity personalization payload as [nested objects in custom events](https://www.braze.com/docs/user_guide/data_and_analytics/custom_data/custom_events/nested_objects/){:target="_blank"}. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Prerequisites | ||
|
||
You must have previously done the following before setting up an action based delivery campaign in Braze. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
In Segment, ensure you have: | ||
|
||
- Set up your [Linked Audience](/docs/engage/audiences/linked-audiences/). | ||
- A copy of your Linked Audience [Event Personalization Payload](/docs/engage/audiences/linked-audiences#showhide-preview), event name, and Braze user id. | ||
- Set up [Braze as an actions destination](/docs/connections/destinations/catalog/braze-cloud-mode-actions/). | ||
- Set up a [Track Event destination action](/docs/connections/destinations/catalog/braze-cloud-mode-actions/#track-event) and the relevant trigger using the [Linked Audiences](/docs/engage/audiences/linked-audiences/) workflow. | ||
|
||
In Braze, ensure you have: | ||
|
||
- Permissions to access the application, or access to someone who has permissions. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Created all Segment profiles as Braze profiles using the [Update User Profile destination action](/docs/connections/destinations/catalog/braze-cloud-mode-actions/#update-user-profile) via [Connections](/docs/connections/) or [Reverse ETL](/docs/connections/reverse-etl/). This is a [requirement for them to receive an action-based campaign](https://www.braze.com/docs/user_guide/engagement_tools/testing/race_conditions/#targeting-new-users){:target="_blank"}. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Created a Braze profile, for campaign testing, with an email address you can access. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Familiarity with the [Liquid templating syntax](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid){:target="_blank"} to manually type out the code using dot notation. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
### Step 1: Set up a Braze action-based Delivery Campaign | ||
|
||
To take advantage of Linked Audiences, you must now take some additional steps in Braze to set up an action-based delivery campaign. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
In Braze, do the following: | ||
|
||
1. Create a new [email Campaign](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/building_campaigns/creating_campaign){:target="_blank"}. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
2. [Create an email using the HTML Editor](https://www.braze.com/docs/user_guide/message_building_by_channel/email/html_editor/creating_an_email_campaign/){:target="_blank"} to begin [personalizing with liquid tags](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid){:target="_blank"}. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- Reference your [personalization payload schema](/docs/engage/audiences/linked-audiences/#showhide-preview) from Segment to determine what properties to include in your message. | ||
- Translate the Segment event properties in the payload schema into [liquid syntax](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid/using_liquid/#using-liquid-1){:target="_blank"} for [custom events](https://www.braze.com/docs/user_guide/data_and_analytics/custom_data/custom_events){:target="_blank"}, and enter it in the HTML editor in Braze. See the personalization [examples below](#liquid-examples-to-use-in-braze) for more specific details on how you can personalize your campaign. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
3. Next, [schedule your campaign delivery](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/building_campaigns/delivery_types){:target="_blank"}: | ||
- Choose [Action based delivery](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/building_campaigns/delivery_types/triggered_delivery/#step-1-select-a-trigger-event){:target="_blank"} > [New Trigger Action](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/building_campaigns/delivery_types/triggered_delivery/#step-1-select-a-trigger-event){:target="_blank"}: [Perform Custom Event](https://www.braze.com/docs/user_guide/data_and_analytics/custom_data/custom_events){:target="_blank"}> Add Trigger. | ||
- Search and choose the name of the Segment custom event you previously set up and tested in Segment. | ||
- Choose Delivery Controls > [Allow users to become re-eligible to receive campaigns](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/building_campaigns/delivery_types/reeligibility/#campaigns){:target="_blank"} checkbox, and select 0 minutes. This is necessary for [Step 2: Test your campaign flow](#step-2-test-your-campaign-flow) so that you don’t have to wait for a user to become re-eligible while testing. You can adjust these settings after you have finished testing. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
4. Select your target Audience: | ||
- Add a filter to [target users without a segment](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/building_campaigns/targeting_users/#without-segment){:target="_blank"}. | ||
- Search and choose the name of the Segment custom event you previously set up and tested in Segment. | ||
- Select ‘more than 0 times’ as the timeframe for this filter. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
5. Choose any additional settings that apply to your campaign, then [review and deploy](https://www.braze.com/docs/user_guide/message_building_by_channel/email/html_editor/creating_an_email_campaign/#step-5-review-and-deploy){:target="_blank"} your campaign, and continue on to [Step 2: Test your campaign flow](#step-2-test-your-campaign-flow). | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Step 2: Test your campaign flow | ||
|
||
In Segment, finish setting up your destination campaign by sending yourself a test email for review. Add your Braze user id and click **[Send test event to destination](/docs/engage/audiences/linked-audiences/#step-3-send-a-test-event-to-your-destination)**. Review the email you received, and ensure it is formatted properly. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
 | ||
|
||
You will see a `“message”: “success”` response in Segment if the event is sent successfully to Braze. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Check your [campaign dashboard](https://www.braze.com/docs/user_guide/message_building_by_channel/email/reporting_and_analytics/email_reporting){:target="_blank"} (Braze > *[Your Unique Campaign]* > Analytics) in Braze to confirm that the message was sent. It can take up to 15 minutes for Braze to send the email. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
If your email doesn’t look the way you want it to, adjust the [liquid syntax](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid/using_liquid/#using-liquid-1){:target="_blank"} in Braze, and send another test event in Segment. See the personalization [examples below](#liquid-examples-to-use-in-braze) for more specific details. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
When you’re finished testing your campaign, proceed to [Enable your Linked Audience](/docs/engage/audiences/linked-audiences/#step-4-enable-your-linked-audience). | ||
|
||
## Liquid Examples to use in Braze | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Use the following examples as context and information to experiment with setting up your campaign in Braze. | ||
|
||
The following is an example of what your payload data might look like with nested payload properties: | ||
|
||
|
||
```js | ||
{ | ||
"event": "abandoned_carts_linked_audience", | ||
"properties": { | ||
"first_name": "Andrew", | ||
"last_name": "Shopper", | ||
"shopping_cart__id": "123", | ||
"shopping_cart__products": [ | ||
{ | ||
"id": "324", | ||
"product_name": "Premium Tennis Shoes", | ||
"product_price": "$140", | ||
"__entity": "product" | ||
}, | ||
{ | ||
"id": "489", | ||
"product_name": "Premium Jacket", | ||
"product_price": "$200", | ||
"__entity": "product" | ||
} | ||
], | ||
"__entity": "cart" | ||
} | ||
} | ||
``` | ||
|
||
The following helps translate your payload data into Liquid syntax: | ||
|
||
- To reference a specific event property: | ||
- Use the following liquid syntax: <code>{% raw %}{{event_properties.event_property_name}}{% endraw %}</code> | ||
- An example of this property might look like: <code>{% raw %}{{event_properties.first_name}}{% endraw %}</code> | ||
- To reference nested event properties within an Array: | ||
- Use the following liquid syntax: <code>{% raw %}{{event_property_name.[#_that_represents_specific_entry_in_array].nested_event_property_name }}{% endraw %}</code> | ||
- An example of this property might look like: <code>{% raw %}{{event_properties.shopping_cart__products[0].product_name}}{% endraw %}<code> | ||
|
||
### Basic Email Example | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Use the Segment payload data you [copied when setting up your Linked audience](/docs/engage/audiences/linked-audiences#showhide-preview) to build an abandoned cart email campaign that includes specific information for the product in a customer’s shopping cart. | ||
|
||
When an email is sent, it will list the specific product, and its related price in your customer’s shopping cart. It might look like the following: | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
 | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
This is an example of what your email using [HTML ](https://www.braze.com/docs/user_guide/message_building_by_channel/email/html_editor/creating_an_email_campaign/){:target="_blank"} and[ liquid tags](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid){:target="_blank"} might look like in Braze: | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
 | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Advanced Email Example | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Use the Segment payload data you [copied when setting up your Linked audience](/docs/engage/audiences/linked-audiences#showhide-preview) to build an abandoned cart email campaign where you can use an [iteration tag](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid/supported_personalization_tags/#iteration-tags){:target="_blank"} to run a block of code repeatedly. In this example, you can use a `for loop` to list all of the products and their related prices in a customer’s shopping cart. | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
When an email is sent, it will list all of the products and their related prices in your customer’s shopping cart. It might look like the following: | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
 | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
This is an example of what your email using [HTML ](https://www.braze.com/docs/user_guide/message_building_by_channel/email/html_editor/creating_an_email_campaign/){:target="_blank"} and[ liquid tags](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid){:target="_blank"} might look like in Braze: | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
 | ||
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
cmastr marked this conversation as resolved.
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.