Branch for attribution
Branch, a mobile linking platform, helps you acquire, engage, and measure across all devices, channels, and platforms by providing a holistic view of all user touchpoints.
This integration is maintained by Branch.
About the integration
The Braze and Branch integration will help you understand exactly when and where users were acquired as well as how to personalize their journeys through robust attribution and deep linking.
Prerequisites
| Requirement | Description |
|---|---|
| Branch account | A Branch account is required to take advantage of this partnership. |
| iOS or Android app | This integration supports iOS and Android apps. Depending on your platform, code snippets may be required in your application. Details on these requirements can be found in step 1 of the integration process. |
| Branch SDK | In addition to the required Braze SDK, you must install the Branch SDK. |
Integration
Step 1: Map device IDs
Android
If you have an Android app, you will need to pass a unique Braze device ID to Branch. This ID can be set in the Branch SDK’s setRequestMetadataKey() method. The following code snippet must be included before calling initSession. You must also initialize the Braze SDK before setting the request metadata in the Branch SDK.
1
Branch.getInstance().setRequestMetadata("$braze_install_id", Braze.getInstance(context).deviceId);
1
Branch.getInstance().setRequestMetadata("$braze_install_id", Braze.getInstance(context).deviceId)
iOS
2023년 2월 이전에는 Branch 어트리뷰션 데이터 통합에 공급업체 식별자(IDFV)를 기본 식별자로 사용하여 iOS 어트리뷰션 데이터를 일치시켰습니다. Objective-C를 사용하는 Braze 고객은 서비스 중단이 없으므로 설치 시 Braze device_id 를 가져와서 Branch로 전송할 필요가 없습니다.
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.
1
2
3
4
[braze deviceIdOnQueue:dispatch_get_main_queue() completion:^(NSString * _Nonnull deviceId) {
[[Branch getInstance] setRequestMetadataKey:@"$braze_install_id" value:deviceId];
// Branch init
}];
1
2
3
4
braze.deviceId { deviceId in
Branch.getInstance.setRequestMetadata("$braze_install_id", deviceId)
// Branch init
}
Step 2: Get the Braze data import key
In Braze, navigate to Partner Integrations > Technology Partners and select Branch.
Here, you will find the REST endpoint and generate your Braze data import key. After the key is generated, you can create a new key or invalidate an existing one. The data import key and the REST endpoint are used in the next step when setting up a postback in Branch’s dashboard.
3단계: Set up data feeds
- In Branch, under the Exports section, select Data Feeds.
- On the Data Feeds Manager page, select the Data Integrations tab at the top of the page.
- Select Braze from the list of available data partners.
- On the Braze export page, provide the data import key and REST endpoint that you found in the Braze dashboard and select Enable.
Step 4: Confirm the integration
Braze가 Branch로부터 기여도 데이터를 수신하면, Braze의 기술 파트너 페이지에서 연결 상태 표시기가 “연결되지 않음”에서 “연결됨”으로 변경되고 마지막으로 성공한 요청의 타임스탬프가 포함됩니다.
이 상태는 Braze가 속성 설치에 대한 데이터를 수신한 후에만 변경됩니다. Braze는 오가닉 인스톨을 무시하고(Branch 포스트백에서 제외) 연결 성공 여부를 판단할 때 이를 계산하지 않습니다.
Facebook and X (formerly Twitter) attribution data
Attribution data for Facebook and X (formerly Twitter) campaigns is not available through our partners. These media sources do not permit their partners to share attribution data with third parties and, therefore, our partners cannot send that data to Braze.
Branch click tracking URLs in Braze (optional)
Using click tracking links in your Braze campaigns will allow you to easily see which campaigns are driving app installs and re-engagement. As a result, you’ll be able to measure your marketing efforts more effectively and make data-driven decisions on where to invest more resources for the maximum ROI.
To get started with Branch click tracking links, visit their documentation. You can insert the Branch click tracking links into your Braze campaigns directly. Branch will then use their probabilistic attribution methodologies to attribute the user that has clicked on the link. We recommend appending your Branch tracking links with a device identifier to improve the accuracy of attributions from your Braze campaigns. This will deterministically attribute the user that has clicked on the link.
For Android, Braze allows customers to opt-in to Google Advertising ID collection (GAID). The GAID is also collected natively through the Branch SDK integration. You can include the GAID in your Branch click tracking links by utilizing the following Liquid logic:
1
2
3
{% if most_recently_used_device.${platform} == 'android' %}
user_data_aaid={{most_recently_used_device.${google_ad_id}}}
{% endif %}
For iOS, both Braze and Branch automatically collect the IDFV natively through our SDK integrations. This can be used as the device identifier. You can include the IDFV in your Branch click tracking links by utilizing the following Liquid logic:
1
2
3
{% if most_recently_used_device.${platform} == 'ios' %}
user_data_idfv={{most_recently_used_device.${id}}}
{% endif %}
This recommendation is purely optional
If you currently do not use any device identifiers - such as the IDFV or GAID - in your click tracking links, or do not plan to in the future, Branch will still be able to attribute these clicks through their probabilistic modeling.
GitHub 에서 이 페이지를 편집합니다.