Amplitude integration with AppsFlyer

At a glance: Integrate AppsFlyer with Amplitude to share user attribution data and event analytics for better insights into user engagement, retention, and revenue. Choose between two integration versions—V1 or V2—depending on your use case and analytics needs.

About the integration

Amplitude, an AppsFlyer integrated partner, is a product analytics platform used by product, growth, and marketing teams to understand user behavior across mobile and web. The integration allows AppsFlyer to send key event data to Amplitude post-install, enabling comprehensive user-level analysis.

There are two Amplitude integration versions:

  • Amplitude V1:
    This version uses Amplitude’s Attribution API. AppsFlyer sends install data collected after the integration is complete. Amplitude uses Ad ID as the identifier and discards the data if no matching user event is logged within 72 hours. Learn more
  • Amplitude V2 :
    This version uses Amplitude’s HTTP V2 API. AppsFlyer sends both installs and in-app event data after the integration is complete. Identifiers are prioritized (user_id and device_id), and if matching fails, a new user is logged. Learn more

 

Integration versions:

Version API used Identifiers used Event coverage
V1 Attribution API Advertising ID (AdID) Installs only
V2 HTTP V2 API user_id, device_id (fallback logic) Installs and in-app events

Important!

  • Choose either the Amplitude V1 or V2 integration. Do not use both simultaneously. Using both versions at the same time may result in duplicate events being sent to Amplitude.
  • Some media sources restrict data sharing with third parties. Postbacks for restricted events won’t be sent to this partner, even if configured.

Prerequisites

Before you begin:

  • Contact Amplitude to create an account if you don't already have one.
  • Decide whether you will set up the Amplitude V1 or V2 integration.
  • Make sure you avoid sending the same events from both the Amplitude SDK and AppsFlyer to prevent duplication.
  • See the additional prerequisite for the Amplitude V2 integration.

Additional prerequisites for the Amplitude V2 integration

The V2 integration requires setup of the:

Amplitude device ID

To enable user-level attribution, you must pass the Amplitude Device ID into the AppsFlyer SDK. This value is sent with each postback.

Android iOS (Objective-C) iOS (Swift) Unity React Native Cordova Flutter
AppsFlyerLib.getInstance().setAdditionalData("AmplitudeDeviceId", amplitude.getDeviceId())

Language: Java/Kotlin

Documentation:  Android SDK reference, Amplitude

Customer user ID

Set up the Customer User ID (CUID). This is a unique identifier typically generated and set
by the app owner during user registration. Learn more

Amplitude session ID

Set up the Amplitude session ID and pass it to AppsFlyer. Learn more

Android iOS (Objective-C) iOS (Swift) Unity React Native Cordova Flutter
AppsFlyerLib.getInstance().setAdditionalData("AmplitudeSessionId", amplitude.getSessionId())

Language: Java/Kotlin

Documentation: Android SDK reference

Set up the integration

To set up the integration:

  1. In AppsFlyer, go to Collaborate > Partner Marketplace.
  2. To set up the Amplitude V1 integration, select Amplitude V1 (Tech partner).

    Select Amplitude V1 doctored.png


    To set up the Amplitude V2 integration, select Amplitude V2 (Tech partner). 

    Select Amplitude V2.png

     
  3. Once you've selected your Amplitude version, click Set up integration.

    Click set up integration.png
     
  4. In the Integration tab:
    • Select your app.
    • Turn on the Activate partner toggle.

      Activate partner blurred.png

       
  5. Complete the configuration in the remaining tabs:

Integration tab

The Integration Tab is divided into different sections as described below.

Activate partner

On the first visit here, you will need to turn Activate Partner on to enable setup of the integration tab's parameters. The toggle must be on for as long as you work with the partner.
Learn more about partner activation.

General settings

Advanced data sharing

To share additional install information with Amplitude, turn on Advanced data sharing. When turned on, Amplitude receives the following data for installs (not in-app events) mapped to the listed Amplitude Property:

Amplitude Property AppsFlyer Data Point
sub_publisher af_siteid
network_name pid
adgroup_name af_adset
creative_name af_ad_id
installed_at install_timestamp
search_term af_keywords
channel af_channel
user_id af_customer_user_id
af_sub1 af_sub1
af_sub2 af_sub2
af_sub3 af_sub3
af_sub4 af_sub4
af_sub5 af_sub5
app_version app_version

Amplitude EU Data Center

When Amplitude EU Data Center is off, install postbacks are sent to the US data center.
To send install postbacks to Amplitude's EU data center, turn Amplitude EU Data Center on.

API Key

Amplitude connects with AppsFlyer via a unique API Key. If you don't already have it, you must obtain it from Amplitude to continue with the integration or follow the steps below.

Obtaining the API key from Amplitude

Note: Only users who have the Admin or Manager role on Amplitude can access the API Key.

  1. Log in to your Amplitude account.
  2. From the top right of the page, click the settings icon > Organization Settings.
    Amplitude
  3. Click Projects and select the project from which to send data to AppsFlyer. 
    amplitude
  4. From the Project tab, copy your API key.
    Amplitude
  5. Proceed to configure Amplitude in AppsFlyer Dashboard.

Default postbacks

AppsFlyer can send automatic postbacks to Amplitude following user installs, including both installs and re-engagements (including re-attributions). Re-engagements occur when a user who already has the app installed opens it after clicking through a campaign. Learn more about default postbacks.

Screenshot 2025-12-03 at 1.57.03 PM.png

In-app event settings

  • Enter the API Key.
  • When Amplitude Data Center is off, in-app events postbacks are sent to the US data center.
    To send in-app events postbacks to Amplitude's EU data center, turn Amplitude Data Center on.

Once you have saved the configuration, AppsFlyer sends the following data to Amplitude:

  • Device ID (IDFV/Google Advertising ID)
  • Media Source
  • Campaign name

Sending IDFA for iOS devices is subject to ATT consent by the user and to Advanced Privacy settings.

In-app event postbacks

Configure sending in-app event postbacks to Amplitude.

Attribution link tab

Attribution Links are not available for Amplitude.

Cost tab

Cost data is not supported in the integration with this partner.

Ad revenue tab

Ad Revenue is not supported in the integration with this partner.

Permissions tab

Permissions are not available for Amplitude.

Viewing attribution data in the Amplitude console

Attribution data sent from AppsFlyer to Amplitude is displayed in your dashboards as events and properties prefixed with [AppsFlyer]:

amplitude-properties.png

 Important!

In some cases, Amplitude shows data coming from AppsFlyer as "Blocked". If you can't see AppsFlyer data in Amplitude, check if it's defined as a blocked event.amplitude-blocked-data.png

Sending Amplitude events to AppsFlyer

The integration also allows sending your Amplitude events to AppsFlyer via a Server-to-server API. See Amplitude documentation on how to do this.