Prerequisites
Before you start, make sure you have:- A Dub Partners program set up.
- An AppsFlyer account with admin access to the app you want to track.
- A configured OneLink template in AppsFlyer.
Step 1: Install the AppsFlyer integration
Head to your AppsFlyer integration settings in Dub and install the integration to your workspace.Step 2: Configure the partner link destination URL
In AppsFlyer, configure the OneLink template you want to use for your Dub program, then set it as the partner link destination URL in your Dub program settings. When choosing your attribution link type, select Use OneLink and pick the OneLink template you configured.Step 3: Configure event mappings
In your AppsFlyer integration settings, map the in-app events you want to track to Dub’slead and sale events, and set the including option to Values & revenue so that revenue data is forwarded to Dub.
| AppsFlyer event | Mapped to partner event | Including |
|---|---|---|
Your lead-style event (e.g. af_complete_registration) | lead | Values & revenue |
Your purchase event (e.g. af_purchase) | sale | Values & revenue |
Step 4: Test the integration
Before going live, run a few test installs to make sure events are flowing into Dub correctly.Turn off Aggregated Advanced Privacy (AAP)
AAP delays and aggregates postbacks, which makes individual test events hard to verify. Turn AAP off both globally and for the Dub integration during testing.See AppsFlyer’s guide on applying the Aggregated Advanced Privacy framework for details.
Register your device as a test device
Register your device’s IDFA (iOS) or GAID (Android) as a test device in AppsFlyer so that your test installs and events are recognized.Follow AppsFlyer’s guide on registering test devices to add your device manually.