Postback tracking explained: S2S conversion tracking for affiliates
Updated November 16, 2026
Postback tracking, also called server-to-server (S2S) tracking, is how most affiliate networks record conversions. Instead of loading a pixel in the visitor's browser, the advertiser's server calls a URL on your tracker when a conversion happens. Because no browser is involved, ad blockers, cookie restrictions and closed tabs do not lose conversions.
How it works, step by step
- A visitor clicks a partner's tracking link. The tracker records the click and creates a unique click ID.
- The tracker redirects the visitor to the advertiser, adding the click ID to the URL, for example
?click=abc123. - The advertiser stores the click ID with the visitor's session or lead.
- When the visitor converts, the advertiser's server calls your postback URL with that click ID.
- The tracker matches the click ID, records the conversion with the right partner and payout, and fires the partner's own postback if they have one.
Building the offer URL
The offer URL is where the tracker sends visitors. Use macros so each click carries its own values:
Common macros: {clickid} (required for postbacks), {affid} (affiliate ID), {offerid}, {s1}–{s5} (affiliate sub IDs), {source}, {country}, {device} and {payout}. Many platforms also accept aliases such as {transaction_id}, {aff_id}, {offer_id} and {aff_sub1}.
Building the postback URL
Give the advertiser one URL and tell them which of their placeholders to use for the click ID:
Optional parameters many networks use:
&goal=sale: which conversion goal this is, when an offer pays for several events&amount=49.99: the sale value, useful for reporting and revenue-share deals&txid=ORDER123: the advertiser's order ID, so the same conversion can never be counted twice
Security: always use a token
Anyone who learns a postback URL could fake conversions. A secret token in the URL, which the tracker checks on every call, prevents that. Rotate it if it ever leaks, and pair it with transaction IDs to block replays.
Testing a postback
- Click your own tracking link and copy the click ID from the landing page URL.
- Open the postback URL in a browser with that click ID. You should see
OK. - Check the conversion appears in reports and in the postback log.
- Call it again: the second call should be rejected as a duplicate.
When you can't use a postback
Some advertisers (often smaller e-commerce sites) can only place a tag on their thank-you page. A pixel works there, with two caveats: it depends on cookies, and some browsers block third-party cookies. A first-party script that saves the click ID on the advertiser's own domain solves most of that. Ultimate Affiliates supports image, JavaScript and iframe pixels plus a first-party script.
Partner (outgoing) postbacks
Your partners usually run their own trackers too. When a conversion is approved, the network calls the partner's postback URL with their click ID and payout so their numbers match yours. A postback log with the exact URL and response code ends most "missing conversion" arguments in a minute.