Branch Integration

Connect Branch as a network partner — deep links, deferred attribution, server-to-server postbacks, and revenue reporting via Affclix Mobile Tracking.

Overview

Branch is a mobile measurement and deep-linking platform that attributes installs and in-app events using app.link tracking links and server-to-server postbacks.

Deep Links

Direct and deferred deep linking via app.link.

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 Branch Partner Management and Affclix Mobile Tracking settings.

Attribution Flow

01

User Clicks Branch Link

Branch captures the click and deep-link context; the Affclix click ID travels in the ~click_id parameter.

02

App Install / Open

Branch attributes the install and routes the deep link to the right screen.

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 Branch attribution link with Affclix parameters appended. Affclix fills the {tokens} on every click; Branch 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>.app.link/<link_alias>?~click_id={click_id}&~secondary_publisher={affiliate_id}&~campaign={campaign_name}&%24aaid={gaid}&%24idfa={iosidfa}
Build it on the Mobile Tracking page

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

Postback URLs

Give Branch 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=${(last_attributed_touch_data.~click_id)!}&auth={security_token}
Event postback
https://track.your-domain.com/postback/mmp/{integration-slug}?click_id=${(last_attributed_touch_data.~click_id)!}&e=${(name)!}&sale=${(event_data.revenue)!}&currency=${(event_data.currency)!}&txn_id=${(event_data.transaction_id)!}&event_id=${(id)!}&auth={security_token}
BranchAffclixMeaning
~click_id={click_id}Click link — our tracker fills this on every click
~secondary_publisher={affiliate_id}Click link — our tracker fills this on every click
~campaign={campaign_name}Click link — our tracker fills this on every click
%24aaid={gaid}Click link — our tracker fills this on every click
%24idfa={iosidfa}Click link — our tracker fills this on every click
${(last_attributed_touch_data.~click_id)!}click_id=Postback — Our tracker click ID, from the link's ~click_id
${(name)!}e=Postback — Branch event name → campaign goal token
${(event_data.revenue)!}sale=Postback — event revenue
${(event_data.currency)!}currency=Postback — currency code
${(event_data.transaction_id)!}txn_id=Postback — transaction ID (de-duplicates retries)
${(id)!}event_id=Postback — Branch event ID — de-duplicates when there is no transaction ID

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 Branch 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 Branch 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 Branch 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?