On this page
What this issue is
A postback is a web request your server (or your CRM or store backend) sends to an affiliate or partner network when a sale or lead happens. It runs without the visitor's browser, which is why it is called server-to-server (S2S). The request usually carries a click ID, an order ID and an amount, for example https://network.example/postback?clickid={clickid}&payout={amount}&order={order_id}.
Why it costs you leads or sales
Partners are paid on what the network records. If postbacks fail, affiliates see no conversions for traffic they sent. They stop promoting you, ask for manual corrections or leave. Your own reports also undercount partner revenue, so you may cut a channel that works.
- Partner clickClick ID stored
- PurchaseOrder completed
- Postback sentError, empty macro or wrong URL
- Network records saleNothing received
- Partner paidNo commission
The customer buys normally. The break happens on the server, so nothing looks wrong on the site.
The order succeeds, the server call fails, the network sees nothing.
How to check if your site has it
Because the call happens on the server, you will not see it in the browser. Start with the signs, then look at the logs.
- Partners report missing conversions that you can see in your own orders
- Network dashboard shows clicks but zero or very few conversions
- Your order count and the network's conversion count drift apart
- Your logs show 4xx or 5xx responses from the network's postback URL
- The logged postback URL still contains raw placeholders such as {clickid}
Find the outgoing request log
Check your store, CRM, server or automation tool for a webhook or HTTP request log. Look for the postback call around the time of a known order.
Read the status code
200 means the network accepted it (though it may still reject the content). 400 usually means a missing or malformed parameter, 401 or 403 an auth or IP allow-list problem, 404 a wrong URL, 5xx a network-side error.
Inspect the final URL
Check that every macro was replaced with a real value. Empty clickid or literal {clickid} text means the click ID was never stored.
Test with a known click
Generate a test click through the partner link, complete a test conversion and see whether the network shows it. Many networks have a postback test tool or conversion log.
Compare totals
Compare your partner-attributed orders with the network's conversions over the same period to size the gap.
How to fix it
Capture the click ID on landing
Read the click ID parameter from the URL on the first page view and save it in a first-party cookie or session. If a redirect strips it, fix that first.
Pass the click ID into the order
Save it with the order or lead record (a hidden field, order note or custom field) so the server can read it when the sale completes.
Rebuild the postback URL
Copy the exact URL and macro names from the network. Replace each macro with the real value and URL-encode them.
Trigger it on the right event
Send it when the order is paid or the lead is confirmed, once per order, with a unique order ID to avoid duplicates.
Fix access and add retries
Add any required token or IP allow-list entry, and retry on timeouts and 5xx responses.
Replay missed conversions
Ask the network how to submit past conversions, by re-sending postbacks with the stored click IDs or uploading a conversion file.
async function sendPostback({ clickId, orderId, amount }) {
const url = new URL('https://network.example/postback');
url.searchParams.set('clickid', clickId);
url.searchParams.set('order', orderId);
url.searchParams.set('payout', amount);
for (let attempt = 1; attempt <= 3; attempt++) {
try {
const res = await fetch(url, { method: 'GET' });
if (res.ok) return true;
if (res.status < 500) break; // 4xx: fix the request, do not retry
} catch (e) {}
await new Promise(r => setTimeout(r, attempt * 2000));
}
console.error('Postback failed', orderId);
return false;
}Check the affiliate app
If a partner app sends the postback, open its settings and activity log for failed calls.
Save the click ID on the order
Store it as a cart attribute or order note so it is available at order creation.
Check the plugin log
Affiliate or WooCommerce webhook plugins often have a log. Look for failed deliveries (WooCommerce: Status > Logs).
Check the hook
Confirm the postback runs on the paid order status, not on order creation only.
Know the limit
A browser tag is not a true postback. If you use server-side GTM, check the server container's request logs in Preview mode for failed outgoing requests.
Check the workflow
If a workflow sends a webhook, open the workflow's execution logs and look at the response of the webhook action.
Map the click ID
Make sure the click ID is saved in a contact custom field before the webhook step.
Log requests and responses
Log the final URL, status code and response body for every postback.
Queue the calls
Use a job queue so a slow network does not block the order and failed calls can be retried.
How to confirm it's fixed
Run a test conversion
Click a partner test link, complete a test order or lead and watch your log for a 200 response.
Check the network dashboard
The test conversion should appear with the right click ID, order ID and amount, usually within minutes.
Watch real orders
Over the next few days, compare partner-attributed orders to network conversions. The gap should close.
Failing
- URL contains {clickid} as raw text
- Network returns 400 or 404
- Partners see clicks but no sales
Working
- Real click ID and order ID in the URL
- Network returns 200 and logs the sale
- Partner and store totals match
How to prevent it happening again
- Log every postback with URL, status code and response
- Alert yourself on repeated non-200 responses
- Retry on timeouts and 5xx with a queue
- Re-test after changing checkout, CRM, domain or hosting
- Reconcile your partner orders with network totals each week
- Keep the network's postback documentation and your macro mapping in one place
Example: 100 partner-driven orders, with and without a working postback. Numbers are illustrative.
How FunnelGuard handles this
This issue is outside what FunnelGuard checks. A postback is a server-to-server request, and FunnelGuard works like a visitor in a browser, running your journeys and checking the steps and the browser tracking hits. It cannot see what your server sends to a partner network.
Day 0
A checkout change renames the field holding the click ID
Day 1
Postbacks go out with an empty click ID and the network rejects them
Day 7
A partner asks why their sales dropped to zero
Day 8
You read the logs, fix the mapping and replay missed sales
Questions people ask
Why is my affiliate postback not working?
The most common causes are a missing click ID, macros that were never replaced, a wrong postback URL, or the network blocking the request. Check your outgoing request log for the status code and the final URL. A 400 or 404 usually points to the URL or parameters.
What is an S2S postback?
An S2S (server-to-server) postback is a request your server sends directly to an affiliate network when a sale or lead happens. It does not rely on the visitor's browser, so ad blockers and cookie limits do not affect it. It must carry the click ID to credit the right partner.
Why does my postback return 200 but the conversion does not show?
A 200 only means the network received the request. The conversion may still be rejected for an invalid or expired click ID, a duplicate order ID or a wrong campaign ID. Check the network's conversion or rejection log for the reason.
How do I test a postback URL?
Click a partner test link, complete a test order or lead, and check your log for the request and response. Then look for the conversion in the network dashboard. Many networks also offer a test tool where you can paste a click ID and fire the postback.
Can I resend postbacks for missed conversions?
Often yes, if you stored the click IDs with the orders. Re-send the postback for each missed order, or upload a conversion file if the network supports it. Ask the network about time limits, since old clicks may no longer be accepted.
Why is the click ID empty in my postback?
The click ID was not saved when the visitor landed, or it was lost on a redirect or a cookie issue. Capture the parameter on the first page view and store it with the order so the server can read it later.
Can FunnelGuard monitor my partner postbacks?
No. Postbacks are server-to-server requests, which FunnelGuard does not see. Use server logs, an error or log monitor and the network's own conversion log for that.
Related issues
- TRK-259Affiliate tracking script missing (Impact, PartnerStack, Rewardful)Fix guide
- TRK-260Affiliate click ID (irclickid, ref) lost on redirectFix guide
- TRK-261Affiliate cookie not set or wrong domainFix guide
- TRK-262Affiliate conversion pixel missing on order confirmationFix guide
- TRK-263Affiliate conversion fires for every order including non-affiliateFix guide
- TRK-265Shopify/Stripe affiliate integration not passing order IDsFix guide