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
- 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. - 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. - The affiliate network stores
8f3k2with its own record of the visit. - 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. - 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}
| Parameter | Required | What it does |
|---|---|---|
click_id | Yes | The tracker's click ID, filled by the network's macro for the sub-ID you used. |
amount (payout) | Recommended | The payout for this conversion. Without it, trackers usually fall back to the offer's fixed payout. |
status | Recommended | Approved, pending or rejected. Rejected leads and chargebacks are removed from revenue; pending leads count until they are rejected. |
transaction_id | Recommended | The 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,clickidors2on 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 it | The network's server | The visitor's browser on the thank-you page |
| Needs cookies | No, the click ID travels in the URL | Usually, or the click ID in the page URL |
| Blocked by ad blockers or privacy settings | No | Often |
| Can report later status changes (approval, refund) | Yes, with a new postback | No, only the moment of the page view |
| When to use | Affiliate networks and anything with a server | Your 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 withstatus=approvedwhen 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(orrefunded,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
- Open your campaign link in a normal browser (command-line tools are usually filtered as bots) and land on the offer.
- Find the click in the tracker's click log and copy its click ID.
- 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. - Check that the conversion appears on the click and in reports, then send the same postback with
status=rejectedto take the test revenue out again. - Many networks also have a "test postback" button: use it after your own test to check that their macros are filled in.
Troubleshooting
| Symptom | Usual cause | Fix |
|---|---|---|
| "Click ID not found" | The click ID was not in the offer URL, or the postback uses the macro of a different sub-ID | Open the offer link from the tracker and check the sub-ID parameter; use the macro of the same parameter |
Literal {aff_sub} arrives | The macro name is wrong, so the network did not replace it | Copy the macro exactly from the network's postback page |
| Conversions counted twice | The network retries the postback | Add transaction_id |
| Revenue too high | Rejected leads or chargebacks reported as approved | Pass the status macro |
| Conversions missing in the traffic source | The source's click ID is not passed into the tracker | Add 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.