Question

Incorrect AppsFlyer ID in AppsFlyer Integration

  • 8 October 2021
  • 1 reply
  • 6 views

Badge

We have an AppsFlyer Integration that occasionally uses the customer_user_id as the appsflyer_id. Does anyone know why this would happen?

Here’s an (anonymized) example.

{
  "af_events_api": "true",
  “appsflyer_id": "aaaaBBBBCCC",
  "bundleIdentifier": "com.bundle.app,
  “customer_user_id": "aaaBBBBCCC",
  "eventCurrency": "USD",
  "eventName": "renewal_event",
  "eventTime": "2021-10-08 21:27:43.000",
  "eventValue": "{\"af_revenue\": \"5.99\", \"renewal\": \"true\", \"af_content_id\": \"monthly_plan\", \"af_currency\": \"USD\"}"
}

A correct appsflyer_id looks like a Unix Epoch timestamp with a random number appended like this.

  "appsflyer_id": "1617274484000-5786735",

Does anyone know why it occasionally doesn’t have the correct Appsflyer ID?
 


1 reply

Userlevel 3
Badge +8

Hey @John Jusayan 

RevenueCat currently fallback to the app user ID if the AppsFlyer ID was not provided in the subscriber attributes. Previously, these events would have never been dispatched into Appsflyer at all. To debug this, you should check if the customer had the $appsflyerId field before the AppsFlyer event was dispatched. If you have webhooks setup, you can check the event details for the specific event and look at the webhook generated to see if it contains the $appsflyerId in the subscriber_attributes.

Reply