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. In Trackdesk, paste this link into the landing page URL field of your offer, with Tracking type set to Redirecting. Trackdesk fills in {cid}, {offerId} and {affId} on each click.
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.
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.
Enable the types: Attach these conversion types to your offer and ensure they are active.
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.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.
Testing the integration
After AppsFlyer activates the integration, install the app through an affiliate tracking link for the offer and check that an install conversion appears in Reports → Conversions. Then trigger one in-app event and check that it appears with the matching conversion type. If a conversion is missing, check Tools → Logs → Conversion error log for the reason.
