Affiliate tracking is what connects a click on your website, newsletter, social profile or other publishing channel to the commission you eventually earn.
On the surface, the process sounds simple: a reader clicks an affiliate link, buys something, and the publisher receives a commission.
In practice, affiliate tracking can involve redirects, cookies, click IDs, SubIDs, server-to-server tracking, attribution windows, multiple devices and several different affiliate networks.
For publishers working with more than one program or traffic source, understanding how this works is increasingly important.
This guide explains affiliate tracking from a publisher's perspective, including how sales are attributed, where tracking can fail and how to build a more reliable setup.
Affiliate tracking is the technology used to identify when a customer referred by a publisher completes a desired action with an advertiser.
That action might be:
The advertiser or affiliate network then attributes that conversion to the publisher responsible for the referral.
Every step needs to be recorded correctly for the publisher to receive credit.
Imagine you publish an article comparing five hotel booking websites. A visitor clicks your affiliate link for one of those companies.
Instead of sending the visitor directly to the advertiser, the affiliate link normally passes through a tracking system first.
The system may record information such as:
The visitor is then redirected to the advertiser's website. If the visitor completes a qualifying purchase, the advertiser reports that conversion back to the affiliate network or tracking platform.
The platform attempts to match the conversion with the original click. If attribution is successful, the commission appears in your affiliate account.
An affiliate link contains information that identifies the publisher responsible for sending the visitor.
A normal URL might look like:
example.com/product
An affiliate URL can contain additional parameters identifying the network, advertiser and publisher.
Publishers generally don't need to understand every parameter inside an affiliate URL, but several are particularly useful.
Identifies your affiliate account so the network knows which publisher should receive credit.
Identifies the merchant, program or campaign receiving the visitor.
A unique identifier that can allow the original click to be matched with a later conversion.
A publisher-defined parameter used to identify the page, placement, campaign or traffic source behind a click.
SubIDs are additional parameters publishers can use to identify where a click originated.
For example:
article-best-laptops
youtube-review
newsletter-august
This makes it possible to see which page, placement or campaign generated a sale.
Once a publisher operates across multiple articles, sites or traffic sources, consistent SubID tracking can turn basic network reporting into genuinely useful performance data.
Cookies have traditionally been one of the main ways affiliate networks remember that a visitor came from a particular publisher.
When someone clicks an affiliate link, a tracking cookie may be placed in their browser. If they return and purchase later, the affiliate network may use that information to associate the conversion with the publisher.
Affiliate programs often specify a cookie duration.
The visitor generally needs to complete the qualifying action within 24 hours of the affiliate click.
The referral may remain eligible for attribution for considerably longer after the initial click.
A longer cookie duration does not automatically mean a program will generate more revenue, but attribution windows can matter considerably for products with longer purchasing cycles.
Attribution determines which publisher receives credit for a conversion.
This becomes more complicated when a customer interacts with multiple marketing channels before buying.
A customer reads your product review.
They click your affiliate link but leave without purchasing.
Two days later they click another publisher's affiliate link.
They complete the purchase.
Which publisher receives the commission depends on the attribution rules used by the advertiser or affiliate network.
Under a last-click model, the final eligible affiliate interaction before the conversion usually receives the credit.
A first-click model instead gives credit to the publisher or channel responsible for the initial eligible referral.
More sophisticated systems may attempt to assign value to several interactions across the customer's journey rather than awarding all credit to a single touchpoint.
Other marketing interactions may affect attribution after an affiliate click, depending on the advertiser's rules.
These can include:
Commission percentage is only one part of evaluating an affiliate program. Attribution rules, conversion rate, average order value and tracking reliability can all materially affect publisher revenue.
There are several technical approaches to affiliate tracking, but it is useful for publishers to understand the distinction between browser-dependent tracking and server-side tracking.
Tracking takes place partly inside the visitor's browser, often using cookies, JavaScript or tracking pixels.
Conversion information is communicated directly between systems rather than relying exclusively on the customer's browser.
Postback tracking, sometimes referred to as server-to-server or S2S tracking, can use unique click IDs to connect clicks with conversions.
A visitor clicks an affiliate link.
The tracking system generates or records a click ID.
The click ID is passed through the conversion journey.
The visitor completes the qualifying action.
Conversion information is sent back to the appropriate tracking system.
Because this approach does not depend entirely on retaining information inside the customer's browser, it can be more resilient in certain tracking environments.
Publishers sometimes see discrepancies between the traffic they send and conversions appearing inside affiliate reporting.
There can be many explanations.
Browsers and devices may restrict technologies used as part of the attribution process.
A customer may remove browser data before completing their purchase.
Someone might discover a product and click on their phone before later completing the purchase on a laptop.
Incorrect consent-management implementations can interfere with tracking technologies that are required for attribution.
Incorrect parameters, malformed links or badly configured redirects can remove information required for tracking.
Tracking implementation can also fail on the advertiser or network side.
Affiliate platforms may define and report clicks, transactions, commissions and statuses differently. Reporting delays can create additional apparent discrepancies.
Relying exclusively on individual affiliate network dashboards becomes increasingly difficult as a publisher adds more programs, websites and traffic sources.
At minimum, it is useful to understand:
EPC means earnings per click. It is one of the simplest ways to compare the commercial performance of affiliate traffic.
Example: €500 commission ÷ 2,000 affiliate clicks = €0.25 EPC
EPC can help publishers compare advertisers, placements and content even when the underlying commission structures differ.
One of the simplest improvements a publisher can make is to use SubIDs consistently.
Instead of knowing only that an advertiser generated €2,000 in commission, you could know that:
That changes how useful the data becomes.
You can start making decisions about which:
Managing one affiliate program is relatively easy. Managing ten networks is not.
Each network may have its own:
A publisher might therefore have traffic data in an analytics platform, affiliate clicks across several networks, conversions in different dashboards and commission information scattered across multiple reports.
This makes seemingly simple questions surprisingly difficult to answer.
Which page generated the most affiliate revenue? Which traffic source has the highest EPC? Which advertiser converts best? Which network is underperforming? Which content should be updated next?
As publisher operations grow, consolidating affiliate data into a central reporting system can make these questions considerably easier to answer.
The terms are sometimes used interchangeably, but they describe slightly different things.
Primarily concerned with recording referrals, clicks, transactions and conversions.
Uses tracking data to understand performance and make better commercial decisions.
Tracking tells you: a sale happened.
Analytics tells you: this article generated 43 sales from 1,900 affiliate clicks and earns considerably more per visitor than comparable content.
For a publisher trying to scale, the second insight is ultimately much more useful.
There isn't one perfect setup for every publisher. But a mature system generally tries to provide visibility across the full commercial journey.
Where did the visitor come from?
Which page, video, newsletter or campaign generated the click?
Which affiliate link or placement did the visitor use?
Which merchant or commercial partner received the visitor?
Did the visitor complete the desired action?
How much publisher commission did that conversion generate?
Ideally, publishers should be able to connect as much of this journey as possible without making their tracking stack unnecessarily complex.
Before scaling an affiliate operation, check whether you can answer these questions confidently.
If the answer to several of these questions is no, there is probably room to improve the tracking setup before investing heavily in more traffic.
Affiliate tracking isn't only a technical concern. For publishers, it is the foundation of good monetisation decisions.
If you don't know which content, links, advertisers and traffic sources generate revenue, it becomes much harder to know where to invest your time.
A basic affiliate operation may only need individual network dashboards and sensible SubID tracking.
As the business grows across more websites, networks and traffic sources, centralised affiliate reporting and more advanced attribution become increasingly useful.
The goal isn't to collect every possible datapoint. It's to have enough reliable information to answer the questions that actually help you grow your publishing business.