Skip to main content

AppsFlyer Integration

Attribute mobile app installs and in-app events from AppsFlyer to affiliates.

AppsFlyer is a Mobile Measurement Partner (MMP) used to attribute mobile app installs and in-app events on iOS and Android. This guide shows you how to attribute Trackdesk traffic in AppsFlyer and how to send installs and in-app events back to Trackdesk via postbacks. To begin the integration, you will need to provide AppsFlyer with both an attribution link URL and a postback URL.


​

The attribution link (iOS & Android)

This link is used to track clicks and attribute them to your Trackdesk offers.

Template

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

Replace APP_ID with your Android package name (e.g., com.example.app) or your iOS App Store ID with the id prefix (e.g., id123456789). The other parameters (pid, clickid, c and af_siteid) are pre-configured to ensure Trackdesk and AppsFlyer communicate correctly.


​

Offer setup in Trackdesk: Conversion Types

AppsFlyer calls Trackdesk using specific conversionTypeCode values. Before testing your integration, you must ensure these conversion types exist and are enabled for your offer in Trackdesk.

  1. Create/Add conversion types:

    • Install: Use this for first-open or install events.

    • In-app events: Create a conversion type for each event you want to track (e.g., purchase, signup, level_achieved). The conversion type code in Trackdesk must exactly match the event name configured in AppsFlyer.

  2. Enable the types: Attach these conversion types to your offer and ensure they are active.

  3. Revenue reporting (optional): If you plan to report revenue, ensure your conversion types are configured to accept value input. AppsFlyer will pass this as amount.value.

  4. Save your changes: Postbacks will only be accepted and categorized correctly once these types exist in your system.

Postback URLs (AppsFlyer → Trackdesk)

Once the offer is set up, you will need to configure the postback URLs in AppsFlyer so they can send data back to Trackdesk.

iOS postbacks

Install

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

In-app event

https://TENANT_ID.trackdesk.com/tracking/conversion/v1?conversionTypeCode={event_name}&cid={clickid}&amount.value={event_revenue}&customParams.advS1={idfa}

Replace TENANT_ID in both URLs with your Tenant ID.

Android postbacks

Install

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

In-app event

https://TENANT_ID.trackdesk.com/tracking/conversion/v1?conversionTypeCode={event_name}&cid={clickid}&amount.value={event_revenue}&customParams.advS1={android_id}

Replace TENANT_ID in both URLs with your Tenant ID.

Note: {clickid}, {event_name}, {event_revenue}, {idfa} and {android_id} are AppsFlyer macros; keep them as they are. {event_revenue} is the event revenue (if reported).


​

Final step: activation

Once you have prepared your attribution link and postback URLs, provide them to AppsFlyer support to start the integration on their end.

Did this answer your question?