Once you buy traffic or promote offers across several networks, the network dashboard stops being enough. You need sales to appear in your tracker, next to the ad, keyword or email that produced them. The standard way to do that in affiliate marketing is a postback URL, also called server-to-server (S2S) tracking.
This guide explains what a postback URL is, how the click ID makes the round trip, what the tokens in a postback mean, how postbacks compare with pixels, and how to set one up and test it.
What Is a Postback URL?
A postback URL is a web address that one server calls to tell another server that a conversion happened. In affiliate marketing, your tracker generates the postback URL, and you paste it into your affiliate network or merchant account. When a sale or lead occurs, the network's server calls that address and passes along details such as the click ID, payout and transaction ID.
Because the message travels from server to server, it does not depend on the buyer's browser loading a pixel or keeping a cookie. Ad blockers, privacy settings and cross-device purchases are less likely to break it.
Other names for the same idea include S2S tracking, server postback, callback URL and server-side conversion tracking. Some platforms also call it a webhook.
How Server-to-Server Tracking Works
- The click. A visitor clicks your ad or link and lands on your tracker's link first.
- The click ID. The tracker records the click with everything it knows (source, campaign, ad, device, location) and creates a unique click ID.
- The redirect. The tracker sends the visitor to your affiliate link, passing the click ID in the network's sub-ID field.
- The sale. The visitor buys. The network credits the sale to your affiliate account and stores the sub-ID with it.
- The postback. The network's server calls your postback URL, inserting the stored click ID and sale details.
- The match. Your tracker matches the click ID to the original click and records the conversion and revenue against that ad or source.
The whole system depends on step three. If the click ID is not passed in the right sub-ID field, the network has nothing to send back and the sale cannot be matched.
Anatomy of a Postback URL
A postback URL is an ordinary address with placeholders, called tokens or macros, that the network replaces with real values at the moment of conversion. A generic example:
https://track.example.com/postback?clickid={sub1}&payout={payout}&txid={transaction_id}
| Part | What It Does |
|---|---|
| Base address | The tracker's endpoint that receives conversions |
| clickid={sub1} | Returns the click ID that the tracker originally placed in the network's sub1 field |
| payout={payout} | Sends your commission amount so the tracker can calculate profit |
| txid={transaction_id} | A unique sale ID that helps prevent duplicate conversions |
| Optional event or status | Distinguishes leads, sales, rebills or refunds where supported |
The exact token names differ by network: one may use {sub1}, another {aff_sub}, {s1} or {subid}. Your tracker usually provides a template for popular networks, and the network's documentation lists its own tokens. The parameter names on the left of each equals sign belong to your tracker; the tokens in braces belong to the network.
Postbacks vs Pixels

| Postback (S2S) | Pixel | |
|---|---|---|
| Sent from | Network or merchant server | Buyer's browser |
| Affected by ad blockers and browser privacy | Generally no | Yes |
| Needs code on the checkout page | No | Yes |
| Works across devices | Yes, if the network attributes the sale | Often not |
| Setup difficulty | Moderate: tokens must match | Simple if you control the page |
| Best for | Affiliate offers on networks | Your own thank-you pages and lead forms |
For affiliate offers, postbacks are usually the better choice because you rarely control the merchant's checkout page. Pixels still make sense on pages you own.
Three Kinds of Postback
The word "postback" is used for three related flows, which can be confusing:
- Network to tracker: the affiliate network reports a sale to your tracker. This is what most affiliates mean.
- Tracker to traffic source: your tracker reports the conversion back to the ad network that sent the click, so its algorithm can optimize. Many native and push ad networks support this.
- Tracker to ad platform via API: for Meta, Google and TikTok, conversions are usually sent through each platform's conversion API rather than a simple URL. Tools such as ClickMagick and Hyros handle this for supported platforms.
A complete paid-traffic setup often uses all three: the network tells your tracker about the sale, and your tracker tells the ad platform.
How to Set Up a Postback
- Add the network in your tracker. Many trackers include templates for common networks with the correct tokens pre-filled.
- Copy the postback URL your tracker generates.
- Paste it into the network. Look for a setting named postback, S2S, server-to-server, callback or integration in the network's affiliate settings. Some networks set postbacks per offer, others globally.
- Pass the click ID on your links. Build tracking links in your tracker so the click ID goes into the correct sub-ID field on the affiliate link.
- Map the tokens. Make sure the token in the postback matches the sub-ID field you used, for example {sub1} with sub1.
- Test. Use the network's test postback feature if it has one, or make a small test purchase where allowed.
Some platforms use their own integration method instead of a generic postback. ClickBank, for example, sends sale data through its Instant Notification Service (INS), which trackers such as ClickMagick support. Our guide to tracking ClickBank sales covers that setup.
Testing and Troubleshooting
When conversions show in the network but not in your tracker, work through these checks:
| Symptom | Likely Cause |
|---|---|
| No conversions arrive at all | Postback not saved, wrong URL, or set on a different offer |
| Conversions arrive but are unmatched | Click ID not passed on the link, or token does not match the sub-ID field |
| Payout shows as zero | Payout token missing or misspelled |
| Duplicate conversions | No transaction ID passed, or the network fires twice for one sale |
| Some sales missing | Visitors reached the offer without your tracking link, or the sale fell outside the attribution window |
| Refunds still counted | The network or tracker does not send or process refund events |
Check the raw postback log in your tracker if it has one. It shows exactly what the network sent, which usually reveals the problem in seconds.
Postbacks and Recurring or Upsell Revenue
Many offers pay more than once. A customer might buy a front-end product, then an upsell, then keep paying a subscription. Whether your tracker sees that later revenue depends on whether the network sends a postback for each event and whether your tracker accepts multiple conversions per click.
If you promote recurring commission programs, check whether rebills are reported. Without them, a campaign that looks break-even on the first sale may actually be profitable over several months, or the reverse if refunds are not reported.
Privacy and Data Quality

Server-to-server tracking reduces reliance on the buyer's browser, but it does not remove your privacy duties. Send only what the tracker needs: a random click ID, payout and transaction ID. Never send names or email addresses through a postback unless both platforms are designed to handle that data and your privacy policy covers it. When you pass conversions on to ad platforms, follow each platform's rules for customer data.
Do You Need Postback Tracking?
If you only promote through content and email with a few programs, sub-IDs and network reports may be all you need. Postbacks matter when you buy traffic and need revenue per ad, when you promote offers across several networks and want one report, or when you need conversions sent back to ad platforms to improve targeting.
Most dedicated trackers support postbacks. Our comparison of the best link tracking software covers which tools fit which kind of affiliate, and our ClickMagick review looks at one of the tools most often used by affiliates who mix organic and paid traffic.
Receive Postbacks from Your Networks
ClickMagick integrates with 100+ affiliate networks, supports server-to-server tracking for private programs and includes a 14-day free trial.
A Worked Example
Suppose you run a small ad campaign to a software offer on an affiliate network that supports sub1 to sub5. Your tracker creates a tracking link for the campaign. When a visitor clicks your ad, the tracker records the click, generates a click ID such as 8f2k91, and redirects to the affiliate link with that value in sub1.
The visitor starts a trial and later becomes a paying customer. The network credits your account and calls your postback URL with sub1 replaced by 8f2k91, payout by the commission amount and transaction_id by the network's order number. Your tracker finds click 8f2k91, sees it came from ad set B on a mobile device, and adds the conversion and revenue to that ad set. If your tracker also sends conversions to the ad platform, it reports the sale there too.
Without the postback, you would see a sale in the network dashboard and a click in your ad account, with no reliable way to connect them.
Frequently Asked Questions
What Is a Postback URL in Affiliate Marketing?
It is an address generated by your tracker that the affiliate network calls when a conversion happens, passing the click ID and sale details so the tracker can match the sale to the original click.
Is S2S Tracking the Same as a Postback?
Yes. Server-to-server tracking, S2S, server postback and callback URL describe the same method.
Does Postback Tracking Use Cookies?
The postback itself does not. The network may still use cookies or other methods to attribute the sale to your affiliate account before sending the postback.
Why Are My Postback Conversions Not Showing?
The most common reasons are a click ID that was never passed on the link, a token that does not match the sub-ID field, or a postback saved on the wrong offer. Check your tracker's postback log.
Can I Use Postbacks with ClickBank?
ClickBank reports sales through its Instant Notification Service, which many trackers, including ClickMagick, integrate with. The effect is the same: sales are sent server to server.