AppsFlyer Integration

Connect AppsFlyer as a network partner — tracking links, server-to-server postbacks, event mapping, and revenue reporting via Affclix Mobile Tracking.

Overview

AppsFlyer is a mobile measurement platform (MMP) that attributes installs and in-app events using tracking links and server-to-server postbacks.

Tracking Links

Macro-based click attribution using af_sub parameters.

Postbacks

Install and in-app event callbacks via S2S.

Revenue

Revenue, ROI and currency-aware reporting.

Before you start

Make sure you have access to your AppsFlyer Partner Marketplace and Affclix Mobile Tracking settings.

Attribution Flow

01

User Clicks Tracking Link

AppsFlyer captures the click and device identifiers; the Affclix click ID travels in the clickid parameter.

02

App Installation

AppsFlyer attributes the install to the original click.

03

Postback Triggered

Install or in-app event is sent to Affclix via S2S callback.

04

Conversion Logged

Affclix checks the security token, de-duplicates installs and books the conversion on the tracker — payout and affiliate postback included.

Tracking Link

The offer URL is the advertiser's own AppsFlyer attribution link with Affclix parameters appended. Affclix fills the {tokens} on every click; AppsFlyer stores the click ID and returns it in its postback, which is how each install is matched to its click and affiliate.

Campaign URL
https://app.appsflyer.com/<app_id>?pid=<partner_id>&c={campaign_name}&clickid={click_id}&af_siteid={affiliate_id}&af_sub_siteid={sub_aff1}&af_c_id={campaign_id}&advertising_id={gaid}&idfa={iosidfa}
Build it on the Mobile Tracking page

Open Integrations → MMP Integrations → AppsFlyer and paste the advertiser's link into the Tracking link builder. Values in <angle brackets> come from the advertiser's AppsFlyer account.

Postback URLs

Give AppsFlyer these URLs as GET postbacks. Each one carries your workspace's postback security token (auth=) — copy the URLs from the Mobile Tracking page, where the real token and integration slug are filled in.

Install postback
https://track.your-domain.com/postback/mmp/{integration-slug}?click_id={clickid}&iosidfa={idfa}&gaid={advertising_id}&app_id={app_id}&rejected={is_rejected}&reject_reason={blocked_reason}&reject_sub_reason={blocked_sub_reason}&auth={security_token}
Event postback
https://track.your-domain.com/postback/mmp/{integration-slug}?click_id={clickid}&e={partner_event_identifier}&sale={revenue_amount}&iosidfa={idfa}&gaid={advertising_id}&app_id={app_id}&rejected={is_rejected}&reject_reason={blocked_reason}&reject_sub_reason={blocked_sub_reason}&auth={security_token}
Install postback (privacy / SKAN)
https://track.your-domain.com/postback/mmp/{integration-slug}?privacy=1&sub_adv6={af_adset_id}|{af_c_id},{af_siteid}&auth={security_token}
Event postback (privacy / SKAN)
https://track.your-domain.com/postback/mmp/{integration-slug}?privacy=1&sub_adv6={af_adset_id}|{af_c_id},{af_siteid}&event={event_name}&txn_id={transaction_id}&auth={security_token}
AppsFlyerAffclixMeaning
clickid={click_id}Click link — our tracker fills this on every click
af_siteid={affiliate_id}Click link — our tracker fills this on every click
af_sub_siteid={sub_aff1}Click link — our tracker fills this on every click
af_c_id={campaign_id}Click link — our tracker fills this on every click
advertising_id={gaid}Click link — our tracker fills this on every click
idfa={iosidfa}Click link — our tracker fills this on every click
{clickid}click_id=Postback — Our tracker click ID, echoed from the click link
{partner_event_identifier}e=Postback — event mapped in AppsFlyer → campaign goal token
{revenue_amount}sale=Postback — event revenue (basis for CPS / RevShare payouts)
{advertising_id}gaid=Postback — Google Advertising ID
{idfa}iosidfa=Postback — iOS IDFA
{app_id}app_id=Postback — App ID / bundle ID — tells apps in one AppsFlyer account apart
{is_rejected}rejected=Postback — true on a rejected (Protect360 / validation rule) postback → conversion REJECTED
{blocked_reason}reject_reason=Postback — why AppsFlyer rejected it (kept on the attribution log)
{blocked_sub_reason}reject_sub_reason=Postback — the rejection's sub-reason

Events, Goals & Revenue

Every processed postback is booked as a conversion on the tracker — the same path as an advertiser S2S postback, so payout rules, caps, fraud checks and affiliate postbacks all apply.

Postback paramWhat Affclix does with it
click_idFinds the click, and with it the campaign and affiliate.
eBooks the campaign goal whose token matches. No e (installs) books the campaign's default goal. Map AppsFlyer event names to goal tokens under Settings → Event mapping when they differ.
saleThe event revenue — the basis for CPS and RevShare payouts.
currencyCurrency of sale.
txn_idDe-duplicates retries of the same postback. Affclix derives one when AppsFlyer sends none.
authYour postback security token. A wrong token is rejected; a missing one is rejected when your workspace requires signed postbacks.

Testing & Best Practices

  • Fire a test postback from the Mobile Tracking page with the click ID of a real test click, and check the Recent postbacks table.
  • Keep auth= in every URL; rotating the token in Postback settings keeps the previous one valid until you revoke it.
  • Leave organic installs off unless you need them reported — they have no Affclix click, so no affiliate earns them.
  • Choose whether postbacks AppsFlyer flags as fraud are rejected or booked and flagged.
  • Postbacks Affclix could not deliver to the tracker are retried automatically and can be re-sent from Recent postbacks.
Not on Affclix yet?

Set this integration up on your own workspace. Affclix tracks clicks server-to-server, scores each one for fraud and pays affiliates from one platform. Start a 14-day free trial.

Rate this article
★ ★ ★ ★ ★
Thanks for rating!

Was this article helpful?