Help / Troubleshooting & reference
Macro reference
Every macro you can use in offer URLs and affiliate postbacks.
Macros are placeholders in curly braces that the tracker replaces with real values. Use them in offer URLs (filled on every click) and in affiliate postback URLs (filled when a conversion is approved).
https://advertiser.com/?click={clickid}&aff={affid}&offer={offerid}&sub1={s1}&src={source}
- Names are not case-sensitive, and the aliases listed work too, so links copied from other platforms (
{transaction_id},{aff_sub1}…) work as-is. - The older
#name#style (e.g.#clickid#) still works. - Unknown macros are left exactly as written.
- Values are URL-encoded automatically.
Offer URL macros (filled on every click)
| Macro (and aliases) | Value |
|---|---|
{clickid}{click_id} {transaction_id} {tid} | Unique click ID. Pass it to the advertiser; they send it back in the postback |
{affid}{aff_id} {affiliate_id} {repid} | Affiliate ID |
{affname}{aff_name} {affiliate_name} {user} {username} | Affiliate username |
{managerid}{manager_id} | ID of the affiliate's manager |
{offerid}{offer_id} {offid} {oid} | Offer ID |
{offer_name}{offername} | Offer name |
{advid}{advertiser_id} {adv_id} | Advertiser ID |
{s1}{sub1} {aff_sub} {aff_sub1} | Sub ID 1 from the tracking link (?s1=) |
{s2}{sub2} {aff_sub2} | Sub ID 2 (?s2=) |
{s3}{sub3} {aff_sub3} | Sub ID 3 (?s3=) |
{s4}{sub4} {aff_sub4} | Sub ID 4 (?s4=) |
{s5}{sub5} {aff_sub5} | Sub ID 5 (?s5=) |
{source}{source_id} {sub_source} | Traffic source (?source=) |
{country}{country_code} {geo} | Visitor country (2-letter code) |
{region}{state} | Visitor region / state |
{city} | Visitor city |
{ip}{ip_address} | Visitor IP address |
{user_agent}{ua} | Visitor browser user agent |
{device}{device_type} | Device type (mobile, tablet, desktop) |
{os} | Operating system |
{browser} | Browser |
{referer}{referrer} | Referring page |
{timestamp}{unix_time} | Unix timestamp of the click (or conversion, in postbacks) |
{date} | Date (YYYY-MM-DD, UTC) |
{random}{rand} {cachebuster} | Random number (cache buster) |
{payout}{aff_payout} {affiliate_payout} | Affiliate payout: what the affiliate earns (after any custom payout). Percentage payouts show as e.g. 40% at click time |
{network_payout}{net_payout} | Network payout: what the network pays out for this offer / conversion. Not filled in affiliate postbacks |
{adv_payout}{advertiser_payout} {revenue} | Advertiser payout: what the advertiser pays you. Offer URLs only, never sent to affiliates |
{currency} | Payout currency (e.g. USD) |
Extra macros for affiliate postbacks
Affiliate postback URLs can use every macro above, plus:
| Macro (and aliases) | Value |
|---|---|
{conversion_id}{conv_id} | Conversion ID |
{goal}{event} {goal_name} | Conversion goal code (e.g. lead, sale) |
{amount}{sale_amount} {revenue_amount} | Sale amount reported by the advertiser (percentage payouts are calculated from it) |
{txid}{adv_txid} {order_id} | Advertiser's transaction / order ID |
{status}{conv_status} | Conversion status (approved) |