AurumClick
ChaptersConversions and postbacks

DocumentationTraffic

Conversions and postbacks

On this page
  1. Postback URL
  2. Network’s own key: protection from fake conversions
  3. Settings → Postback
  4. Postback parameters
  5. Log and special cases
  6. Conversion types and statuses
  7. Currencies
  8. S2S postbacks to the source
  9. Importing conversions from CSV
  10. Client-side postbacks and pixels

How an affiliate network reports a lead: the postback URL and parameters, Settings → Postback, conversion types and what “Conversions” consist of, currencies, S2S postbacks to the source, CSV import, pixels.

Postback URL

https://<any tracker domain>/<postback key>/postback?subid={clickid}&status={status}&payout={payout}&currency={currency}

A postback is a request from the affiliate network to the tracker about a lead, an approval or a rejection. The tracker finds the click by subid and creates or updates the conversion. GET and POST (form or JSON) are accepted, on any tracker domain (and on the admin domain).

Where to get the link. For a network from the Affiliate networks section — in its card, the “Postback URL for the network account” block: the tracker address and key plus the parameters in this network’s format. For a network that is not in the section — “Postback URL for networks” in Settings → Postback: paste it into the network account and replace {subid}, {status} and so on with the network’s macros.

Network’s own key: protection from fake conversions

The shared postback key is not a secret: it is in the /js/kt.js script (the conversion pixel from the landing, as in Keitaro), and anyone who knows a click’s subid can send a conversion with it — for example, someone who saw it in an offer link. In the admin panel the key is visible only to administrators (others see a link with {postback_key} instead of the key), but that is not enough. For important networks, in the network card (Affiliate networks → network → Postback, administrator only):

Field What it does
Own postback key 16–64 characters (Latin letters, digits, -, _), “Generate” makes a random one. The link in the “Postback URL for the network account” block uses it right away — replace the link in the network account. A postback with this key is accepted only for clicks on this network’s offers (a click on an offer without a network too); for a click of another network the log shows the error Postback key of affiliate network #N does not match the click
Network addresses IPs or subnets (CIDR) of the network’s servers, one per line. A postback with its key from another address gets a 403 Address is not allowed and does not get into the log; the number of such rejections in 24 hours is the postback_bad_ip warning in “Maintenance → Status”. The same addresses are also checked for postbacks with the shared key for clicks on this network’s offers (since 04.11): from another address the log shows the error Postback by the main key from … accepts postbacks only from its IP addresses; pixels from the visitor’s browser are not checked. Empty — from any address. Ask the network manager for the addresses; if the network changes them, postbacks will be rejected — watch the warning
Own key only conversions of clicks on this network’s offers with the shared key and by pixel are not accepted: the log shows the error Affiliate network #N accepts postbacks only by its own key. Turn it on after the link with the new key is in the network account

The switch-over order: set the key (and addresses) → replace the link in the network account → make sure in the postback log that accepted postbacks arrive → turn on “Own key only”. The postback tester and conversion import (actions of team members) are not limited by these rules. The tester requires the permission to edit the click’s campaign: view permission is not enough.

Sales spike. If a network has at least 10 sales in the last hour and 5 times more than the average hour of the previous week, the status and “Needs attention” show the network_sales_spike warning with its name. This is exactly what fake conversions look like; a real spike (a new campaign) is also a reason to open the postback log.

Settings → Postback

Field What it is
Postback URL for networks the link in the tracker format (see above)
Postback key the key in the address: without the right key a postback is not accepted. Visible only to administrators, but public in /js/kt.js — the network’s own key (above) protects from fakes. “Generate” changes the key — the previous one keeps working for 7 more days (the term is shown right here, and the previous key can be revoked at once if it has leaked); during this time update the postbacks in all network accounts
Extra keys (e.g. from Keitaro) keys that are accepted too — for example, the Keitaro key, so that postbacks set up in networks for Keitaro keep working after the domain is moved
Postback parameter aliases your parameter name → tracker field: clickid=subid, type=status, profit=payout — for networks with non-standard names
Status change without payout keeps the previous payout off (default) — a postback without payout sets the payout to 0; on — a confirmation without payout keeps the lead’s payout (for networks that send the amount only with the lead). Conversion import without a payout always keeps the previous one
Synchronous postback processing off (default) — the tracker answers “accepted” right away and processes the postback in the queue; on — it waits for processing for up to 3 s and returns the result (for debugging and for rare networks that look at the response)
Postback rate limit, req/s per IP 1000 by default, 0 — no limit (below)
S2S timeout, s how long to wait for a response to an outgoing S2S postback (below), 10 by default

Postback parameters

Parameter Meaning
subid click ID (required)
status the network status; mapped to a conversion type (required)
tid transaction ID: a new tid is a new conversion (upsell), the same or empty one is an update
payout, currency the payout (can be negative) and its currency
cost conversion cost (for CPA / RevShare): not negative; currency — cost_currency, without it — the payout currency (currency), without both — the tracker currency; a currency without a rate is an error (retry from the log after the rates are loaded)
cost_currency currency of cost (ISO, for example EUR)
sub_id_1…30, extra_param_1…10, keyword, external_id, creative_id, ad_campaign_id, source update the click and the conversion
{type}_status status “learning”: status=approved&sale_status=approved treats approved as a sale. A value that matches a tracker type code (trash, sale, lead, rejected…) is always that type: rejected_status=…,trash does not move trash to rejected
datetime or ts the actual conversion time, if the network sends it: unix (seconds or milliseconds) or ISO (2026-10-06T10:15:00Z, 2026-10-06 10:15:00 — UTC). A time earlier than the click counts as the click time, a time in the future is ignored; the “by conversion date” report uses this time, the currency rate is taken for the date the postback was received
return response text for the network
others stored in the conversion, available in S2S as {param:NAME}

Log and special cases

Every postback is visible in the log (Maintenance → Logs → Postbacks) with its result: accepted, duplicate, click not found (with a hint if the network did not substitute the macro), unknown status, invalid transition. Repeated delivery of the same postback (network retries) does not create duplicates.

Postback before the click. If a postback arrives when the click is not visible yet (a fraction of a second after the click, when the click cache is unavailable), the tracker does not answer “click not found” right away: for a fresh click the postback is retried after 5 s, 15 s, 45 s, 2 and 5 minutes; only the final result gets into the log. “Not found” comes right away if the subid does not look like a tracker subid (for example, {clickid}) or the click is older than 20 minutes.

Rate limit: a postback over the limit gets a 429 response and does not get into the log, and many networks do not retry it after a 429 — the conversion is lost. A network sends postbacks in batches from its server, so set the limit with a large margin. Every such rejection is counted: their number for the last 24 hours is in “Maintenance → Status” and in “Needs attention” on the dashboard. The Click API limit works the same way (Settings → Traffic, requests per second per campaign).

Conversion types and statuses

A conversion type is what a network status turns into. It is configured in Settings → Conversion types; the built-in ones:

Type Network statuses Can change to In “Conversions” In revenue
Lead (hold) lead, hold, pending sale, rejected, trash yes yes (hold)
Sale sale, approved, confirmed rejected, trash yes yes (confirmed)
Rejected rejected, declined, cancelled sale, lead yes no
Registration registration, reg deposit, rejected yes yes (hold)
Deposit deposit, dep, ftd rejected yes yes (confirmed)
Trash trash, invalid, fraud — yes no
Rebill rebill, rebilled, recurring rejected no (its own metric) yes (confirmed)

Conversions in reports and lists are all conversions, whatever their status: leads (hold) + sales + rejected + trash (+ registrations and deposits, if you have them). That is why “Leads” + “Sales” + “Rejected” + “Trash” = “Conversions”. Revenue counts only the types “in revenue”: confirmed (sales, deposits, rebills) and pending (hold).

Approve % = Sales ÷ (Leads + Sales + Rejected + Trash) × 100, CPA = Cost ÷ (Leads + Sales + Rejected + Trash) — of all orders, as in Keitaro (where trash is part of rejected). Example: 6 sales, 6 rejected and 6 trash — approval 33.33%.

A type has: the status values of networks, allowed transitions (lead → sale/rejected…; a postback will not apply a transition that is not on the list — the log shows “invalid transition”), inclusion in the “conversions” and “revenue” metrics, the revenue group (confirmed / pending / rejected), sending S2S, counting toward the cap, “Valid” (counts in “Valid conversions”; on by default for all types except trash), a color. You can add your own types: each gets its own metric with its code and “code_revenue” (revenue); the code cannot match a built-in metric or dimension (cpa, roi, cost, country…) — otherwise it would replace it in all reports. If you change “in conversions”, “in revenue” or the revenue group of a type, the postback handler picks up the new flags right away, and the conversions of this type already recorded are recalculated by the background job “Conversion type flags recalculation” (Maintenance → Background jobs): a recalculation, a 30 s pause and a second check — this also fixes conversions that arrived at the moment of the change. It usually takes up to a minute; a job error triggers a notification. To recalculate the flags of all conversions by the current types: aurum ctl conversions resync --flags. The history of a conversion’s transitions is in its card.

CPC conversion status (Settings → Traffic, “sale” by default) — the status a conversion of a CPC offer is created with at the moment of the click to the offer.

Currencies

A payout is converted to the tracker currency at the rate for the postback date (rates are updated twice a day); the original amount and currency are kept. The tracker currency is in Settings → Traffic.

Changing the tracker currency. The rates are rebuilt for the new currency right away — new conversions and costs are calculated correctly from the first second. If there is no rate for the new currency yet, the change will not go through: update the rates first. The Recalculate history checkbox (on by default) starts a background job: costs, revenue and conversion cost for all the time before the change are converted at the rate of their day (clicks and conversions in ClickHouse, conversions and “cost without clicks” in the database). Without the checkbox old amounts stay in the previous currency. While the recalculation is running, the currency cannot be changed again; the job progress is in “Maintenance → Background jobs”. It is better to change the currency in low-traffic hours: the recalculation rewrites ClickHouse tables.

S2S postbacks to the source

An S2S postback sends a conversion back from the tracker to the traffic source or to any URL (for example, a server-side Facebook CAPI script). It is configured in the source (for all its campaigns) and in the campaign (the “S2S postbacks” tab): a URL with macros (Campaigns and streams), the GET or POST method with a body template, which statuses to send (for example, only sale).

  • Sending queue: on a network error, a 5xx, 408, 425 or 429 response (“too many requests”; the pause is at least the recipient’s Retry-After) — 5 retries (after 1 min, 5 min, 30 min, 2 h, 6 h); the same postback is never sent twice.
  • Response timeout — “S2S timeout, s” in Settings → Postback.
  • Log — Maintenance → Logs → S2S; the sending can be repeated from the conversion card.
  • When a campaign is copied, its S2S postbacks are copied with it.

Importing conversions from CSV

Maintenance → Conversion import (or aurum ctl conversions import file.csv): lines subid,payout,tid,status or a CSV with a header — any postback parameters (subid, status, payout, currency, tid, sub_id_3…). The text is pasted into the field or uploaded as a file (up to 8 MB; split larger files into parts). A CSV from Excel works as is: the “;” separator and BOM are understood. The import runs as a background job, and each line goes the same way as a postback: an offer with a fixed payout gets its payout, offer caps are counted, S2S and ad platform events are sent if “Send S2S” is checked (and S2S is on for the conversion type). A line without payout for an existing conversion (for example, subid,status from a network’s approval export) keeps the previous payout. The history import from Keitaro is separate: the payout comes from the Keitaro log, without caps and S2S. The result is in the job list: accepted, duplicates, errors; the “Error report” is a CSV with the file line number, subid and the reason.

Client-side postbacks and pixels

  • Conversion pixel: <img src="https://<domain>/<key>/postback?subid={subid}&status=lead"> on the landing’s “thank you” page, or KTracking.sendPostback(...) from the JS adapter (Landings and offers).
  • Facebook/TikTok Pixel on the landing: the campaign parameter pixel is stored in a cookie (7 days for FB, 5 for TikTok), and on the “thank you” page the snippet from the landing editor calls the pixel. Server-side Conversions API — Integrations.

Didn’t find an answer?

Support