Mobile app tracking (AppsFlyer, Adjust, Branch, Singular, Kochava)
Run app-install offers through a mobile measurement partner — click URL presets, install and in-app event postbacks, and server-to-server click forwarding.
Last updated 5 min read
On this page
App-install offers are measured by the advertiser's mobile measurement partner (MMP): AppsFlyer, Adjust, Branch, Singular or Kochava. The MMP attributes the install on the device; TrackCrown records the partner's click, passes its click ID to the MMP, and receives the install and in-app events back as postbacks. The conversion is credited to the partner and sub IDs of the original click.
Presets for all five MMPs are on Tracking → Integrations → Mobile apps
(https://app.trackcrown.com/app/integrations?). They are built for your first active tracking domain and the first offer
of the workspace; replace the offer code where needed.
How the flow works#
- The partner's visitor clicks
https://trackcrown.com/r/OFFERCODE/PARTNERCODE?.sub1=… - TrackCrown records the click and redirects to the offer's destination — the MMP's click URL — with
{click_id}filled in. - The MMP records the click with our click ID and sends the user to the app store.
- After the install (and later in-app events) the MMP calls our postback URL with the click ID.
- TrackCrown attributes the install to the click and fires the partner's postbacks.
Set up an offer#
- Create the offer (Offers → Offers → New offer) with Conversion tracking set to Server postback or pixel or Server postback only.
- On the offer's Events tab, create an event with code
install, plus one event per in-app event you will receive (for examplepurchase,registration). The event code in the postback must match exactly, otherwise the postback is refused withunknown event "…" for this offer. - Set the offer's Destination URL to the MMP click URL from the preset, replacing the upper-case placeholders
(
APP_ID,TRACKER_TOKEN,PARTNER_int, …) with the advertiser's values. - Paste the Install postback and In-app event postback into the MMP's partner configuration. Replace
TOKENwith the workspace postback token (Settings → Postback tokens; admins see it filled in) or the advertiser's token.
Presets#
Each card shows three fields: Offer destination URL (click), Install postback and In-app event postback.
Our macros are in curly braces ({click_id}, {aff_id}, {sub1}); the MMP's own macros are written in its syntax.
AppsFlyer install postback, as generated:
https://trackcrown.com/pb? click_id={clickid} &offer_id=OFFERCODE &event=install &token=TOKENAppsFlyer in-app event postback with revenue:
https://trackcrown.com/pb? click_id={clickid} &offer_id=OFFERCODE &event={event_name} &amount={event_revenue} ¤cy={event_revenue_currency} &token=TOKENNotes per MMP (shown on the cards):
- AppsFlyer — integrated partner or custom attribution link. "Create an event with the same code on the offer for every in-app event you forward."
- Adjust — "In Adjust, forward click_id as a partner parameter so it is available in callbacks."
- Branch — "Branch webhooks use Freemarker; keep the expressions as shown."
amount is the sale amount used by percentage (CPS) payouts; currency is converted to the offer currency when it
differs (Currencies & FX). Full parameter list: S2S postback.
Server-to-server click forwarding#
Some setups send the visitor straight to the app store page (the offer's destination is the store URL) and report the click to the MMP from the server instead. Server-to-server click forwarding, on the same tab, does this: for every partner click of the offer, the worker calls the MMP's click URL a few seconds later.
Turn it on for an offer#
- In Server-to-server click forwarding, choose the Offer.
- Enter the Partner click URL. It must start with
https://, contain no spaces and include{click_id}("Include {click_id} so the partner can send it back in its postback."). Example:
https://app.appsflyer.com/APP_ID? pid=PARTNER_int &clickid={click_id} &advertising_id={gaid} &af_ip={ip} &af_ua={user_agent}- Click Save. Forwarding starts with clicks from now on; earlier clicks are never replayed.
To turn forwarding off, save an empty Partner click URL for the offer.
Macros in the partner click URL#
Device IDs are only available when the partner adds them to the tracking link, for example
…/r/OFFERCODE/PARTNERCODE?.
Which clicks are forwarded#
Each forwarding row shows sent and failed counts, how far forwarding has progressed ("up to …") and the last error. A failed request is counted and not retried; forwarding moves on to the next click.
Test the setup#
- Open the partner's tracking link on a phone. Check in Reporting → Clicks that the click is
redirectand the destination shows the MMP URL with the click ID. - Install the app (or use the MMP's test tools) and check Reporting → Postback log → Received for the MMP's postback and its answer.
- Check Reporting → Conversions for the
installconversion attributed to the partner.