Affiliate Link Tracking
Affiliate link tracking is the practice of attaching a unique identifier to a partner’s link so any resulting sale can be credited back to that partner. Each click stores the identifier in a cookie or passes it forward as a click ID, and the checkout reports it back when a purchase completes. Without it, a merchant has no defensible way to calculate commissions or settle a payout dispute.
Anatomy of an Affiliate Tracking Link
Every affiliate link carries the same four pieces of information, whatever the network calls them.
https://go.network.com/click?a=44821&o=1290&subId1=yt-review-jan&url=https%3A%2F%2Fbrand.com%2Fpricing
- Affiliate ID (
a=44821). Identifies the partner. This is the value that determines who gets paid. - Offer or merchant ID (
o=1290). Identifies which program and commission rate applies. - SubID (
subId1=yt-review-jan). A free-text slot the partner controls, used to label their own placements. - Destination (
url=...). The URL-encoded landing page. The redirect sends the visitor here after logging the click.
Amazon Associates uses a flatter structure with the tag appended directly to the product URL:
https://www.amazon.com/dp/B08N5WRWNW?tag=yourname-20&ascsubtag=blog-post-1
Google requires affiliate links to be marked with a link attribute so they are not treated as editorial endorsements:
Check current pricing
How Affiliate Link Tracking Works
The identifier has to survive the gap between the click and the purchase, which can be days.
- A visitor clicks the partner link and passes through the network’s redirect.
- The redirect logs the click and writes the partner identifier to a cookie, appends a click ID to the destination URL, or both.
- The visitor browses and eventually reaches checkout.
- The order confirmation fires a pixel or a server-to-server postback carrying the stored identifier and the order value.
- The platform matches that conversion to the original click and queues a commission.
The mechanics of step 4, including why postbacks beat pixels once real money moves, are covered in the affiliate link tracking software breakdown.
Types of Affiliate Link Tracking
| Method | How it identifies the partner | Reliability |
|---|---|---|
| Cookie-based | A first-party cookie set during the redirect | Degraded by browser privacy limits |
| Click ID (postback) | An ID in the URL, stored server-side and returned at conversion | Highest. Independent of the browser |
| Coupon or promo code | A partner-specific code entered at checkout | Recovers offline and untracked clicks |
| Fingerprinting | IP and user agent matched probabilistically | Weak. Restricted in the EU under GDPR |
| Mobile measurement (MMP) | An SDK matching installs to clicks | Standard for app installs |
Most programs run two in parallel: click ID as the system of record, with a promo code catching the traffic that arrives untracked.
SubIDs and What They Do
SubIDs are the partner’s own labels, passed through untouched and returned in their reports. A publisher running the same offer in a YouTube description, a newsletter, and a comparison table uses three SubIDs to see which one converts.
| Network | SubID parameter |
|---|---|
| Amazon Associates | ascsubtag |
| Impact | subId1 through subId3 |
| ShareASale | afftrack |
| CJ Affiliate | sid |
| Rakuten Advertising | u1 |
Merchants should treat SubIDs as untrusted input. They are set by the partner, never validated, and frequently contain spaces, mixed case, or personal data that does not belong in a report.
Affiliate Link Tracking vs UTM Tracking
Both add parameters to a URL, but they answer different questions and live in different systems.
| Affiliate link tracking | UTM tracking | |
|---|---|---|
| Purpose | Credit a partner and calculate a payout | Attribute a session to a channel |
| Read by | The affiliate network or tracking platform | Google Analytics and similar tools |
| Persistence | Cookie or click ID, days to months | Session-scoped in GA4 |
| Ties to money | Yes, drives commission | No, reporting only |
| Survives checkout | Yes, via pixel or postback | Only if passed through separately |
They are complements, not substitutes. Tagging partner links with utm_medium=affiliate puts every partner in one clean bucket in GA4, which gives an independent number to reconcile the network’s report against. When the two disagree by more than a few percent, tracking is broken somewhere.
Cookie Windows and Attribution Rules
The cookie window sets how long after a click a purchase still earns commission. It is the single most disputed term in any program.
| Program type | Typical window |
|---|---|
| Amazon Associates | 24 hours (90 days for items added to cart) |
| Standard network default | 30 days |
| SaaS and subscription programs | 60 to 90 days |
| Coupon and cashback sites | Often shortened deliberately |
Nearly all affiliate platforms default to last-click attribution. The most recent partner click inside the window takes the full commission, which is why coupon sites capture credit from content publishers who introduced the customer earlier.
Common Affiliate Link Tracking Problems
- Safari cookie limits. Intelligent Tracking Prevention caps JavaScript-set first-party cookies at 7 days, and 24 hours for navigations decorated by a classified tracker. Long cookie windows quietly stop working for Safari traffic.
- Parameter stripping. Social platforms and some email clients rewrite outbound URLs and drop unrecognized parameters, taking the affiliate ID with them.
- Naming drift. One partner recorded as
ravitech,ravi_tech, andRaviTechsplits into three rows and starts a payout argument. - Self-referrals. Partners clicking their own links to earn commission on personal purchases. Most networks let you block this by IP or account.
- Broken conversion pixels. Clicks climb, conversions read zero. Reconcile weekly, not monthly, or a broken pixel costs an entire billing cycle.
- Redirect chains. Each additional hop adds latency and another point where parameters can be lost.
Frequently Asked Questions
What is affiliate link tracking?
Affiliate link tracking attaches a unique partner identifier to a link, records the click, and matches any resulting purchase back to that partner. The identifier persists in a cookie or as a click ID between the click and the sale. It exists so commissions can be calculated from evidence rather than trust.
How do you track affiliate links without an affiliate network?
Give each partner a unique tagged URL, set utm_medium=affiliate and utm_source to the partner name, and shorten it on a branded domain so the destination stays editable. Record clicks in your link tool and match them against order data from your ecommerce platform. This works cleanly up to roughly 15 partners, past which manual commission math becomes the bottleneck.
What is a SubID in affiliate tracking?
A SubID is a partner-controlled label passed through the tracking link and returned in reporting. It lets a publisher separate performance by placement, such as a YouTube description versus a newsletter, without needing a new link from the merchant. Each network names the parameter differently: ascsubtag on Amazon, afftrack on ShareASale, sid on CJ.
How long do affiliate cookies last?
Thirty days is the common default across networks, though it is set per program. Amazon Associates is the notable outlier at 24 hours. Subscription and SaaS programs often run 60 to 90 days because their sales cycles are longer. Browser privacy rules can cut the effective window well below the stated one.
Do affiliate links need rel=”sponsored”?
Yes. Google asks that affiliate and other paid links carry rel="sponsored or rel="nofollow, introduced as a link attribute in September 2019. Separately, the FTC’s Endorsement Guides require a clear and conspicuous disclosure near the link. The two obligations are independent, and satisfying one does not satisfy the other.
To generate consistent partner links in bulk, use the free affiliate UTM builder at linkutm, and cloak them behind a branded domain so destinations stay editable.