In this article, we are going to explain how the tracking URL template and the postback URL should look like for Branch integration.
To initiate this integration, you need to send the following:
Attribution link template
Postback URLs with Branch supported macros
Branch attribution link Template:
See below what the complete attribution link should look like after you have added additional Swaarm macros:
https://branchster.app.link/abcxyz?%243p=partner_id&%24aaid={device.ids.gaid}&%24idfa={device.ids.gaid}&~click_id={id}&~secondary_publisher={publisher.id}_{publisher.subId}
For the full list of Macros supported by Swaarm, click here
You can find the additional Attribution link parameters supported by Branch,
Swaarm recommended global Install and in-app event postbacks Creation:
Branch has the ability to fire the install through the global postback and any other post-install events through an additional event postback.
This is how the Global postback should look like after adding the Branch-supported macros:
💡Important Note - The domain name "yournetwork
" should be replaced with your own postback domain.
Install postback for both OS:
https://track.yournetwork.swaarm-clients.com/postback?click_id=${(last_attributed_touch_data.~click_id)!}&gaid=${(user_data.aaid)!}&idfa=${(user_data.idfa)!}&country=${(user_data.geo_country_code)!}&sale_amount=${(event_data.revenue_in_usd)!}
In-App event postback for both OS:
https://track.yournetwork.swaarm-clients.com/postback?event_id=${(name)!}&click_id=${(last_attributed_touch_data.~click_id)!}&gaid=${(user_data.aaid)!}&idfa=${(user_data.idfa)!}&country=${(user_data.geo_country_code)!}&sale_amount=${(event_data.revenue_in_usd)!}
To track the In-App event in the Swaarm system, you need to insert the Branch event name in the Swaarm event configuration page. Let's assume the event is called "OPEN" on Branch side, you need to insert the same event name in Adv. EventType ID section in Swaarm as follows,
These are suggested templates that you can use, but you can add or delete some parameters that are macros based on your company's requirements.
For the full list of Postback parameters supported by Swaarm, click here
You can find the additional Postback link macros supported by Branch, here