Skip to main content

AppsFlyer integration

David Rolenc avatar
Written by David Rolenc
Updated today

This guide shows how to attribute Trackdesk traffic in AppsFlyer and how to send installs and in-app events back to Trackdesk via postbacks.

To begin integration, provide AppsFlyer with both the attribution link URL and the postback URL. The URLs are needed for reporting purposes. This article explains how to build these URLs.


Attribution link (same for iOS & Android)

Template

https://app.appsflyer.com/<APP_ID>?pid=trackdesk&clickid={cid}&c={offerId}&af_siteid={affId}

Replace:

  • <APP_ID> - by the Android package (e.g., com.example.app) or iOS bundle ID (e.g., com.example.iosapp) of your app


Offer setup in Trackdesk: Conversion types (required)

AppsFlyer will call Trackdesk with conversionTypeCode values (see postbacks below).
Before testing, make sure these conversion types exist and are enabled on your offer in Trackdesk:

  1. Create/Add conversion types in Trackdesk to match what you’ll receive:

    • install (for first-open/install events)

    • Each in-app event you want to track (e.g., purchase, signup, level_achieved) - the name must match the {event-name} you configure in AppsFlyer.

  2. Attach conversion types to the offer and enable them.

  3. (Optional) If you’ll report revenue, ensure the relevant event conversion types are configured to accept value input; AppsFlyer will pass it as amount.value={event_value}.

  4. Save. Only once these exist will incoming postbacks be accepted and categorized correctly.


Postbacks (AppsFlyer → Trackdesk)

Make sure to replace tenantID with your actual tenant ID.

Find your Tenant ID based on the article here.


{clickid} and {event-name} are AppsFlyer macros. {event_value} is the event’s numeric value (if available).

iOS postbacks

Install

https://tenantID.trackdesk.com/tracking/conversion/v1?conversionTypeCode=install&cid={clickid}&customParams.advS1={idfa}

In-app event

https://tenantID.trackdesk.com/tracking/conversion/v1?conversionTypeCode={event-name}&cid={clickid}&amount.value={event_value}&customParams.advS1={idfa}

Android postbacks (Android ID)

Install

https://tenantID.trackdesk.com/tracking/conversion/v1?conversionTypeCode=install&cid={clickid}&customParams.advS1={android_id}

In-app event

https://tenantID.trackdesk.com/tracking/conversion/v1?conversionTypeCode={event-name}&cid={clickid}&amount.value={event_value}&customParams.advS1={android_id}

Once you have the above prepared, provide AppsFlyer support with both the attribution link URL and the postback URLs to start the integration on their end.

Did this answer your question?