Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.pnlight.app/llms.txt

Use this file to discover all available pages before exploring further.

Attribution connects a user to the channel or campaign that brought them into the app.

How attribution works in your app

Your supported attribution provider, such as AppsFlyer, Firebase, or Facebook, resolves attribution data. After the provider returns 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.

Send attribution

await PNLightSDK.shared.addAttribution(
    provider: .appsFlyer,
    data: ["af_status": "Non-organic"],
    identifier: "appsFlyerCustomerId"
)

Supported provider names

SDKProvider values
Swift.appsFlyer, .firebase, .facebook
React Native"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.