Affise <-> Swaarm
Natalya Yefimenko avatar
Written by Natalya Yefimenko
Updated over a week ago

Before you begin

General integration

Swaarm Tracking URL

Set up a Swaarm tracking URL to send information about clicks to Swaarm.

  1. Add the Swaarm pub_click_id parameter and Affise {clickid} macro to the Swaarm Tracking URL.

πŸ”Ž Find the list of Swaarm parameters here and Affise macros here.

2. In Offers > a certain offer > Tracking, put the updated tracking URL into the Tracking URL field.

Edit offer PlayCash.network 2022-03-17 at 1.26.00 PM

Swaarm tracking URL example:

https://rocketcompany.trckswrm.com/click?pub_click_id={clickid}

Affise Postback URL

Set up your postback URL to get information about conversions from Swaarm.

  1. In Offers > a certain offer > Postabcks, get a sample postback URL.

  2. Update your postback with the &clickid parameter and #{click.publisher.clickId} macro.

πŸ”Ž Find the list of Swaarm macros here and Affise parameters here.

Edit offer PlayCash.network 2022-03-17 at 1.27.50 PM

Affise Postback URL example:

https://offers-rocketcompany.affise.com/postback?clickid=#{click.publisher.clickId}

Probabilistic Attribution

If you use probabilistic attribution, you can't pass click ID values. You need to use other parameters and macros to match your conversions.

Tracking links

Use the ext_offer_id and ext_publisher_id parameters for offers where click attribution is not possible. Add the Affise {offer_id} and {pid} macros respectively.

Swaarm tracking URL example:

http://rocketcompany.trckswrm.com?offer_id=123&pid=23&ext_offer_id={offer_id}&ext_pub_id={pid}

Postback links

You should pass the information about the click back in the postback.

  1. Update the Affise postback with the offer_id and pid parameters.

  2. Add the Swaarm the {ext.offerId} and {ext.publisherId} macros respectively.

  3. To ensure that no duplicate counting occurs, send the postback id using the action_id parameter and {id} macro.

Affise Postback URL example:

https://offers-rocketcompany.affise.com/probattribution?action_id=#{id}&goal=#{offer.eventTypeId}&offer_id=#{ext.offerId}&pid=#
{ext.publisherId}

Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].

Did this answer your question?