At a glance: Send Braze message engagement events to AppsFlyer Audiences and use them to add precision to your audience definitions.
By setting up an incoming connection between your Braze account and AppsFlyer Audiences, you bring your Braze message engagement event data into Audiences. You can then use this data in rulesets when defining audiences.
Prerequisites
- Both the Braze and AppsFlyer SDKs must be integrated into your app.
- You must subscribe to the Currents feature in Braze.
Set up the Braze incoming connection
There are 3 main steps for setting up the Braze incoming connection:
Set up the AppsFlyer SDK
To create an incoming connection from Braze, the AppsFlyer SDK in your apps must be configured to pass each user's Braze External ID to AppsFlyer. You can do this using either:
- Braze External ID parameter
- CUID field
Using a Braze External ID parameter
You can configure a dedicated parameter to pass the Braze External ID to AppsFlyer using the setPartnerData
function of the AppsFlyer SDK. Usage examples follow:
Map<String, Object> brazeData = new HashMap<>();
partnerData.put("external_user_id", "some-braze-external-id-value");
AppsFlyerLib.getInstance().setPartnerData("braze_int", brazeData);
NSDictionary *brazeInfo = @{
@"external_user_id":@"some-braze-external-id-value"
};
[[AppsFlyerLib shared] setPartnerDataWithPartnerId:@"braze_int"
partnerInfo:brazeInfo];
Using the CUID field
There is no need to configure a dedicated parameter for the Braze External ID if:
- You have configured the SDK to send AppsFlyer a CUID for each user
- The CUID has the same value as the Braze External ID
In this case, you can simply select the CUID option as the SDK parameter when creating your incoming Braze connection.
Create an incoming Braze connection in AppsFlyer
Follow these steps to create an incoming connection in AppsFlyer:
- In AppsFlyer, from the side menu, select Engage > Audiences
- In the Audiences page, go to Connections > Incoming tab.
- Click the New incoming connection button.
- Select Braze from the list of available partners.
- Click the Save button to create the connection.
The Connection credentials dialog opens. - Copy the connection credentials to use when setting up the connection to AppsFlyer Audiences in the Braze platform:
- Access key ID
- Secret access key
- Bucket name
- Folder path
- Select the SDK parameter you are using to send the Braze External ID:
- Braze External ID
- CUID
Create a Current in Braze
Follow these steps to create a Current in Braze:
- Go to the Integration section of the left-side menu bar.
- Click Currents.
- Click the Create Current button.
- Select Amazon S3 Data Export.
- In the Create Currents Integration section:
- Enter a name for the Current (for example, AppsFlyer Audiences).
- Enter the email of someone on your team that Braze will notify in case of issues with the credentials for the Current.
- In the Credentials section:
- Keep the option for AWS Secret Access Key selected (this is the default value).
- Enter the credentials you copied from AppsFlyer in the appropriate fields.
- Keep the Enable Encryption option unchecked.
- Under General Settings, keep Include events from anonymous users checked.
- In the Message Engagement Events section, select the events you want Braze to send to AppsFlyer. See the list of supported events below.
- In the Customer Behavior and User Events section, keep the Track Customer Behavior and User Events option turned off.
- Click the Launch Current button to save the configuration and start sending Braze message engagement events to Audiences.
supported events
Supported Braze events
- Subscription Group State Change
- Email Click
- Email Open
- Email Send
- Email Delivery
- Email Mark as Spam
- Email Unsubscribe
- Email Bounce
- Email Soft Bounce
- Push Open
- Push Send
- Push Bounce
- iOS Foreground Push
- SMS/MMS Send
Using Braze data in Audiences
Once the Braze incoming connection is set up, the engagement events you've defined will appear as options in the ruleset filters for defining audiences.
Note: It takes approximately 24 hours for the Braze message engagement events to be available in AppsFlyer after you launch the current in Braze.