How can I track campaign retargeting with AppsFlyer?

Yes! Thanks to a quick client-side integration, you will be able to see campaigns opens with AppsFlyer.

AppsFlyer is extensive analytics that helps brands keep track of their attribution and engagement campaigns while providing a large variety of analytics.

This client-side integration will allow you to retrieve Batch push notifications that opens in the Retargeting section as in the screenshot below:

Find your information in the retargeting section
Find your information in the retargeting section
1

Enabling AppsFlyer SDK to pick up opens

Follow the steps described in the official AppsFlyer documentation. The AppsFlyer SDK will be able to track push opens: iOS / Android.

2

Adding AppsFlyer data in the push payload

Simply add these few lines in your Batch Custom Payload to enable the notification to be tracked down by the AppsFlyer SDK:

iOS

{
   "data":{
      "af":{
         "pid":"batch_int",
         "is_retargeting":"true",
         "c":"test_campaign"
      }
   }
}

Android

{
     "af":{
         "pid":"batch_int",
         "is_retargeting":"true",
         "c":"test_campaign"
      }
}

Here is where you will need to paste the payload:

Insert your payload
Insert your payload in the right section

Note that an extra step is needed on Android. You need to add the following code before calling the AppsFlyer AppsFlyerLib.getInstance().sendPushNotificationData method:

if (intent != null) {
  val batchPayload = intent.getBundleExtra(Batch.Push.PAYLOAD_KEY)
  val af: String? = batchPayload?.getString("af")
  if (batchPayload != null && af != null) {
    intent = intent.putExtra("af", af)
  }

}
3

Record push notifications data on AppsFlyer

AppsFlyer allows you to record push notifications as part of retargeting campaigns by calling the methods documented here: iOS / Android

Last updated

Was this helpful?