A postback is a server-to-server (S2S) request that an affiliate network or advertiser sends to your tracker when a conversion happens. It calls a postback URL you supply and carries the click ID you passed in a sub ID, plus details such as payout, status and transaction ID, so the conversion is matched to the exact click that produced it. Because it travels between servers, it does not depend on cookies or browser pixels. On Meta traffic the postback is only half the loop: your tracker still has to turn each matched conversion into a Conversions API event built from the Meta click ID stored at click time.
What a postback is in affiliate marketing
In affiliate marketing, a postback is the network's or advertiser's tracking system telling your tracker that a click you sent became a conversion. It is usually a plain HTTP request to an address you control, fired when the conversion is recorded or its status changes. You will also see it called S2S tracking, a server postback or a callback; all three describe one server notifying another, with no browser involved.
What makes a postback useful is the click ID it carries. Your tracker created that ID at the click, passed it to the network in a sub ID and gets it back with the conversion, so it can credit the right ad, campaign and placement. The word means other things elsewhere: in app marketing, measurement partners send install postbacks to ad networks, and under Apple's SKAdNetwork the device itself sends one to the winning network, which our SKAdNetwork guide covers. This one is about web offers bought with Meta traffic.
Postback URL anatomy: parameters, macros and tokens
A postback URL is the address on your tracker that the network calls. It starts with a fixed part, your tracker's domain and endpoint, followed by a query string of name and value pairs. In each pair the name is what your tracker expects, and the value is a macro, also called a token or placeholder, that the network replaces with real data when it fires. The end of one might read cid={sub1}&payout={payout}&status={status}, with macro names taken from your network's documentation.
Macro syntax is not standardized. Many platforms use curly braces, others hash or percent signs, and the same value can be named clickid, sub1, aff_sub or s1. Build the URL from the network's own postback builder or macro list, never another network's template: an unrecognized macro can arrive as literal text or an empty value, and neither will match. Many networks let you set postbacks globally, per offer or per goal, so a registration and a first deposit report separately. A complete postback usually carries:
- Click ID, the one field that matching depends on
- Payout, ideally with its currency
- Status, such as pending, approved, rejected or reversed
- Transaction ID, the network's unique reference for the conversion
- Goal or event type, such as lead, sale or deposit
Sub IDs: what they are and what to pass in them
A sub ID is a free-form parameter on your affiliate link that the network stores with the click and returns in reports and postbacks. Networks usually offer several slots. One must carry your tracker's unique click ID, the only value that ties a conversion to a single click. The others are reporting dimensions you choose, which is where most of the benefits of using sub IDs come from.
Whatever goes into a slot, keep it opaque, short and URL-safe: IDs and codes, never emails, phone numbers or names. Meta says its Pixel tracks the URLs visitors view by default, and its Business Tools Terms bar sharing data that includes or is based on health or financial information. A lander URL carrying a parameter that names an offer after a medical condition hands that label to Meta with every page view.
For Meta traffic, the most useful dimensions are Meta's own IDs. Meta's developer docs list URL tag macros such as {{campaign.id}}, {{adset.id}} and {{ad.id}}, plus name versions, filled in when the ad is rendered; your tracker forwards them in spare sub IDs. Prefer IDs: Meta stores names as a snapshot when the object is first published, so renaming an ad later does not change what the link carries. Filled this way, sub IDs let you:
- Match each conversion to one click and one Meta ad
- Report by campaign, ad set or ad inside the network's dashboard
- Spot the sources behind scrubbed or rejected conversions
- Reconcile network payouts against tracker data line by line
Postback vs pixel tracking: why S2S suits paid social
Networks usually offer two ways to record a conversion. Pixel tracking places a tag, such as an image, iframe or script, on the advertiser's confirmation page; it fires from the buyer's browser and depends on a cookie set when the click passed through the network. Postback tracking skips the browser: the network's server reports the conversion straight to your tracker, using the click ID it stored.
For paid social, postbacks are the sturdier option. They do not rely on cookies, so ad blockers, privacy settings and a jump between domains do not stop them, which matters because the conversion happens on someone else's site. They can also report status changes days later. The cost is setup: every hop must carry the click ID, and you need an endpoint that receives and logs each call.
Meta has the same split. Your Meta Pixel only sees pages where your code runs, usually the lander, not the offer's checkout. Meta says the Conversions API can share events that happen offline or later, which the Pixel cannot capture, and recommends sending events through both where you can. If a network lets you load your Pixel on its confirmation page, give both copies the same event name and event ID: Meta deduplicates a matching pair sent to the same pixel within 48 hours and, when the two do not differ meaningfully, generally keeps the one it received first.
The postback chain for Meta traffic, hop by hop
Attribution survives only if every hop hands the right identifier to the next; when conversions go missing, one hop usually dropped, altered or mislabeled a value. Redirects here exist to pass data, never to decide what different visitors see: Meta's spam policy defines cloaking as presenting different off-platform content to its integrity systems than to users, and its Advertising Standards say ad review can cover an ad's landing page and other destinations.
The first hop is the most fragile. Meta passes its click ID with your URL as the fbclid parameter and says the value is case sensitive, so read it exactly as received. Store it as fbc, formatted as fb, a subdomain index, the creation time in milliseconds and the fbclid, in an _fbc cookie kept for 90 days or in your backend; built on a server without a cookie, it takes 1 as the index and the time you first saw the fbclid. Meta's open-source Parameter Builder library can do this for you. In order, the hops are:
- Click: the visitor arrives with fbclid next to your own URL tags
- Lander: your server stores fbc, the click time, IP address, user agent and any fbp cookie
- Hand-off: your tracker passes its own click ID to the offer link in a sub ID
- Postback: after the buyer converts, the network calls your postback URL with the click ID, payout, status and transaction ID
- Relay: your tracker matches the stored click and sends Meta a Conversions API event
Turning a postback into a Conversions API event
A postback says a conversion happened; Meta also needs to know who converted and where. Each relayed event needs an event name such as Lead, Purchase or a custom name, an event_time in Unix seconds, an action source, user data from the stored click, value and currency where they apply, and an event_id.
Build user data from the click, not the postback. The postback comes from the network's server, so its IP address and user agent describe that server, not the buyer. Meta asks for the browser's real IP address, requires a user agent on website events and says not to hash fbc, fbp, IP or user agent. Only matched events can be used for attribution and delivery optimization, Meta adds, so these fields decide whether a postback counts.
Using the API means agreeing that the action source is accurate to the best of your knowledge. Meta defines website as a conversion made on your website, and website events need an event_source_url that should match your verified domain, so pick the value that honestly fits your funnel. Purchase events need a value and an ISO 4217 currency code; your payout is the natural value. For event_id, Meta suggests an order number or transaction ID, so use the network's.
Relay each event as the postback lands; Meta recommends sending events as soon as they occur, ideally within an hour. Because events go to a dataset rather than an ad account, one relay can serve every account you run: connect the dataset to each, including agency ad accounts that Power Ads shares into your Business Manager through partner access. Power Ads supplies the accounts only; the tracker, postbacks and Conversions API connection stay with your team.
Pending, approved and rejected: what Meta should see
Many affiliate conversions are not final when they first post. A lead can sit as pending until a call center confirms it, a sale until its refund window closes, and the network may send one postback per status change. Decide before launch which status triggers which Meta event, because a wrong event is hard to undo once Meta has it.
Three points from Meta's docs shape the design. Events can be sent up to seven days after their event_time, and one older event gets the whole request rejected. Meta keeps only the first copy of an event_id and event_name pair, so re-sending a pending event with a corrected value changes nothing. And the documented server event parameters include no way to withdraw an event, so a conversion the network rejects later stays in Meta's data.
A pattern that respects those limits: send pending conversions as Lead or a custom event if you need volume for learning, send approvals as a separate event such as Purchase with the payout as value, and never forward rejected or scrubbed conversions. For approvals that arrive days later, Meta highly recommends the original_event_data field, which ties a delayed event to the earlier acquisition event by its name, time, order ID or event ID.
Optimize on the status you are paid on when approvals arrive fast and in volume. Meta reports conversions within an attribution window, 7-day click and 1-day view by default in its API, so an approval landing long after the click may never be credited. When approvals are slow, optimize on the earlier event and judge each ad by approval rate in your tracker.
Securing, testing and troubleshooting a postback URL
Treat the postback URL as a public endpoint: anyone who learns it can fire fake conversions, and fakes forwarded to Meta train delivery on noise. Add a secret token that the network includes and your tracker checks, allowlist the network's server IPs if it publishes them, accept only click IDs that exist, and ignore any transaction ID and status pair you have already processed. Log every raw request so scrub and payout disputes can be settled with evidence.
Then test the full chain with a real click before budget depends on it. Convert through the network's test tool if it has one, and confirm your tracker received the postback, matched a click and forwarded an event. Meta's Test Events tool in Events Manager shows server events sent with a test_event_code; remove the code in production and keep tests few, because Meta says test events are not dropped and are used for targeting and measurement. When a test fails, check these first:
- A mistyped or wrong-syntax macro, so a literal placeholder arrives
- A click ID dropped by a redirect or a lander URL rewrite
- An fbclid that was lowercased, truncated or decoded twice
- The network server's IP and user agent sent instead of the buyer's
- An event_time in milliseconds, or more than seven days old
- A payout in one currency reported under another
Key takeaways
- A postback is a server-to-server conversion report that only works if your click ID survives every hop
- Take macros from your network's documentation and pass Meta's ad, ad set and campaign IDs in spare sub IDs
- Build Conversions API events from click-time data: fbc from the fbclid, plus the buyer's real IP and user agent
- Use the network's transaction ID as event_id and relay postbacks promptly; events over seven days old are rejected
- Send approvals as their own event, keep rejected conversions out of Meta and protect the postback URL with a token
FAQ
What is a postback in affiliate marketing?
A postback is a server-to-server request an affiliate network or advertiser sends to your tracker when a conversion happens. It returns the click ID you passed in a sub ID, plus payout, status and a transaction ID, so your tracker can credit the exact click and ad without relying on cookies.
What is a postback URL?
It is the address on your tracker that the network calls to report a conversion: your endpoint plus parameters whose values are network macros for the click ID, payout and status, filled in when the postback fires. Take macro names from your network's documentation, because syntax differs between platforms.
What are sub IDs used for in affiliate tracking?
Sub IDs are extra parameters on your affiliate link that the network stores with each click and echoes back in reports and postbacks. One should carry your tracker's click ID for matching; others can carry Meta ad, ad set and campaign IDs, showing which ads produce approved or rejected conversions.
Is postback tracking better than pixel tracking?
For paid social traffic, usually yes. A pixel fires from the buyer's browser and depends on cookies that ad blockers, privacy settings and cross-domain journeys can break. A postback travels between servers and can report later status changes, but it only works if every redirect passes the click ID through.
How do I send affiliate conversions to Facebook Conversions API?
Capture the fbclid, IP address and user agent on your lander and pass your tracker's click ID to the network in a sub ID. When the postback arrives, your tracker sends a Conversions API event with fbc from the stored fbclid, the click's browser data, value, currency and the transaction ID as event_id.
Why is my affiliate postback not firing or not matching?
Check each hop: a wrong macro, a network firing only on approval, a redirect dropping the sub ID or a tracker mapping the wrong field. If postbacks arrive but Ads Manager credits nothing, look for missing fbc, the network server's IP in place of the buyer's, events over seven days old or approvals landing outside the attribution window.
Sources
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/fbp-and-fbc
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/server-event
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/original-event
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/customer-information-parameters
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/custom-data
- developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api
- developers.facebook.com/documentation/ads-commerce/conversions-api/deduplicate-pixel-and-server-events
- developers.facebook.com/documentation/ads-commerce/conversions-api/best-practices
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameter-builder-library
- developers.facebook.com/documentation/ads-commerce/instagram/ads-api/guides/url-tags-for-tracking
- developers.facebook.com/documentation/ads-commerce/marketing-api/reference/ad-account/insights
- developers.facebook.com/documentation/meta-pixel/get-started
- facebook.com/legal/businesstech
- transparency.meta.com/policies/ad-standards
- transparency.meta.com/policies/community-standards/spam
