Affiliate Marketing

Postback Tracking: Server-to-Server Conversions Explained

Browser cookies were the backbone of affiliate tracking for two decades. They are also fragile. Privacy settings, ad blockers, consent choices, private browsing and device switching all break them,…

Browser cookies were the backbone of affiliate tracking for two decades. They are also fragile. Privacy settings, ad blockers, consent choices, private browsing and device switching all break them, and each break means a sale you influenced goes unrecorded.

Postback tracking solves much of that problem by moving the record of a conversion off the visitor's browser and onto servers. For paid traffic buyers and larger publishers, postbacks are the backbone of measurement. For everyone else, understanding them helps you choose programs that track well and diagnose problems when numbers do not add up.

This guide explains what postback tracking is, how click IDs and macros work, how to set up and test a postback, and the mistakes that most often corrupt the data.

What Is Postback Tracking?

A postback is a server-to-server message that reports a conversion. Instead of relying on a cookie in the visitor's browser to remember who referred them, the merchant's or network's server sends a request directly to another server saying, in effect: "the click with this ID just converted, for this amount, with this status."

You will see several names for the same idea: server-to-server (S2S) tracking, server postback, pixel-less tracking or API-based conversion tracking.

Postbacks flow in two directions in affiliate marketing:

  1. Merchant to network. The merchant's system reports a conversion to the affiliate network, which credits the affiliate. Publishers benefit from this without setting anything up, but should ask whether a program uses it.
  2. Network to affiliate. The network reports the conversion to the affiliate's own tracking software, so the affiliate can see which ad, keyword or campaign produced it. This is the setup paid traffic buyers configure themselves.

How Server-to-Server Tracking Works

Here is the basic flow when a program uses server-side tracking:

  1. A visitor clicks your link, and the tracking system generates a unique click ID.
  2. The click ID is passed to the merchant's site in the URL.
  3. The merchant stores the click ID with the visitor's session or account.
  4. When the visitor converts, the merchant's server sends a postback to the network, reporting the click ID and the sale.
  5. The network matches the click ID to your click and credits you.

Because the record lives on servers, it survives many problems that kill cookies, such as cleared browser storage or blocked third-party cookies. It is also generally more accurate and harder to tamper with than a browser pixel.

How Postbacks Work for Paid Traffic Buyers

If you buy ads for affiliate offers, you need to know which ad, audience or keyword produced each conversion. Network dashboards rarely show that level of detail. A postback to your own tracker does.

How parameters flow

  1. Your tracker generates a click ID when a visitor clicks your ad or link.
  2. The click ID is passed in the affiliate link, usually in a sub-ID field the program supports.
  3. When a conversion occurs, the network sends a postback to a URL you supply, replacing placeholders, called macros or tokens, with real values.

A postback URL might include placeholders for:

  • The click ID or sub-ID you passed.
  • The payout amount.
  • The currency.
  • The conversion status: pending, approved or reversed.
  • The transaction or order ID.
  • The time of the conversion.

Here is an illustrative postback URL. The placeholder names are invented, because every platform uses its own:

https://tracker.example.com/postback?cid={sub1}&payout={amount}&currency={currency}&status={status}&txid={transaction_id}&token=SECRET

When a conversion happens, the network fills in the placeholders and calls the URL:

https://tracker.example.com/postback?cid=8f3k29a&payout=42.00&currency=USD&status=pending&txid=TX-100234&token=SECRET

Your tracker looks up click 8f3k29a, finds the ad and keyword that produced it, and records a $42 pending conversion against them.

Postbacks Versus Pixels

FeatureBrowser pixelServer postback
Where it firesIn the visitor's browser on the thank-you pageBetween servers
Affected by ad blockers and cookie settingsYesLargely no
Can report later status changesRarelyYes, if the program sends updates
Ease of setupOften simplerNeeds a tracker and correct macros
Resistance to tamperingLowerHigher, especially with a secret token
Typical usersSimple setups, some smaller programsPaid traffic buyers, larger publishers, modern programs

Some programs use both, with the pixel as a fallback. When you have the choice, prefer the postback.

Good Postback Practice

A postback is only as useful as its configuration. These practices prevent most problems.

Use the program's exact placeholder names

Macro names differ between platforms. One might use {transaction_id}, another {order_id}, another [TXN]. If you copy a postback URL from one program to another without changing them, the placeholders arrive as literal text and your tracker records nothing useful.

Handle status updates

Conversions often arrive as pending and later change to approved or reversed. Your tracker should update the same transaction rather than counting it twice. If it cannot, you will overstate revenue for every program with reversals.

Deduplicate by transaction ID

Networks sometimes resend postbacks after timeouts or errors. Deduplicating by transaction ID ensures a postback sent twice does not count twice.

Secure the endpoint

Anyone who discovers your postback URL could send fake conversions to your tracker, inflating your numbers and leading you to scale unprofitable campaigns. Accept postbacks only from known sources, or require a secret token in the URL that only you and the network know.

Log every postback

Keep a raw log of every postback received, with the full URL and timestamp. When numbers disagree, the log is the first place to look.

Test before launch

Use the program's test tools to fire a test postback, and confirm your tracker records it with the right click ID, payout, currency and status. Never launch paid traffic on an untested postback.

Tip: Keep a one-page "postback register" listing each program, its macro names, the exact postback URL you gave it, the date you tested it and the result. When something breaks months later, you will know exactly what was configured and when.

Diagnosing Postback Problems

When conversions in your tracker do not match the network's report, work through these causes in order.

  1. The click ID is not being passed. Check that your affiliate links include the click ID in the correct sub-ID field, and that it survives every redirect.
  2. The macros are wrong. Compare the postback URL you supplied with the program's documentation, character by character.
  3. The postback is not firing. Ask the program whether it supports postbacks for this offer and whether they are enabled on your account.
  4. The endpoint rejects it. Check your logs for blocked requests, wrong tokens or server errors.
  5. Status updates are missing. If pending conversions never become approved or reversed in your tracker, the program may not send updates, or your tracker may not process them.
  6. Currency mismatches. If payouts arrive in different currencies and your tracker assumes one, revenue figures will be wrong.
  7. Time zones. A program reporting in one time zone and your tracker in another will show conversions on different days. Totals over a week should still match.

Postbacks and Paid Platform Integration

Paid traffic buyers often go a step further and send conversion data back to the ad platform itself, so its bidding algorithms can optimize toward real conversions. The usual pattern is:

  1. The ad platform appends its own click identifier to your landing page URL.
  2. Your tracker stores it alongside your click ID.
  3. When the network's postback arrives, your tracker sends the conversion to the ad platform, matched to its click identifier.

This closes the loop: the ad platform learns which clicks produced commissions, not just which produced visits. It also raises the stakes for accuracy. If you send the ad platform inflated or duplicated conversions, it will optimize toward the wrong traffic.

What Publishers Without a Tracker Should Know

If you run a content site or newsletter and never buy ads, you may never configure a postback yourself. Postbacks still matter to you, for three reasons:

  • Programs with server-side tracking credit more of your sales. When comparing two similar programs, server-side tracking is effectively a higher rate.
  • Reports are more trustworthy. Server-side programs are less prone to unexplained gaps between your clicks and their conversions.
  • You can ask better questions. "Do you use server-to-server tracking, and does it cover mobile app purchases?" tells an affiliate manager you know what you are doing.

Example: Scaling the Wrong Campaign

Here is an illustrative example with invented figures. A media buyer runs two ad campaigns for the same software trial offer, paying $30 per approved trial. The tracker shows Campaign A with 50 conversions from $1,000 of spend and Campaign B with 30 conversions from $1,000. Campaign A looks far better, so the buyer doubles its budget.

At month end, the network approves only 28 of Campaign A's conversions and 27 of Campaign B's. Checking the postback log reveals the problem: Campaign A's offer was set up with an older postback URL that did not include the transaction ID. When the network resent postbacks after a timeout, the tracker counted them twice, and it never processed the reversals that followed.

After fixing the macros and enabling deduplication and status updates, the true picture appears. Campaign A earned $840 on $1,000 of spend and Campaign B earned $810. Both were losing money. The buyer had been scaling a loss because of a configuration error.

Step-by-Step: Setting Up a Postback

Every platform differs in the details, but the setup usually follows the same sequence.

  1. Create the offer in your tracker. Record the program, offer name, payout type and expected currency.
  2. Find the program's macro list. Look in the network's documentation or ask the affiliate manager for the exact placeholder names for click ID, payout, currency, status and transaction ID.
  3. Build the postback URL. Start from your tracker's postback template and replace each value with the program's macro. Add your secret token.
  4. Add the click ID to your affiliate link. Put your tracker's click ID token into the sub-ID field the program supports, so every click carries it.
  5. Enter the postback URL in the network dashboard. Some networks set it per offer, others per account. Note which.
  6. Fire a test. Use the network's test function, or a real low-value conversion if the program allows it.
  7. Check the log. Confirm that the request arrived, the token matched, and every macro was replaced with a real value rather than literal placeholder text.
  8. Check status updates. Ask the program whether it sends a second postback when a conversion is approved or reversed, and confirm your tracker updates the original record.
  9. Record everything in your postback register, including the date tested.

Only after all nine steps should you send real traffic. A day spent testing is far cheaper than a month of decisions based on broken data.

Choosing Tracking Software

You do not need a specific brand of tracker, but you do need certain capabilities. When comparing options, look for:

  • Unique click ID generation for every click, with a token you can insert into affiliate links.
  • Flexible postback endpoints that accept any parameter names and a secret token.
  • Status handling that updates pending conversions to approved or reversed.
  • Deduplication by transaction ID.
  • Raw logs of every incoming postback.
  • Multi-currency support and a configurable time zone.
  • Ad platform integration, if you plan to send conversions back for bidding.
  • Data export, so your history is never locked inside one vendor.

Self-hosted trackers give more control and lower running costs at scale but need technical maintenance. Hosted trackers are faster to start but charge by volume. Either can work; what matters is that the capabilities above are present and that you test them.

Data to Keep From Every Postback

Even if your tracker summarizes data neatly, keep the raw fields for at least the length of your longest hold period plus a few months:

FieldWhy it matters
Click IDConnects the conversion to the ad, keyword and landing page
Transaction IDEnables deduplication and matching with network reports
Payout and currencyNeeded for revenue and return on ad spend
Status and status dateShows reversals and how long approvals take
Received timestampHelps with time zone and delay issues
Source IP or token check resultHelps detect fake or spoofed postbacks

With this data you can reconcile any month against the network's statement and spot a problem before it costs you real money.

Common Mistakes

  • Copying a postback URL between programs without changing the macro names.
  • Counting pending conversions as revenue and never processing reversals.
  • Leaving the postback endpoint open, so anyone can send fake conversions.
  • Not deduplicating by transaction ID, so resent postbacks inflate results.
  • Launching paid traffic before firing and checking a test postback.
  • Ignoring currency and time zone differences when comparing reports.
  • Sending unverified conversion data to ad platforms, which then optimize toward the wrong traffic.

Frequently Asked Questions

What is a postback URL?

A postback URL is the address you give an affiliate network so it can notify your tracker when a conversion happens. It contains placeholders the network replaces with real values, such as the click ID, payout and status.

Is postback tracking better than pixel tracking?

Generally, yes. Postbacks travel between servers, so they are not blocked by ad blockers or cookie settings, they can report later status changes, and they are harder to tamper with. Pixels can be simpler to set up.

What is a click ID in a postback?

A click ID is a unique identifier your tracker generates for each click. You pass it in the affiliate link, and the network returns it in the postback so your tracker can match the conversion to the exact ad and keyword.

Why is my postback not firing?

Common causes are a missing click ID in the link, wrong macro names, postbacks not being enabled for the offer, or your endpoint rejecting the request. Check the program's documentation and your logs.

Do I need postback tracking if I don't buy ads?

You rarely need to configure it yourself, but you benefit when programs use server-to-server tracking, because it credits more of your sales accurately.

How do I stop fake postbacks?

Require a secret token in the postback URL, accept requests only from known sources where possible, and log every postback so you can spot anything unusual.

For a vendor-neutral explanation of how servers exchange this kind of request, see MDN's overview of HTTP request methods.


Postbacks turn paid traffic from guesswork into measurement, but only when they are configured correctly. When special characters in your parameters cause trouble, the free URL Encoder / Decoder shows exactly what is being passed.