Skip to content
Setup · spoke

How to set up a postback URL

Two postbacks, not one. The network tells your tracker about conversions; your tracker tells the traffic source. Most setups do the first and forget the second.

Reviewed and updated August 29, 2026 by the binom.courses editorial team · how we test

There are two postbacks in a working setup and they do different jobs:

Incoming: the affiliate network calls your tracker when a conversion happens. This fills in your revenue column and makes ROI reporting possible.

Outgoing: your tracker calls the traffic source when a conversion happens. This teaches the platform's optimiser what to buy more of.

Configure only the first and you get accurate reports on a campaign that never improves — which on Meta, TikTok or Google means losing most of what you are paying for.

Part one: the incoming postback

1

Copy your tracker's postback URL

It will look roughly like https://track.yourdomain.com/click.php?cnv_id=REPLACE&payout=REPLACE&cnv_status=REPLACE. Each REPLACE is a slot for one of the network's macros.

2

Find the network's macro names

Read that network's own documentation. Click ID names in the wild include {subid}, {aff_sub}, {s1}, {clickid} and #SUBID#. There is no standard. The postback reference lists the common ones.

3

Substitute the macros and add a secret

Fill in click ID, payout, status, currency and transaction ID. Then append something like &key= followed by a long random string, and configure your tracker to reject requests without it. Your postback URL is a write endpoint — anyone who learns it can invent conversions.

4

Save it in the network's postback field

Some networks have one global postback, some are per-offer, some are both. Per-offer settings usually override the global one, which is a common cause of “it works on one offer but not another”.

5

Configure deduplication

Set the network's transaction or order ID as a unique key. Networks retry postbacks they think failed, and without this a ten-minute outage produces duplicated conversions afterwards.

Part two: verify before you trust it

1

Send one real click from the ad

Not from a bookmarked tracking link, which skips macro substitution.

2

Read your click ID off the offer page's URL

It must be visible in the network's sub-parameter. If it is not there, stop — no postback configuration can rescue a click ID that never arrived.

3

Fire a test conversion

Most networks have a test button or will fire one on request. If neither, convert on a cheap offer yourself.

4

Check exactly one conversion arrived

One, not two. Correct payout, correct currency, correct status, plausible timestamp. Then check the status specifically — if you filter for approved and the network sends pending first, real conversions will never appear.

From testing:

If the test conversion does not arrive, check in this order: did the click ID reach the network at all, is the postback URL saved where you think it is (global versus per-offer), is any macro arriving as literal text, and does your status filter match what the network actually sends. That order resolves the large majority of cases.

Part three: the outgoing postback

Different platforms, different mechanisms:

PlatformMechanismWhat it needs
MetaConversions APIfbc derived from fbclid, plus a shared event_id
TikTokEvents APIttclid plus a shared event ID
Google AdsOffline conversion importgclid
TaboolaS2S postbackclick-id, spelled exactly with a hyphen
OutbrainPixel endpointob_click_id
Pop / push networksPostback URLTheir click macro, usually documented in the campaign settings

The deduplication requirement. If a browser pixel and a server-side event both fire for the same conversion without a shared event ID, the platform counts two. It then believes you convert at roughly double your real rate, bids up, and spends your budget on traffic that does not perform. Generate one event ID per conversion — an order ID works well — send it with both, and verify in the platform's events manager that exactly one deduplicated event arrives.

Attribution windows: set yours long enough

A conversion arriving outside your tracker's window has no click row to attach to and is recorded as unattributed.

Offer typeTypical conversion lagSuggested window
Pin submit, download, instant CPASeconds1-24 hours
Simple lead formMinutes1-7 days
Call-centre approved leadHours to days7-14 days
E-commerce saleHours to weeks14-30 days
Trial to paidDays to weeksTrial length plus a margin

Your window also cannot usefully exceed the network's own attribution window — if their cookie is seven days, a thirty-day setting on your side gains nothing.

Final checklist

  1. Incoming postback saved in the right place, global or per-offer.
  2. All macros substituted with that network's actual names.
  3. Shared secret appended and enforced.
  4. Transaction ID configured as a deduplication key.
  5. Status filter matching what the network sends.
  6. Attribution window at least as long as the offer's realistic lag.
  7. Outgoing conversion feedback configured with a shared event ID.
  8. One test conversion verified in both the tracker and the platform.

Frequently asked questions

How do I set up a postback URL?
Copy your tracker's postback URL, substitute the affiliate network's own macro names for click ID, payout, status, currency and transaction ID, append a shared secret, and save it in the network's postback field. Then verify with one real click and one test conversion before spending anything.
Do I need two postbacks?
Yes. The incoming postback from the network fills in your revenue column. The outgoing feedback to your traffic source teaches its optimiser what to buy. Configuring only the first gives you accurate reports on a campaign that never improves.
My test conversion did not arrive - what do I check first?
Whether the click ID reached the network at all, by reading the offer page's URL after a manual click. Then whether the postback is saved globally or per-offer, then whether any macro is arriving as literal text, then whether your status filter matches what the network sends.
Why does my tracker show conversions the network does not, or the reverse?
Usually a status filter mismatch - you accept only 'approved' while the network sends 'pending' first and approves later without re-firing. Check the status the network actually sends before changing anything else.
What attribution window should I set?
At least as long as the offer's realistic conversion lag - hours for instant CPA, a week or two for call-centre-approved leads, up to thirty days for e-commerce. It cannot usefully exceed the network's own attribution window.
How do I stop duplicate conversions?
For incoming postbacks, configure the network's transaction or order ID as a unique deduplication key so retries update rather than duplicate. For outgoing conversion APIs, send a shared event ID with both the pixel and the server event.

One campaign through two trackers

Run the same traffic through both for a week and compare each one's click count against the source. That settles it.

Start a free trial →

Affiliate link. How this site is funded.