How affiliate tracking works: from the click to the commission, step by step

November 19, 2026 · Hoplytic team · 5 min read

The short version: this guide in 73 seconds.
Read the video transcript

How does affiliate tracking work, from the ad click to the commission?

Every tracker carries a few values from the click to the sale and back. When tracking breaks, ask which hop lost a value.

Someone clicks your ad, and the ad platform fills the macros in your tracking link. Your tracker records the click, creates its own click ID, and redirects to the affiliate link with that ID in the sub-ID. When the visitor buys, the network sends the click ID and payout back to your tracker.

Sales come back by postback, reporting API, or a report you upload. A pixel in the browser misses some.

Most failures are a value lost in one hop: a macro that wasn't filled, or a click ID in the wrong sub-ID slot. Or a redirect that drops the query string, or a wrong postback token. Test by following one click end to end, then fire a test conversion.

On Hoplytic, paste a link and pick your traffic source. It detects the network, places the click ID, and adds the platform's macros. Sales arrive by postback, hourly sync or CSV, and bots are never charged.

The full guide is right below. Hoplytic: ad tracking made simple.

Key points

Every tracker, network and ad platform does the same basic job: carry a few values from the ad click to the sale and back again. Once you can see the chain, every tracking problem becomes a question of which hop lost a value.

Short answer: the ad platform fills macros in your tracking link (campaign, placement, its own click ID). Your tracker records the click, creates a click ID and redirects to the affiliate link with that ID in a sub-ID. The network stores it with the click; when the visitor buys, the network sends the click ID and payout back to your tracker by postback or API. The tracker attaches the sale to the click and can report it to the ad platform.

The seven hops

  1. The ad click. Someone clicks your ad on PropellerAds. The ad's destination is your tracking link with macros: https://go.yoursite.com/vpn?click=${SUBID}&zone={zoneid}.
  2. The platform fills the macros. PropellerAds replaces ${SUBID} with its click ID and {zoneid} with the placement: ?click=pa8812&zone=4410. Search and social platforms add their own click ID instead (gclid, fbclid, ttclid).
  3. The tracker records the click. It stores the time, country, device, OS, browser, network, the values from the URL, and creates its own click ID, say c7f3a9e1. It also decides whether the click is a bot.
  4. The redirect. In a few milliseconds the tracker sends the visitor to the affiliate link, adding its click ID to the network's sub-ID: https://network.com/aff_c?offer_id=12&aff_id=9&aff_sub=c7f3a9e1.
  5. The network stores the click. The network logs its own click with your aff_sub value and redirects to the merchant. The merchant remembers the network's click (usually server side) for the length of the attribution window.
  6. The sale and the postback. The visitor buys. The network credits you and calls your postback URL with the values filled in: /pb/KEY?click_id=c7f3a9e1&payout=32.00. Networks without postbacks expose the same data through a reporting API or a report you upload.
  7. The sale goes back to the ad platform. The tracker finds click c7f3a9e1, sees it came from zone 4410 with PropellerAds click ID pa8812, and calls PropellerAds' postback with that ID. For Meta, TikTok or Google it uses their conversion APIs or offline imports.

Now your report shows that zone 4410 earned $32 on, say, $9 of clicks, and PropellerAds' optimiser knows which of its clicks bought.

Who holds which data

PartyKnowsDoesn't know
Ad platformImpressions, clicks, cost, placement, audienceWhich clicks bought (unless you tell it)
Your trackerEvery click with its source values, device, country, bots, your costsSales, until the network reports them
Affiliate networkClicks on its links, sales, payouts, statusesWhich ad, zone or keyword sent the click (unless you pass it)
MerchantThe order, the customerYour traffic source (only the network's click)

A tracker is valuable because it's the only place where the traffic side and the money side meet.

How sales reach your tracker

MethodHow it worksSpeedUsed by
Postback (S2S)The network calls your URL for each saleSecondsMost CPA networks: TUNE, Everflow, CAKE, Affise, MaxBounty
Reporting APIThe tracker reads the network's sales list on a scheduleMinutes to an hourAwin, Impact, CJ, Partnerize, ClickBank and others
Report uploadYou download a CSV with the sub-ID column and upload itWhenever you uploadAny network, including Amazon
PixelCode on the thank-you page fires in the browserSeconds, but misses someYour own store; rare for affiliate offers

See server-to-server vs pixel tracking for why the browser-based methods lose conversions.

Where it breaks, hop by hop

HopSymptomUsual cause
MacrosReports show {zoneid} literally, or emptyMisspelled macro or wrong brackets; see every platform's macros
RedirectClick ID missing at the networkA shortener or redirect drops the query string
Sub-IDSales arrive but don't match a clickClick ID in the wrong slot (sub2 instead of sub1), or slot not supported
PostbackNetwork shows sales, tracker shows noneWrong token ({sub1} on a TUNE network), postback set on the wrong offer, or not set globally
AttributionFewer sales than the networkSales from clicks outside the tracker (old direct links, other traffic)
Send-backAd platform shows no conversionsClick ID from the ad platform wasn't captured, or the platform's window had passed

The fastest check is to follow one test click end to end: open your tracking link, check the final URL at the network contains your click ID in the right slot (the redirect checker shows every hop), then fire a test conversion. When postbacks don't arrive has the full checklist.

Why the numbers never match exactly

What a tracker adds on top

On Hoplytic

Paste an affiliate link and pick your traffic source: the link maker detects the network, puts the click ID in the right sub-ID slot and adds the platform's macros. Sales arrive by hosted postback, hourly API sync or CSV upload, bots are labelled and never charged, and Send back reports each sale to Meta, TikTok, Google, Microsoft or a push or native network.

Pick the ad platform and its macros are added to your tracking link.

Questions people ask

Do I need a tracker if my affiliate network already has reports?

The network knows which of its links earned, but not which ad, placement, keyword or page sent the click, and it doesn't know your costs. A tracker joins those, so you can see profit per ad or zone and stop paying for traffic that doesn't convert.

Does affiliate tracking still work without cookies?

Yes. Modern affiliate tracking passes a click ID in the URL and reports sales server to server (postback or API), so it doesn't depend on the visitor's browser keeping a cookie.

How long does it take for a sale to show up?

A postback usually arrives within seconds to minutes of the sale. API syncs run on a schedule (Hoplytic checks hourly), and some networks only report sales after a delay of hours or days.

More in Tracking fundamentals

Also: tracking glossary · ad platform macros · Markdown copy