Guide

What is a postback URL? S2S conversion tracking explained with examples

On this page

On this page

  1. Short answer
  2. How S2S postback tracking works
  3. What goes into a postback URL
  4. Passing the click ID to the offer
  5. Postback vs pixel
  6. Statuses, refunds and repeat sales
  7. Postback to the traffic source
  8. How to test a postback
  9. Troubleshooting
  10. FAQ

Short answer

A postback URL is an address on your tracker that the affiliate network calls, server to server, when one of your clicks converts. The request carries the tracker's click ID (which you passed to the offer in a sub-ID parameter), the payout and usually a status, for example https://tracker.cybkit.com/postback.php?click_id=8f3k2&amount=12.50&status=approved. Because it goes from the network's server to the tracker's server, it does not depend on the visitor's browser, cookies or ad blockers. This is why it is also called S2S tracking and is the standard way to track conversions in affiliate marketing.

Key takeaways

  • The tracker creates a unique click ID for every click and sends it to the offer in the network's sub-ID parameter.
  • On a conversion the network fills its macro for that sub-ID into your postback URL and calls it; the tracker matches the click ID to the click.
  • Add payout, status and a transaction ID so refunds, pending leads and repeat sales are counted correctly.
  • A second postback, from your tracker to the traffic source, lets the ad network optimise on real conversions.
  • Test with a real click from a browser, then call the postback once by hand before you spend money.

How S2S postback tracking works

  1. A visitor clicks your ad and passes through the tracker's campaign link. The tracker records the click and gives it a unique click ID, for example 8f3k2.
  2. The tracker redirects the visitor to the offer and adds the click ID to the affiliate link: https://network.example/offer?aff_id=123&aff_sub=8f3k2.
  3. The affiliate network stores 8f3k2 with its own record of the visit.
  4. The visitor converts. The network takes your postback URL, replaces its macros (for example {aff_sub} and {payout}) with the real values and requests it from its server.
  5. The tracker finds click 8f3k2, records the conversion with its payout and status, and updates revenue, profit and ROI for that click's campaign, source, zone, lander and country.

What goes into a postback URL

A postback URL is a plain GET request with query parameters. In Cybkit Tracker it looks like this, with the network's macros in braces:

https://tracker.cybkit.com/postback.php?click_id={aff_sub}&amount={payout}&status={status}&transaction_id={transaction_id}
ParameterRequiredWhat it does
click_idYesThe tracker's click ID, filled by the network's macro for the sub-ID you used.
amount (payout)RecommendedThe payout for this conversion. Without it, trackers usually fall back to the offer's fixed payout.
statusRecommendedApproved, pending or rejected. Rejected leads and chargebacks are removed from revenue; pending leads count until they are rejected.
transaction_idRecommendedThe network's ID for the conversion; stops a retried postback from being counted twice.

Parameter names differ between trackers, but the idea is the same everywhere. The exact parameters of Cybkit Tracker are in the postback reference.

Passing the click ID to the offer

The network can only send back what it received. Put the tracker's click ID into one of the network's sub-ID parameters in the offer URL, and use the macro of the same parameter in the postback. Common sub-ID names:

  • aff_sub … aff_sub5, returned as {aff_sub} (networks running on TUNE/HasOffers);
  • sub1 … sub5, returned as {sub1} (networks running on Everflow);
  • s1 … s5, returned as #s1# (networks running on CAKE);
  • subid, sub_id, clickid or s2 on custom platforms.

Always check the network's own postback page: it lists the parameter to use and the macro that returns it.

Postback vs pixel tracking

Postback (S2S)Pixel (browser)
Who sends itThe network's serverThe visitor's browser on the thank-you page
Needs cookiesNo, the click ID travels in the URLUsually, or the click ID in the page URL
Blocked by ad blockers or privacy settingsNoOften
Can report later status changes (approval, refund)Yes, with a new postbackNo, only the moment of the page view
When to useAffiliate networks and anything with a serverYour own pages where you cannot send a postback

Use postbacks wherever the network supports them. Pixels and JavaScript events are still useful for your own funnel steps, such as a registration on your own site; Cybkit Tracker supports both as custom events.

Statuses, refunds and repeat sales

  • Pending → approved. Many networks hold leads before approving them. Send the postback with status=pending, and a second one with status=approved when it is confirmed; the tracker updates the same conversion (a payout sent with the new status replaces the first one, it is not added twice).
  • Rejected and chargebacks. A postback with status=rejected (or refunded, chargeback) removes the revenue, so ROI stays honest.
  • Repeat sales. Subscriptions, deposits and rebills produce several conversions on one click. Each one needs its own transaction_id: a postback with a payout and a new transaction ID adds a sale; one with a known transaction ID, or without any, only updates the status.

Postback to the traffic source

Ad networks optimise better when they know which clicks converted. Most self-serve networks give you their own postback URL with their click ID macro. Pass the source's click ID into the tracker with the campaign link (Cybkit Tracker stores it as {external_id}), and add the network's URL to the traffic source in the tracker:

https://network.example/conversion?clickid={external_id}&payout={payout}

The tracker then calls it for every conversion it receives from the affiliate network, so the traffic source sees conversions without ever seeing your offer.

How to test a postback

  1. Open your campaign link in a normal browser (command-line tools are usually filtered as bots) and land on the offer.
  2. Find the click in the tracker's click log and copy its click ID.
  3. Build the postback by hand with that click ID and open it in the browser, for example https://tracker.cybkit.com/postback.php?click_id=8f3k2&amount=1&status=approved.
  4. Check that the conversion appears on the click and in reports, then send the same postback with status=rejected to take the test revenue out again.
  5. Many networks also have a "test postback" button: use it after your own test to check that their macros are filled in.

Troubleshooting

SymptomUsual causeFix
"Click ID not found"The click ID was not in the offer URL, or the postback uses the macro of a different sub-IDOpen the offer link from the tracker and check the sub-ID parameter; use the macro of the same parameter
Literal {aff_sub} arrivesThe macro name is wrong, so the network did not replace itCopy the macro exactly from the network's postback page
Conversions counted twiceThe network retries the postbackAdd transaction_id
Revenue too highRejected leads or chargebacks reported as approvedPass the status macro
Conversions missing in the traffic sourceThe source's click ID is not passed into the trackerAdd the source's click ID macro to the campaign link and its postback URL to the traffic source

Frequently asked questions

What does S2S mean?

Server-to-server: the conversion is reported by the affiliate network's server directly to the tracker's server, without the visitor's browser.

Is a postback URL the same as a callback or webhook?

It is the same idea: a URL your system exposes and another system calls when an event happens. In affiliate marketing it is called a postback, server postback or S2S postback.

Do postbacks need cookies?

No. The click ID travels in the URL to the offer and comes back in the postback, so cookie restrictions and ad blockers do not affect it.

Can a postback report a refund?

Yes. A later postback with the same click ID and transaction ID and a rejected, refunded or chargeback status changes the conversion, and the revenue is removed from your reports.

Where do I find my postback URL in Cybkit Tracker?

It is shown in the tracker and in the documentation: https://tracker.cybkit.com/postback.php?click_id={click_id}&amount={payout}&status={status}, with the network's macros in braces.

More guides

Try it on your next campaign

Cybkit Tracker is free up to 100,000 clicks a month, with every feature included.

Start free — 100,000 clicks/month

No card needed · All features included