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

> The full chain: ad click, macros, tracking link, click ID, sub-ID, sale, postback, and the conversion sent back to the platform. And what breaks at each hop.

Source: https://hoplytic.com/blog/how-affiliate-tracking-works · Updated 2026-11-19 · Hoplytic Guides

Video version (73 seconds): [https://hoplytic.com/video/how-affiliate-tracking-works.mp4](https://hoplytic.com/video/how-affiliate-tracking-works.mp4)

## 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

- Tracking is a relay: the ad platform's values and your click ID ride in the URL to the network, and the network sends the click ID back with the sale.
- Server-to-server postbacks and network APIs have replaced cookies and pixels as the reliable way to learn about sales.
- Most tracking failures are a value lost in one hop: a macro not filled, a click ID in the wrong sub-ID slot, a redirect that drops the query string, or a wrong postback token.
- Judge profit on the network's commission; ad platforms and networks count with different windows and models, so their numbers never match exactly.

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

- **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}`.

- **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).

- **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.

- **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`.

- **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.

- **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.

- **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

| Party | Knows | Doesn't know |
| --- | --- | --- |
| Ad platform | Impressions, clicks, cost, placement, audience | Which clicks bought (unless you tell it) |
| Your tracker | Every click with its source values, device, country, bots, your costs | Sales, until the network reports them |
| Affiliate network | Clicks on its links, sales, payouts, statuses | Which ad, zone or keyword sent the click (unless you pass it) |
| Merchant | The order, the customer | Your 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

| Method | How it works | Speed | Used by |
| --- | --- | --- | --- |
| [Postback (S2S)](https://hoplytic.com/blog/postback-url) | The network calls your URL for each sale | Seconds | Most CPA networks: TUNE, Everflow, CAKE, Affise, MaxBounty |
| Reporting API | The tracker reads the network's sales list on a schedule | Minutes to an hour | Awin, Impact, CJ, Partnerize, ClickBank and others |
| Report upload | You download a CSV with the sub-ID column and upload it | Whenever you upload | Any network, including Amazon |
| Pixel | Code on the thank-you page fires in the browser | Seconds, but misses some | Your own store; rare for affiliate offers |

See [server-to-server vs pixel tracking](https://hoplytic.com/blog/s2s-vs-pixel-tracking) for why the browser-based methods lose conversions.

## Where it breaks, hop by hop

| Hop | Symptom | Usual cause |
| --- | --- | --- |
| Macros | Reports show `{zoneid}` literally, or empty | Misspelled macro or wrong brackets; see [every platform's macros](https://hoplytic.com/blog/ad-platform-macros) |
| Redirect | Click ID missing at the network | A shortener or redirect drops the query string |
| Sub-ID | Sales arrive but don't match a click | Click ID in the wrong slot (sub2 instead of sub1), or slot not supported |
| Postback | Network shows sales, tracker shows none | Wrong token (`{sub1}` on a TUNE network), postback set on the wrong offer, or not set globally |
| Attribution | Fewer sales than the network | Sales from clicks outside the tracker (old direct links, other traffic) |
| Send-back | Ad platform shows no conversions | Click 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](https://hoplytic.com/tools/redirect-checker) shows every hop), then fire a test conversion. [When postbacks don't arrive](https://hoplytic.com/blog/postback-not-working) has the full checklist.

## Why the numbers never match exactly

- **Clicks:** the ad platform counts ad clicks, the tracker counts arrivals, the network counts arrivals on its link. People who close the page before it loads, bots the tracker labels, and duplicate clicks all make small differences. Gaps over 10 to 15% are worth investigating.

- **Sales:** the network decides what's paid. Ad platforms also count conversions inside their own [attribution windows](https://hoplytic.com/blog/attribution-windows), including view-throughs, so they often claim more.

- **Timing:** trackers can report a sale on the day of the click or the day of the sale. Hoplytic reports it at the click's time, so yesterday's numbers keep growing as late sales arrive.

## What a tracker adds on top

- **Cost and ROAS** per placement, ad or keyword: see [ROAS tracking](https://hoplytic.com/blog/affiliate-roas-tracking).

- **Bot filtering**, so link previews and crawlers don't distort conversion rates: see [bot clicks](https://hoplytic.com/blog/bot-clicks-affiliate-links).

- **Rotation and rules**: one link splitting traffic between offers by weight, country or device: see [geo redirects](https://hoplytic.com/blog/geo-redirect-affiliate-links).

- **Link safety**: your own [tracking domain](https://hoplytic.com/blog/tracking-redirects-and-domains), dead-offer checks and backup links.

## 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.

![Making a tracking link for PropellerAds in Hoplytic: paste the offer link, pick the ad platform, and its click ID, zone and campaign macros are added to the tracking link.](https://hoplytic.com/video/howto-link-ad-platform.gif)

*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.
