Affiliate conversion tracking: postbacks, pixels and Conversions API explained
How affiliate conversion tracking works: click IDs, S2S postbacks, pixels and Conversions API, statuses and hold, deduplication, common mistakes and how to test before launch.
Affiliate conversion tracking answers one question: which click, ad and funnel brought this lead, approval or deposit. You need the answer twice. You need it to calculate ROI and kill losing campaigns. The ad network needs it so its algorithm can find more people like the ones who convert. Below is how it works in general: the ways to pass conversions, the role of the click ID, statuses and hold, deduplication, common mistakes and testing before launch. At the end — how the same setup looks in lidvanto.
How affiliate conversion tracking works#
The conversion almost never happens on your side: the order is confirmed by the affiliate network’s call center, the sign-up and deposit happen on the product’s site. Your tracker doesn’t see any of it. So the whole scheme relies on one tag that travels the full path and comes back:
- A person clicks an ad and lands on your tracking link.
- The tracker records the click and gives it a unique ID — the click ID.
- The tracker sends the person to the offer and appends the click ID to the affiliate link.
- The affiliate network stores the click ID with the order or the user.
- When the order status changes, the network reports it to the tracker along with the click ID.
- The tracker finds the click, records the conversion and, if configured, passes it on to the ad network.
The link between a click and money holds only through the click ID. Lose it at any step, and the conversion will arrive with nothing to attach to.
Click ID vs fbclid and ttclid#
The click ID is your tracker’s ID for a click. The tracker creates it, and it is unique for every visit. It reaches the affiliate network as a parameter in the offer URL. The network decides what that parameter is called: subid, sub1, aff_sub, clickid, sid5 — check its dashboard or docs.
fbclid and ttclid are the ad network’s click IDs. Meta and TikTok add them to the ad URL themselves. The tracker stores them and later sends them back to the ad network with the conversion, so the network knows which impression to credit.
So there are two IDs for two separate conversations: the click ID between the tracker and the affiliate network, fbclid and ttclid between the tracker and the ad network.
Three ways to pass a conversion: postback, pixel and API#
| S2S postback | Browser pixel | Server API (CAPI, Events API) | |
|---|---|---|---|
| Who sends it | affiliate network server → tracker | visitor’s browser → ad network | tracker → ad network |
| What it sees | orders, approvals, deposits on the network’s side | only what happens on your page | everything the tracker knows, postbacks included |
| Ad blockers | no effect | block part of the events | no effect |
| What it’s for | learn about the conversion and payout | page views, button clicks, browser IDs | train the ad network on real conversions |
The S2S postback is the main channel in affiliate marketing. The network calls your tracker’s URL and fills in the click ID, status and payout. How to set it up, with ready-made templates for popular CPA networks, is in the guide how to set up an S2S postback.
The pixel runs in the browser on your landing page. It won’t learn about a deposit made on the product’s site three days later, and ad blockers will cut part of the events. What it does give you is browser identifiers and on-page events.
The server API closes the gap: the conversion reaches the tracker by postback, and the tracker sends it to Meta through the Conversions API and to TikTok through the Events API. Details are in the guides on Meta Conversions API and TikTok Events API.
In practice these methods don’t compete, they complement each other: the postback brings the conversion into the tracker, the API passes it to the ad network, the pixel adds on-page events.
Statuses and hold#
A lead goes through several statuses at the affiliate network. Networks name them differently, but the meaning is the same:
- pending (
lead,pending,hold) — the lead is accepted, no decision yet; - approved (
approved,sale,confirm) — the network counted the conversion and credited the payout; - rejected (
rejected,trash,fail) — duplicate, fake, no answer, doesn’t meet the offer terms.
Hold is the time the network spends checking a lead before approving or rejecting it. While a lead is on hold, there is no money for it yet. Hence the main rule: count only approved conversions as revenue. If you count every lead, the report will show an ROI that disappears after reconciliation.
The second consequence is which event to send to the ad network. Optimizing for “lead” gives many signals quickly, but the algorithm may learn to bring people who submit forms and never buy. Optimizing for “approval” is more accurate, but there are fewer signals and they arrive after the hold. A common approach: train the network on leads at launch and switch to approvals once there are enough of them. Which event works better — test on your own numbers.
And third: the status of one order changes. An approval that arrives two days after the lead updates the same conversion, it isn’t a new one. Your tracker should update the status, not add a second row.
Deduplication: don’t count one conversion twice#
Duplicates appear in three places.
Repeated postback. A network may send the same postback twice — for example, if it got no response. The protection is the network’s event ID: order number, transaction or deposit ID. A repeat with the same ID must not be counted.
Browser and server at once. If a lead goes to the ad network both from the pixel and through the API, the network receives it twice. A shared event ID ties them together. Meta, according to its documentation, matches event_id and the event name and deduplicates events received within 48 hours. TikTok, according to its help center, matches the pixel ID, event name and event_id.
Status changes. Lead → approval → sometimes a refund. That’s the history of one order: the payout should change, not add up.
Common mistakes#
- No click ID in the offer URL. The network has nothing to send back, and conversions arrive “orphaned”.
- The macro itself arrives instead of the ID. The postback contains
{sub1}literally — the network didn’t fill it in. Check the syntax: some networks use curly brackets, others square ones. - Mixed-up parameters. The click ID goes out in
sub1, but the postback returnssub2. - A status under a different name. The network sends
confirmor2, but the tracker expectsapproved. The conversion gets stuck as pending or, worse, turns into an approval too early. - Hold counted as revenue. ROI in the report is higher than in the payout.
- Pixel and API without a shared event ID. The ad network sees twice as many conversions and learns from wrong data.
- Test leads left in the stats. The test is over, but the test lead keeps distorting your CR.
How to test the setup before you launch traffic#
- Open your ad link and make sure the click was recorded.
- Look at the address you were sent to: the network’s parameter must contain a real click ID, not
{click_id}. - Submit a test lead if the network has a test mode, or ask your affiliate manager to fire a test postback.
- Find the postback in the tracker’s logs: did it arrive, with what ID, status and payout, and how did the tracker respond.
- Check the ad network: Meta and TikTok both have a Test Events tab that shows test events sent with your code.
- Delete or mark test conversions so they don’t end up in the report.
Half an hour of testing is cheaper than a day of traffic with no conversions.
What affiliate tracking software should do — and how lidvanto does it#
Whatever affiliate marketing tracker you choose, it should cover the chain above: click IDs in the offer URL, postbacks with status mapping, server events to ad networks, deduplication and logs to debug. lidvanto is a traffic control center for teams and solo media buyers, and its tracker covers it like this:
- Click ID in the offer URL. In the Offer URL you put the
{click_id}macro into the network’s parameter, e.g.https://partner.example/?aff=123&subid={click_id}. Ad tags go through{sub_id_1}…{sub_id_30}. See Offers. - Two incoming postbacks. The affiliate network postback is one network-wide link with a secret token, macros and the What the affiliate network calls the statuses field: your network’s names map to pending, approved and rejected. Without an order number there is one conversion per click, and statuses update it. The campaign postback is
https://your-domain/traffic/postback/{click_id}/with a secret in a header, thekindevent andexternal_idagainst duplicates. See Affiliate network postback and Postbacks. - Hold doesn’t go into revenue. Revenue in the stats is deposits plus approved network commission. Pending and rejected conversions are visible on the Conversions page but don’t count toward profit. See Conversions and logs.
- Server events to Meta and TikTok. A conversion from a postback goes to the Conversions API and Events API by the campaign’s rules: tracker event → event name in the network. The events include Network approval, so you can train the network on approved orders. If the pixel code on the landing page is on too, the lead goes out with the same event ID and is counted once. See Meta and TikTok pixels.
- Testing. An affiliate network has a Test mode: orders are marked as test, postbacks are accepted. Statistics → Logs shows every postback and the tracker’s response, and a pixel has a test event button. See Clicks, conversions and logs.
There are limitations too. lidvanto is a cloud service; you can’t install the tracker on your own server. Server events go to Meta and TikTok; there is no conversion upload to Google Ads. For another tracker or partner there are outgoing postbacks — GET or POST on a click event.
There is no conversion without a working link. How the tracking link itself is built — macros, streams and checking that the link isn’t broken — is in the companion guide: affiliate link tracking.
FAQ#
What is better for affiliate conversion tracking: a postback or a pixel?
For conversions on the network’s side — a postback: it comes from the network’s server, ad blockers don’t cut it, and it reports orders and deposits that didn’t happen on your page. A pixel is useful for on-page events and browser identifiers. Most setups use both.
What is a click ID in affiliate marketing?
A unique ID of a click created by your tracker. It goes to the affiliate network in the offer URL and comes back in the postback, and the tracker uses it to find which ad brought the conversion.
Should I count leads on hold as revenue?
No. Until the network approves a lead there is no payout, and part of the leads will be rejected. Revenue and ROI are more honest when based on approved conversions, with hold tracked separately.
Why do I see conversions in the affiliate network but not in my tracker?
Usually the click ID isn’t passed in the offer URL, the postback returns a different parameter, or the network didn’t fill in the macro. Open the postback logs in your tracker: they show what arrived and why it wasn’t counted.
How do I avoid double-counting conversions in Meta and TikTok?
Send the browser and server event with the same event_id and event name: the ad network will merge them into one.
Should I send approvals instead of leads to the ad network?
An approval shows more accurately who brings money, but it arrives after the hold and there are fewer signals. Many start with leads and switch to approvals once there are enough of them for the algorithm to learn.