Affiliate Tracking: How It Works and How to Set It Up

Affiliate tracking explained: links, cookies and S2S postbacks, privacy limits, a resilience matrix, discrepancy triage and a pre-launch QA checklist.

Diagram of an affiliate tracking flow from partner link click to tracked conversion and reconciled payout

Affiliate tracking is the redirect, cookie and server-side plumbing that records which partner drove a click, matches that click to a later conversion, and hands back a click_id and transaction_id your billing system can pay against. Treat it as the system of record for partner attribution and commission payouts, and the only question that matters becomes whether the click identifier survives to the conversion event. Cookies get capped by Safari ITP, so S2S postbacks, promo codes and app SDKs carry the load in affiliate tracking, and the gap between platform clicks and billed conversions is where affiliate tracking discrepancies are born.

Written by Corbin Ashmore, Head of Affiliates at AI Solutions Media. For more articles, browse the archive.

What affiliate tracking actually is (and why it is a payout system, not an ad tool)

Affiliate tracking is the chain that captures a click, stores an identifier, records a conversion event, matches the two, and calculates what a partner is owed. Those five stages make it a payout system: the output is a commission line in your ledger, not a bid adjustment in an ad account. The identifier is the contract between systems. Server-to-server tracking passes a unique click ID to your landing page, and your server echoes it back in a postback request when the conversion fires, with no cookie involved. Everflow's transaction_id, a 32-character hex value, does the same job.

That line matters because the categories get blurred. Programme-side platforms pay partners. RedTrack and Voluum are media-buyer ad trackers built for traffic spend and optimisation, not partner settlement. Choose by business model first, then tracking protocol.

How affiliate tracking works, step by step

  1. Click. The visitor hits an affiliate tracking link, which routes through your tracking server on an HTTP 302 temporary redirect. That records the click parameters and assigns a unique click ID before forwarding to your landing page. A 301 gets cached and bypasses affiliate tracking on repeat visits.
  2. ID handoff. The click ID travels in the URL, a first-party cookie or first-party storage. Everflow generates a 32-character hex transaction_id at click time.
  3. Conversion. Your server reads the stored click ID and fires an HTTPS GET or POST postback with it. Everflow echoes transaction_id back with the Network ID (nid). No cookie is needed here.
  4. Reconciliation. The platform matches event to click, deduplicates, and writes the commission line.

Annotated sequence showing a tracking link with click_id passing to an S2S postback with secret token

Anatomy of an affiliate tracking link and postback payload

A link carries the affiliate ID, offer ID and optional sub-ID macros, so partners can pass their own traffic source data. The postback returns click_id, network ID and conversion value. Gross clicks can exceed unique clicks because deduplication windows collapse repeat hits, so reconcile affiliate tracking on unique sessions, not raw server logs.

Affiliate tracking methods compared: cookies, first-party, CNAME, S2S, promo codes and MMPs

No single affiliate tracking method wins on every axis. S2S postbacks keep browser storage out of the conversion leg but add engineering overhead; third-party cookies are the easiest to deploy and the first to leak.

Comparison grid of six affiliate tracking methods scored on browser survival and fraud resistance

Method Browser survival Cross-device Dev effort Fraud resistance Consent scope
Third-party cookies/pixels Weakest: partitioned in Firefox ETP, blocked by ad blockers Poor Low Low Broad consent needed
First-party JS cookies / direct-linking SDK Better, but ITP caps script-written cookies at 7 days Limited Medium Medium First-party, narrower
CNAME first-party domain WebKit caps CNAME-cloaked cookies at 7 days Limited Medium Medium First-party domain
S2S postbacks No browser storage on the conversion leg Strong when IDs persist server-side High High with IP whitelisting or secret tokens Server-side, document it
Promo/voucher codes No prior cookie needed; credited on code entry Good Low Medium (code abuse) Checkout data
Mobile MMP / SKAdNetwork Signed aggregate postbacks after a 24-hour-plus delay App-native Medium High (signature validation) Platform-defined

Why cookie-based affiliate tracking loses conversions in Safari and Firefox

Safari's ITP caps JavaScript cookies at 7 days, and at 24 hours when a visitor lands via link decoration. Firefox's Total Cookie Protection partitions third-party cookies per site, and Strict mode strips known tracking parameters. CNAME setups do not buy a longer window; WebKit's CNAME Cloaking Defense caps those cookies at 7 days too. For anything past a week, move the handoff to S2S.

Cookie windows, attribution models and cross-device journeys

The cookie window and attribution model decide who gets paid. Amazon Associates runs a 24-hour last-click window for most purchases: a later affiliate click overrides the earlier one, and the cookie closes early if the customer orders. First-click and multi-touch models credit the partner who introduced the customer, which suits long consideration cycles and subscription funnels.

Cross-device stitching is harder. Impact.com reports that it combines an identity graph with its Universal Tracking Tag (first-party cookies), API/S2S tracking and TrueLink mobile deep linking to join web and app journeys and support multi-touch or custom event attribution. Coverage like that is a commercial decision as much as a technical one: longer windows and wider stitching raise partner EPC and your payout exposure, so set both deliberately in the terms.

Quantifying affiliate tracking leakage for your partners' EPC

Price leakage as lost conversions, not lost clicks. The two published baselines: Apple Safari is about 28% of US browser share versus 16%–17% globally (StatCounter, October 2025 to October 2026), and ad-blocker use is about 32%–33.6% in the US against roughly 30% globally (GWI data, via Backlinko). Safari's ITP caps script-writable cookies at 7 days, and at 24 hours when a user arrives via link decoration (WebKit).

  • Same-day checkout: the 24-hour cap rarely bites; ad-blocked clicks drive most leakage.
  • 14-day SaaS trial: a 7-day cap expires before conversion, so some trials go unattributed.
  • iGaming FTD to re-deposit: multi-week lag pushes most revenue events past the cap.

Every point of lost attribution lowers reported EPC, and top affiliates buy on EPC. Where caps hide revenue events, move to S2S postbacks so affiliate tracking is confirmed server-side. These figures are illustrative models, not measured programme results: pair them with your own conversion-lag data before you migrate.

Privacy rules for affiliate tracking: what S2S does not let you skip

Server-to-server affiliate tracking does not sit outside consent law. EDPB Guidelines 2/2023 state that Article 5(3) of the ePrivacy Directive applies to URL parameters (link decoration), pixels, local processing, unique identifiers and server-side tracking whenever information is stored on or accessed from a user's terminal equipment. Routing data through your own server changes nothing, and probabilistic fingerprinting is not a consent workaround.

In the UK, ICO guidance under PECR requires prior, informed consent for non-essential tracking. The cashback exemption the ICO clarified is narrow, per the APMA: only cookies strictly needed to deliver an explicitly requested reward count as strictly necessary. General affiliate attribution still needs consent. For US traffic under CCPA/CPRA, offer opt-out of sale or sharing and honour Global Privacy Control signals automatically. Gate parameter capture, pixel firing and S2S dispatch on the same consent state.

Affiliate tracking across multi-event funnels: SaaS renewals and iGaming FTD to NGR

One-off checkouts are the easy case. Recurring SaaS plans and regulated iGaming bill several events per customer, so affiliate tracking must record each one or the payout is wrong.

SaaS lifecycle tracking through Stripe and Paddle webhooks

Stripe documents the events that matter: invoice.paid fires on the initial payment and every renewal, charge.refunded covers refunds, and charge.dispute.created covers chargebacks. Stripe advises idempotent handlers because webhooks can be delivered more than once, so deduplicate on event ID before crediting commission. Tapfiliate's Stripe integration uses server-to-server webhooks to catch renewals, refunds and disputes and reverses commissions automatically. FirstPromoter does the same through native Stripe and Paddle (v1 and v2 webhook) integrations.

iGaming events: Registration, FTD and negative carryover

iGaming bills at stages, not at click. Scaleo separates Registrations (REG), Deposits (DEP), Qualified First-Time Deposits (QFTD) and RevShare tiers, and applies negative carryover, where a negative month is carried into the next before commission is paid. Give each stage its own postback validation and reconcile against the operator's ledger before invoicing.

How to choose affiliate tracking software without buying the wrong category

Start with your business model, not a feature list. The table maps each model to a platform category and its published billing.

Decision tree separating programme-side affiliate tracking platforms from media-buyer ad trackers

Decision framework: programme side vs media-buyer side

Your model Platform category Verified pricing model
Retail or network programme Affiliate network, e.g. Awin Awin Access: £99 + VAT/month plus a 3.5% tracking fee, 3-month minimum
Enterprise cross-device partnerships SaaS PRM, e.g. impact.com Subscription plus incremental growth fees above allowances
SaaS recurring revenue SaaS affiliate tracking, e.g. Tapfiliate, FirstPromoter FirstPromoter banded from $49 to $99 to $149+/month
Performance network or iGaming Payout platform, e.g. Everflow, TUNE, Affise, Scaleo Everflow quotes by payout volume (Partnerships.ai reports ~$750–$950/month entry); others quote only
App-first acquisition MMP, e.g. AppsFlyer $0.07 per attributed non-organic conversion beyond the allowance
Paid-media buying Ad tracker, e.g. RedTrack, Voluum RedTrack from ~$79/month; Voluum from $119/month billed annually

RedTrack and Voluum fire S2S conversions with a {clickid} token, and their CAPI feedback loops push server events back to ad platforms. That is ad optimisation, not partner payout. For commission, you need the payout side, where affiliate tracking is a system of record. Prices are volatile and several are quote-only, so re-check before you sign.

Affiliate tracking fraud and data security: what to harden before you scale

Cookie stuffing is fraud, not a growth tactic. In the eBay case investigated by the FBI, affiliates Shawn Hogan and Brian Dunning used hidden image tags to drop affiliate cookies on visitors' browsers; both pleaded guilty to federal wire fraud, and Hogan was sentenced in May 2014 to five months in federal prison plus a $25,000 fine.

Harden these before volume grows:

  • Spoofed postbacks. TUNE restricts conversions to approved advertiser IPs per offer; Affise adds IP whitelisting plus a Secure Postback Code (&secure=SECURE_CODE), rejecting unlisted IPs or missing codes.
  • Click flooding. AppsFlyer detects it via Click-to-Install Time: legitimate traffic clusters tightly after the click, flooded traffic flattens out. Click injection is Android-specific, per Adjust.
  • Duplicates. Deduplicate on a unique transaction ID in every affiliate tracking postback, and inspect HTTP 200 logs, since rejected postbacks still return 200.

Troubleshooting affiliate tracking discrepancies: a triage table

Band the gap before you touch any settings. Roughly 5%–10% click difference is normal variance (bot filtering, ad blockers), 10%–20% is a warning band for configuration checks, and above 20% points to technical failure or fraud, per benchmarks cited by Affilae.

Triage chart mapping tracking discrepancy symptoms to likely causes and fixes

Symptom Likely root cause Audit check Fix
Repeat-visit clicks not recorded HTTP 301 cached, bypassing the tracker 301 vs 302 in the redirect chain Enforce an HTTP 302 in affiliate tracking
Conversions vanish mid-chain HTTPS-to-HTTP downgrade Trace every hop Keep all hops on HTTPS
Fixed reporting offset Mismatched timezones (UTC vs EST) Compare day boundaries Align timezone settings
Clicks but no postbacks Unencoded click_id macro or blocked postback IP Check click_id and postback logs URL-encode macros, whitelist postback IPs
Platform clicks below partner clicks Bot filtering, deduplication, USI counting Gross clicks vs unique sessions Agree a gross vs unique definition

The last row drives most partner-side mismatches: Everflow's Unique Session Identifier separates gross clicks from unique click sessions, so raw server logs always read higher. Agree the counting basis in writing before disputing affiliate tracking numbers.

Pre-launch affiliate tracking QA checklist and sign-off

Run this before any high-volume partner goes live. Each line passes or fails with a named owner and date, not a verbal confirmation.

  1. Redirect chain. Only HTTP 302 hops allowed. A cached 301 bypasses affiliate tracking on repeat visits, and any HTTPS-to-HTTP downgrade fails.
  2. Cross-browser test conversions. Complete one conversion in Safari on iOS and one in Firefox with Enhanced Tracking Protection on.
  3. Postback logs. Confirm the click_id echoes exactly, the GET/POST returned 2xx, and no firewall blocked the advertiser IP.
  4. Spoofing controls. Enforce an IP whitelist or secure postback token, then confirm an unlisted-IP postback is rejected.
  5. Reversal webhooks. Verify refunds and chargebacks reverse commission, with idempotent handlers for duplicate deliveries.
  6. CTIT alerts. Set a click-to-conversion velocity threshold and alert on faster-than-plausible events.
  7. Consent and GPC. Block cookies and pixels until consent, and honour Global Privacy Control signals.

Sign-off: engineering and affiliate ops sign, dated, with test conversion IDs attached.

Final thoughts on affiliate tracking

Track the identifier, not the cookie, and make every payout auditable from click_id through to the reversal webhook. S2S postbacks with a deduplicated transaction ID give you that audit trail, but the EDPB's 2/2023 guidelines confirm they do not exempt you from consent under Article 5(3). Probabilistic fingerprinting is not a workaround there either.

Frequently asked questions about affiliate tracking

What happens to the click_id between click and payout?

An affiliate link routes the visitor through your tracking server via an HTTP 302 redirect, which records the click parameters and assigns a unique click identifier. At conversion, a cookie or an S2S postback returns that identifier so the platform can match the event and pay the partner. Payout is calculated from the matched event, so identifier integrity is the whole game.

What is the difference between cookie tracking and server-to-server (S2S) tracking?

Cookie tracking stores the click identifier in the visitor's browser. S2S stores nothing there: the advertiser's server posts the click identifier straight to your tracker's postback URL. S2S survives Safari ITP, Firefox ETP and ad blockers, but it needs IP whitelisting or a secure postback code to stop spoofed conversions. Neither approach removes your consent obligations.

What is a postback URL in affiliate marketing?

It is the tracker endpoint the advertiser's server calls with the click_id and payout values when a conversion fires. An HTTP 200 response in the postback log confirms receipt. Secure the endpoint with IP whitelisting at advertiser or offer level, or a secure code parameter that the tracker validates, and reject anything that fails.

How long do affiliate tracking cookies last?

The cookie window is set by the programme, but browser rules override it. Under WebKit's ITP, JavaScript cookies are capped at 7 days without user interaction, and at 24 hours when the visitor lands from a link-decorated URL. Amazon Associates runs a 24-hour referral window for most purchases. A 30-day window on paper is often 24 hours in Safari.

Can affiliate links be tracked without cookies?

Yes. S2S postbacks, promo codes and app SDKs all attribute conversions without browser cookies. Awin's cookieless voucher attribution, for example, credits sales from a unique code entered at checkout rather than a prior tracked click. Cookieless is not consent-free: the EDPB's 2/2023 guidelines still apply to URL parameters and server-side routing.

Why are my affiliate conversions not tracking?

Documented causes include cached 301 redirects, HTTPS-to-HTTP downgrades, reporting timezone mismatches, blank click_id macros and blocked postback IPs. Compare gross versus unique clicks before blaming the partner: Everflow separates clicks into unique sessions via its USI. Treat 5–10% variance as normal and anything above 20% as failure or fraud.

How does cross-device affiliate tracking work?

Identity graphs and deep links stitch a journey across devices. impact.com uses its cross-device identity graph, Universal Tracking Tag and TrueLink deep linking to connect web and app touchpoints. For iOS app installs, MMPs validate SKAdNetwork postbacks, which return aggregated, delayed data rather than user-level identifiers. Cookieless cross-device coverage is a commercial choice as much as a technical one.

What is the best affiliate tracking software?

It depends on your category, not a single ranking. Awin suits retail networks, impact.com suits enterprise partnership management, FirstPromoter and Tapfiliate suit Stripe-based SaaS, and Everflow, TUNE, Affise and Scaleo suit performance and iGaming programmes. Media buyers need RedTrack or Voluum, which are ad trackers, not payout platforms. Match the billing model to payout volume before signing.

Is server-to-server affiliate tracking GDPR compliant?

It can be, but S2S is not an exemption. The EDPB's Guidelines 2/2023 apply Article 5(3) of the ePrivacy Directive to URL parameters, pixels and server-side routing whenever information is stored on or read from a user's device. In the UK, PECR requires prior consent for non-essential tracking. The cashback and rewards exemption the ICO clarified is narrow.

What is cookie stuffing in affiliate marketing?

Cookie stuffing is secretly dropping affiliate cookies on browsers that never clicked the link, so the partner claims commissions on organic sales. In eBay's Operation Trip Wire, affiliates Shawn Hogan and Brian Dunning used hidden image tags to plant cookies; both pleaded guilty to wire fraud, and Hogan was sentenced to five months in federal prison. Detect it through click-to-conversion velocity and placement audits.

More articles