AppsFlyer is a mobile marketing analytics and attribution platform that helps you analyze and optimize your apps through marketing analytics, mobile attribution, and deep linking.

Build more holistic marketing campaigns by leveraging mobile install attribution data from AppsFlyer. With AppsFlyer and Braze, you can pass install attribution data to Braze to better understand how to optimize your campaigns.


Step 1: Integration Requirements

  • This integration supports iOS and Android apps.
  • If you expect more than 100 attributed installs per hour, you will need a Braze Enterprise account. See API Restrictions for more information.
  • Your app will need Braze’s SDK and AppsFlyer’s SDK installed.
  • If you have an iOS app, you will need to enable IDFA collection in Braze’s SDK.
  • If you have an Android app, you will need to include the code snippet below, which passes a unique Braze device id to AppsFlyer. For most setups, this code should be included alongside all calls to AppsFlyerLib.setAppsFlyerKey, typically in an activity’s onCreate callback.
HashMap<String, Object> customData = new HashMap<String,Object>();
String deviceId = Appboy.getInstance(context).getInstallTrackingId();
customData.put("customData", deviceId);

Step 2: Getting the Braze API Key

In your Braze account, navigate to “Technology Partners” , then “Attribution” and find the API key and REST Endpoint in the AppsFlyer section. The API key and the REST Endpoint are used in the next step when setting up a postback in Appsflyer’s dashboard.

Step 3: Configure Braze in Appsflyer’s Dashboard

  • In Appsflyer’s dashboard, navigate to the “Integrated Partners” page.
  • On that page, search for Braze and click on Braze’s logo to open up a configuration window.
  • Under “Integration Parameters” select “enable”.
  • Copy the Braze API key (obtained in the prior step) into the “API_key” field.
  • Copy the Braze Rest Endpoint url (obtained in the prior step) into the “REST_endpoint” field.
  • Click “Save & Close”.

Additional information on these instructions is available in Appsflyer’s documentation.

Braze maps AppsFlyer’s data fields to segment filters in the following way

AppsFlyer Data Field Braze Segment Filter
media_source Attributed Source
campaign Attributed Campaign
af_adset Attributed Adgroup
af_ad Attributed Ad

Step 4: Confirming the Integration

Once Braze receives attribution data from AppsFlyer, the status connection indicator on [“Technology Partners” , then “Attribution”][14] will change to green and a timestamp of the last successful request will be included. Note that this will not happen until we receive data about an attributed install. Organic installs, which should be excluded by the AppsFlyer integration, are ignored by our API and are not counted when determining if a successful connection was established.

Facebook, Snapchat, and Twitter Attribution Data

Attribution data for Facebook, Snapchat, and 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.

For more information, please see Appsflyer’s documentation.

New Stuff!