CleverTap can track the following information from AppsFlyer:

  • Install events
  • In-app events

Integrating AppsFlyer

To enable AppsFlyer integration with CleverTap dashboard, proceed as follows:

Step 1: Add CleverTap Credentials to AppsFlyer Dashboard

To activate integration with CleverTap from AppsFlyer dashboard, follow the steps listed under CleverTap integration with AppsFlyer in AppsFlyer documentation.

AppsFlyer Dashboard

AppsFlyer Dashboard

Step 2: Integrate AppsFlyer

The integration steps vary for Android and iOS. The steps for both are listed below.

For Android App

  1. To track attribution and events data in your Android app, perform the steps listed in AppsFlyer Android SDK Integration Guide.
  2. In your Android app code, add the following code.

For SDK version 4.2.0 and above
The getCleverTapAttributionIdentifier method is deprecated for CleverTap Android SDKs version 4.2.0 and above. Use the new getCleverTapID method to get the CleverTap ID on the OnInitCleverTapIDListener to set CustomerUserId method of AppsFlyer.

cleverTapInstance.getCleverTapID(new OnInitCleverTapIDListener() {
   public void onInitCleverTapID(final String cleverTapID) {
       // Callback on main thread
cleverTapInstance?.getCleverTapID {
  // Callback on main thread

For SDK version 4.1.1 and below

String attributionID = cleverTapInstance.getCleverTapAttributionIdentifier();


For iOS App

Add the following code to your iOS app code:

[CleverTap autoIntegrate];
[[AppsFlyerTracker sharedTracker] setCustomerUserID:[[CleverTap sharedInstance] profileGetCleverTapAttributionIdentifier]];

For React-Native

Add the following code to your React-Native app code:

CleverTap.profileGetCleverTapAttributionIdentifier((err, res) => { 

const userId = res;

appsFlyer.setCustomerUserId(userId, (response) => {   

//.. });


Step 3: Enabling the Attribution Partner

After successful integration, AppsFlyer starts to push install event data to CleverTap. To receive in-app events in CleverTap from AppsFlyer, you need to enable the same in CleverTap and AppsFlyer dashboards, respectively. For more information about enabling this advanced setup, refer to Setup CleverTap section of AppsFlyer documentation and CleverTap Attribution Partner Settings.

Viewing Data in Dashboard

You can now view the event data in the CleverTap dashboard. To do so, proceed as follows:

  1. From the CleverTap dashboard, go to Analytics > Events.
  2. Apply the required filters for the selected event. The filters vary depending upon the type of event.

For Install Events: All the install events are tracked under the UTM Visited event.

Applying Filters

Applying Filters


In-app events received from AppsFlyer are prefixed with AF in CleverTap.

Updated 4 months ago


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.