How attribution works in your app
Your supported attribution provider, such as AppsFlyer, Firebase, or Facebook, resolves attribution data. After the provider returns conversion data, send it to PNLight with the SDK. PNLight uses the project attribution settings to decide which source has priority when more than one source can describe the same user.Recommended AppsFlyer flow
Receive the AppsFlyer ID
When a user opens the campaign link, AppsFlyer creates a unique ID for that user.
Request ATT permission
After the app is installed, request App Tracking Transparency permission when your app needs IDFA-based attribution.
Update IDFA in PNLight
If PNLight initialized before the ATT response, call
updateIdfa() after authorization.Share the PNLight user ID
Optionally set the PNLight user ID in your trackers, such as
appsFlyer.setCustomerUserId and Apphud.updateUserID, so the same user ID appears across tools.Send conversion data to PNLight
Read the AppsFlyer conversion result and send it to PNLight with
addAttribution.Send attribution
AppsFlyer examples
Supported provider names
| SDK | Provider values |
|---|---|
| Swift | .appsFlyer, .firebase, .facebook |
| React Native | "appsFlyer", "firebase", "facebook" |
| Flutter | "appsFlyer", "firebase", "facebook" |
Dashboard settings
Open Settings and configure the attribution priority:- Put the preferred source first.
- Keep at least one source selected.
- Set the wait window for preferred attribution.
A longer wait window can improve attribution completeness, but it can also delay early decisions that depend on attribution.