Hello RevenueCat Support Team,
We are investigating an attribution issue related to AppsFlyer integration on Android and would appreciate your assistance.
Context
In some cases, purchase events (af_purchase) sent to AppsFlyer via S2S are attributed to an old appsflyer_id, which appears to belong to a previous installation of the app. According to AppsFlyer documentation, a new appsflyer_id should be generated on every fresh install.
AppsFlyer support confirmed that these purchase events are received via S2S and advised us to ensure that the latest appsflyer_id is correctly extracted from the AppsFlyer SDK and used in the S2S request.
Our implementation
-
We obtain the AppsFlyer ID via:
AppsFlyer.getAppsFlyerId() -
We pass it to RevenueCat after SDK initialization using:
purchases.SetAppsflyerID(AppsFlyer.getAppsFlyerId()); -
RevenueCat then forwards purchase events to AppsFlyer via S2S.
Questions
-
Does RevenueCat update the AppsFlyer ID used for S2S events, or is the first provided value persisted?
-
Are there any known edge cases where RevenueCat might continue using a previously provided AppsFlyer ID after an app reinstall?
-
Do you have recommended best practices for the timing of
SetAppsflyerID()relative to AppsFlyer SDK initialization and attribution callbacks?
We are currently validating our lifecycle and timing on the client side, but want to ensure our integration aligns with RevenueCat’s expected behavior.
Thank you in advance for your guidance.
ATTRIBUTION DATA