Overview
This guide covers the full integration between Swaarm and Affise — whether you're connecting an Affise advertiser or an Affise publisher, and whether you need standard click ID attribution or Privacy-Enabled (PEA Chain) attribution for iOS 14.5+.
Advertiser Side
Standard Attribution - Tracking Link
In the Affise tracking link, pass the {id} macro as your click ID using one of the free sub-account parameters (sub1 - sub8) - the exact parameter must be selected by your Advertiser
Tracking link example:
https://yournetwork.g2afse.com/click?pid=1234&offer_id=1234&sub1={id}&sub2={publisher.id}_{publisher.subId}&sub3={publisher.app}ℹ️
For all Affise tracking link parameters → Affise Parameters for S2S Integration
For Swaarm tracking macros → Advertiser Tracking Details
Standard Attribution - Postback
Swaarm supports a single global postback to track installs, post-install events, and probabilistic conversions — no need to set up multiple postbacks for Affise advertisers.
Global postback example:
https://yournetwork.com/postback?click_id={sub1}&event_id={goal}&sale_amount={sum}ℹ️ For all Affise postback macros → Affise Postback URL Macros
Privacy-Enabled Attribution (PEA Chain) - Tracking Link
Add {pea.chain}_, to your tracking link in a parameter your advertiser can return in the postback - in this example, sub8.
❗ The underscore and comma after {pea.chain} are required to conform with Affise's probabilistic attribution structure.
Tracking link example:
https://yournetwork.g2afse.com/click?pid=1234&offer_id=1234&sub1={id}&sub2={publisher.id}_{publisher.subId}&sub3={publisher.app}&sub8={pea.chain}_,Privacy-Enabled Attribution (PEA Chain) - Postback
Add pea_chain to your existing postback. If no additional postback can be configured in Affise for the probabilistic framework, append pea_chain to your existing advertiser-side postback.
Postback example:
https://yourdomain.swaarm-clients.com/postback?event_id={goal}&click_id={sub1}&pea_chain={sub8}ℹ️ For more on how PEA Chain works → Privacy Enabled Attribution
Publisher Side
Standard Attribution - Tracking Link
For click and impression attribution, include the publisher click ID, publisher ID, publisher Sub ID, and device identifiers. Also add ext_offer_id and ext_publisher_id parameters for cases where click ID attribution is not possible.
ext_offer_id- the ID of the publisher's offer as defined in Affiseext_publisher_id- the Affise partner's publisher ID
Tracking link example:
http://yournetwork.trckswrm.com?offer_id=123&pub_id=23&ext_offer_id={offer_id}&ext_pub_id={pid}&pub_sub_id={pid}&pub_click_id={click_id}&idfa=[Publisher_idfa_macro]&gaid=[Publisher_gaid_macro]Standard Attribution - Postback
General global postback for click/impression ID attribution:
https://publisher.affise.com/postback?clickid=#{click.publisher.clickId}&goal=#{offer.eventTypeId}&sum=#{payout.theyGetInDollars}ℹ️ For all Affise postback parameters → Affise Postback URL Parameters
Privacy-Enabled Attribution (PEA Chain) - Postback
Since no unique ID can be sent in probabilistic attribution, use #{ext.offerId} and #{ext.publisherId} for attribution. Include #{id} (postback ID) to prevent duplicate counting.
Postback for probabilistic attribution:
https://publisher.affise.com/probattribution?action_id=#{id}&goal=#{offer.eventTypeId}&offer_id=#{ext.offerId}&pid=#{ext.publisherId}&sum=#{payout.theyGetInDollars}ℹ️
The event ID macro
#{offer.eventTypeId}is replaced by#{eventType.advertiserEventTypeId}for clients migrated from another tracking platform to Swaarm.For all Swaarm publisher postback macros → Publisher Tracking Details
