Filters

Braze

Connect Branch and Braze to unlock a more holistic picture of the customer journey for your app.

1328

Overview

Braze unites data, teams, and technology to create brilliant brand messaging experiences for customers everywhere.

How does it work?

Once the Branch SDK is integrated into an app, Branch can detect which Branch Links are leading to installs, re-opens, and users' actions. Enabling this integration and providing your relevant Ids will result in Branch automatically forwarding referred events to Braze, in the exact format Braze expects.

Branch Events Sent to Braze

The events Branch sends to third party data tools varies based on the events the partner supports as well as whether or not you've implemented the Branch SDK to measure said events.

Braze supports the following events:

  • Installs

Metadata sent to Braze
The metadata Branch sends to third party data tools varies based on the data the partner supports as well as whether or not you've implemented the Branch SDK to measure said data.

Branch Analytics TagBraze Data Placeholder Tag
Campaigncampaign
Channelsource
Adgroupadgroup
Adad

Prerequisites

In order to enable Braze, you need to have completed the following:

  1. Admin access to your Branch Dashboard.
  2. Enabled Data Feeds for your Branch account.
  3. Implemented the Branch SDK into your mobile app (iOS | Android)
  4. Implement the Braze SDK
  1. Admin access to your Braze account.

Enable Braze

1. Retrieve IDs from Braze

Before you can enable the integration in your Branch dashboard, you need to retrieve your credentials from your Braze account.

Branch requires these credentials to not only authenticate, but to ensure your Branch data is being sent to the correct account.

Branch requires the following credentials:

  • API Key
  • Braze REST Endpoints

To find your Braze API Key:

  1. On the Braze dashboard, navigate to the App Settings section, and click 3rd Party Integrations.
  2. From there, grab your API key (this will be the same for all attribution partners listed on the page).

To find the correct Braze REST Endpoint, please refer to Braze's documentation.

2. Connect Braze in Branch

In the Branch Dashboard in Data Feeds → Data Integrations tab, find and search for Braze.

Enter the API Key and Rest Endpoint from the previous step and hit Save.

3. Pass Metadata to the Branch SDK

👍

Developer Required

Developers on your mobile app are required for this step

Braze requires you to pass through the correct identifiers to the Branch SDKs. In order to do so, retrieve the ID from the Braze SDK and pass this value to Branch using the following method:

  • setRequestMetadataKey() method of the Branch SDKs:

NOTE You must set the correct key before initializing the Branch session. You must also initialize the Braze SDK before setting the request metadata in the Branch SDK.

📘

February 2023 Updates

Prior to February 2023, our Branch attribution integration used the IDFV as the primary identifier to match iOS attribution data. It is not necessary for Braze customers using Objective-C to fetch the Braze device_id and sent to Branch upon install as there will be no disruption of service.

For those using the Swift SDK v5.7.0+, if you wish to continue using IDFV as the mutual identifier, you must ensure that the useUUIDAsDeviceId field is set to false so there is no disruption of the integration.

If set to true, you must implement the iOS device ID mapping for Swift in order to pass the Braze device_id to Branch upon app install in order for Braze to appropriately match iOS attributions.

You must also disable and re-enable the Braze Data Integration connection on the Branch Dashboard

Branch.getInstance().setRequestMetadata("$braze_install_id", Braze.getInstance(context).deviceId);
Branch.getInstance().setRequestMetadata("$braze_install_id", Braze.getInstance(context).deviceId)
Branch.getInstance.setRequestMetadata("$braze_install_id", braze.deviceId)
  [[Branch getInstance] setRequestMetadataKey:@"$braze_install_id" value: braze.deviceId];

4. Verify Data Sent

Once the above steps are complete, you are now ready to start launching campaigns. Branch-attributed conversions will be sent to Braze. To verify data is being sent from Branch to Braze, you can look at the Branch Dashboard's Liveview Webhook Records and apply the following filter:

FilterOperatorValue
webhook partner keyequalsdi_braze

📘

Wait Period

Please be patient as data may take some time to flow through Branch's attribution systems and onto Braze. If data has not appeared in Braze after 30 minutes of completing a test conversion, review the above steps to see if you may have missed something.