Back to Blog

Affiliate Link Tracking: Cloaking & Attribution

You're running affiliate links across a blog, a YouTube channel, and a newsletter, but you can't say which one earned last month's commissions. This is the complete, compliance-aware guide to cloaking, disclosure, and attribution that actually holds up.

Karan Bhakuni
Karan Bhakuni
Founder, Flyn
StrategyMay 16, 202621 min readUpdated May 16, 2026
Affiliate Link Tracking: Cloaking & Attribution

Disclosure and rel="sponsored": The Non-Negotiable Part

This is the section creators most want to skip and least can afford to. Disclosing affiliate relationships is a legal requirement in the United States, enforced by the Federal Trade Commission, and similar rules exist in the UK, EU, and elsewhere. It is not a best practice. It is the law, and "I cloaked the link" is not a defense.

What the FTC actually requires

The FTC's standard is that disclosures must be clear and conspicuous, and they sit alongside the rel="sponsored" attribute that satisfies Google; our guide to disclosing affiliate links the right way covers both layers in detail. For affiliate content that means:

  • Placement before the link, where a reader sees it before clicking, above the affiliate links, not in a footer or on a separate policy page only.
  • Plain language. "I may earn a commission if you buy through these links" works; vague words like "affiliated" or "partner" do not.
  • On every piece of content. One sitewide page is not enough, disclose on each post, video, and email with affiliate links.
  • In the medium itself. For video and audio, say it out loud and show it on screen, a description-box line alone does not meet the standard.
A six-item compliance checklist covering a clear disclosure above the links, rel sponsored on every affiliate link, plain-language wording, disclosure on every page, spoken disclosure for video, and disclosing on social posts
Run every piece of affiliate content through this checklist before it ships. Five of the six items have nothing to do with code, they're about what the reader sees.

Where rel="sponsored" fits, and where it doesn't

Here's the distinction that trips people up: rel="sponsored" is for search engines, FTC disclosure is for humans. Two separate obligations, doing one does not cover the other. Google asks that you mark paid and affiliate links with rel="sponsored" (combine it as rel="sponsored nofollow") so the link doesn't pass ranking signal in a way that looks like link-buying. It is invisible to readers. Our nofollow vs dofollow guide covers how Google treats each value, and the nofollow link checker audits your live pages to confirm every affiliate link is tagged.

A rel="sponsored" attribute keeps you right with Google. A visible, plain-English disclosure keeps you right with the FTC. Skip either one and you're exposed, they protect you from completely different risks.

Use this table as your reference for which rel attribute belongs on which link:

Link typerel attributeWhy
Affiliate / commission linkrel="sponsored" (or sponsored nofollow)Compensated placement, Google's required marking for paid links.
Paid ad or sponsorshiprel="sponsored"Same category: money changed hands for the placement.
Editorial link you genuinely recommend (no commission)none (dofollow)An honest, uncompensated recommendation can pass normal signal.
Affiliate link in a user comment or forum postrel="ugc sponsored"User-generated and commercial, mark both.
Untrusted or bulk outbound linkrel="nofollow"Generic "I don't vouch for this" with no payment involved.

One catch worth knowing: if you cloak affiliate links through a redirect, the rel="sponsored" goes on the <a> tag in your HTML, the link to your branded slug. The redirect hop itself can't carry a rel attribute, so the discipline is to tag every affiliate <a> element on your own pages.

Per-Channel Attribution: Know What Actually Earns

Now the part that turns affiliate marketing from a hobby into a business. If you promote the same offer on YouTube, in a newsletter, and in a blog post with one shared link, you have one number that means nothing, you cannot tell the channels apart. Per-channel attribution fixes that, and it's not complicated.

The simplest, most reliable method: create a separate cloaked link per channel for the same offer. One mic review, three links:

  • go.yoursite.com/best-mic-yt, in the YouTube video description
  • go.yoursite.com/best-mic-email, in the newsletter
  • go.yoursite.com/best-mic-post, in the blog roundup

All three redirect to the same merchant URL with the same affiliate ID. But now your link cloaker dashboard shows three separate click counts, and you instantly know which channel pulls. This is the single highest-leverage habit in this entire guide. When you need a lot of them at once, you can create multiple short links for one URL in one step.

Flow diagram showing three channels each using a unique cloaked link with its own sub-ID, all feeding a dashboard that attributes clicks and commission back to YouTube, the newsletter and the blog post
One offer, three cloaked links, one dashboard. When the video earns twice the newsletter, you stop guessing and start making more videos.

Use sub-IDs to push attribution all the way to the sale

Click counts are the top half of attribution; the bottom half lives in the merchant's network. Most affiliate networks let you pass a sub-ID (also called subid, subtag, or SID) that flows through to your commission reports. Set a distinct sub-ID per channel in the destination URL, ?aff=yourid&subid=yt-mic-review for one channel, ?aff=yourid&subid=email-issue-44 for another. When the commission clears, the network report shows which sub-ID earned it; combine that with your cloaked-link click counts and you have clicks and revenue per channel. When the merchant page also feeds an analytics tool you can see, append UTM parameters too, build them with the UTM Builder, verify inbound tagged links with the UTM Parser, and follow the conventions in our ultimate guide to UTM parameters. The principle: sub-IDs attribute the commission, UTMs attribute the on-site behavior, and a serious affiliate uses both.

Pro tip

Name your per-channel links and sub-IDs with a fixed pattern, offer-channel-placement, e.g. best-mic-yt-pinned-comment vs best-mic-yt-description. A consistent scheme means you can split-test placements (pinned comment vs description box) inside a single channel, and your reports stay readable a year later. The same naming discipline we recommend for UTM campaigns applies to affiliate sub-IDs.

Protecting Your Affiliate ID From Being Stripped

Here's a quiet way to lose real money: your content drives the click, the reader buys, and you earn nothing, because your affiliate ID got stripped somewhere between the click and the merchant. It happens more than affiliates realize, and cloaking either prevents it or causes it depending on your setup.

How affiliate IDs get lost

The affiliate ID is just a query parameter, ?tag=yoursite-20, ?aff=12345, and query parameters are surprisingly easy to drop:

  • An extra redirect hop that doesn't forward query strings. Each hop is a chance to lose parameters.
  • The merchant URL changes, the product page moves and your cloaked link now 404s or lands on a generic page with no affiliate context.
  • A reader's privacy tool strips parameters it considers "tracking junk", some aggressive cleaners treat tag= like fbclid.
  • You hand-typed the link wrong. The link works; the commission doesn't.
  • The cookie window expired or got overwritten by another affiliate's link before checkout.

How to defend the ID

Cloaking helps here when done right, your branded redirect is a stable, single hop you control, with the ID baked into the destination once. To keep it intact:

  • Keep the chain to one hop. Your slug redirects straight to the final merchant URL, no intermediate cloaks or third-party shorteners. Verify with a redirect checker that the chain is exactly one step.
  • Audit destinations quarterly. Merchants change URLs without telling you; a redirect checker run catches 404s and silent redirects before they cost a season of commissions.
  • Confirm the final URL still has the ID. After every hop, the affiliate parameter should still be in the resolved URL. If it's gone, the hop ate it.
  • Vet any link before you trust it. Republishing a link from a network dashboard? Run it through the short link safety checker to see the full resolved destination.
Pro tip

Set a quarterly reminder to bulk-test your top 20 affiliate links. Click each cloaked slug, let it resolve, and confirm two things: the page loads (no 404) and the affiliate ID is still in the final URL. Twenty minutes a quarter protects months of commission. A redirect checker automates the resolve-and-inspect step.

Affiliate ID hijacking, the deliberate version

Beyond accidental stripping, affiliate ID hijacking is when someone deliberately replaces your ID with theirs, via malware or shady browser extensions on the buyer's machine, or scrapers that lift your links and swap the tag before republishing. You can't control an infected browser, but you can control your own links: cloaking keeps the real ID out of plain sight where it'd be scraped and swapped. Monitor your click-to-commission ratio, and treat a healthy click count with collapsing commissions as a red flag.

Tracking Clicks vs Conversions

One of the most common ways affiliates misread their own data is conflating clicks with conversions. A click is someone hitting your affiliate link, your link tool records it at the redirect server instantly, before any cookie restriction interferes. A conversion is someone completing a purchase the merchant pays you for, which only the merchant's affiliate network can confirm, often days later after a return window. Your link dashboard owns one number; the network owns the other. Confusing them leads to bad decisions in both directions, celebrating dead campaigns and killing good ones.

Why clicks still matter even though they aren't revenue

Some affiliates dismiss click data because "clicks aren't money." That's a mistake. Click data is your fast feedback loop, commissions clear slowly, clicks are immediate. Strong clicks on a new video on day one is an early signal; zero clicks is a problem to fix now (wrong placement, weak CTA, link not visible) instead of discovering it a month later when the commission report is empty. Click data also isolates where the funnel breaks:

  • Low clicks, low commissions, top-of-funnel problem. Your content isn't driving people to the link at all. Fix placement, context, and CTA.
  • High clicks, low commissions, bottom-of-funnel problem. People are clicking but not buying, or your affiliate ID is broken and sales aren't being credited. Check the tag first.

That second pattern is the one to internalize. Healthy clicks with near-zero commissions is the classic signature of a stripped or mistyped affiliate ID, not weak content. Before you rewrite the post, test the link with a redirect checker and confirm the ID survives to the merchant.

Watch out

Not every click is a human. Preview bots, security scanners, and crawlers all hit affiliate links and inflate raw click counts, which makes your click-to-conversion ratio look worse than reality. Flyn filters obvious bot traffic automatically, but you should understand the pattern: read our click fraud prevention guide so you're comparing real clicks against conversions, not crawler noise.

Reconcile the two numbers monthly

Once a month, put your per-channel click counts next to the network's per-sub-ID commission report and compute a rough click-to-commission rate per channel. Over time those rates become your baseline, and a channel that suddenly falls off its baseline is telling you something broke. This habit is what separates affiliates who know their business from affiliates who are guessing.

Common Affiliate Tracking Mistakes

After looking at a lot of affiliate setups, the same handful of mistakes show up over and over. None are hard to fix; all of them quietly cost money or risk a ban. Here's the field guide.

The mistakes that cost you commissions

  • Broken affiliate tags after a redirect. The number one silent killer. A redirect hop drops the query string, or the merchant moved the page, and your ID never arrives. Test the full chain with a redirect checker.
  • Reusing one link across every channel. You lose all per-channel attribution and can never tell what's working. Use a distinct cloaked link and sub-ID per channel.
  • Chaining shorteners. A short link inside a cloaked link inside another redirect, every hop risks the tag and slows the click. Keep it to one hop. Vet suspicious chains with the short link safety checker.
  • Never auditing old posts. Affiliate programs end, products go out of stock, merchants restructure URLs. Last year's roundup is full of dead links earning nothing, quarterly audits catch it.

The mistakes that risk a ban, a fine, or your data

  • Missing or buried disclosure. No disclosure, or one hidden in a footer, fails the FTC's clear-and-conspicuous standard. Put a plain-language disclosure above the links on every post.
  • Deceptive cloaking and ignoring program terms. Cloaking that hides the destination draws scrutiny; cloaking Amazon links against the Associates agreement can get your account terminated and unpaid. Cloak for tidiness, never for disguise, and read the terms.
  • No rel="sponsored". Affiliate links that pass normal ranking signal look like paid link schemes to Google. Mark every one, audit with the nofollow link checker.
  • Treating raw clicks as gospel. Bot and scanner traffic inflates counts, see click fraud prevention for what to filter against your conversions.
  • Spammy, unbranded links. Long, ugly, or sketchy-domain affiliate links get flagged by email and social filters, see why short links get flagged as spam, and cloaking through a generic shortener instead of your own domain wastes the trust signal, as custom domains and branded link trust explains.

Work down those two lists once and you're ahead of the large majority of affiliate marketers, most never audit, never reconcile, and never check whether their tags survive a redirect.

Building Your Affiliate Tracking Stack

Here's everything assembled into a repeatable system: clean links, honest disclosure, full attribution, and a maintenance habit that keeps it working.

The setup, step by step

For each affiliate offer you promote:

  1. Build the destination URL with your affiliate ID and a per-channel sub-ID. Double-check the ID for typos, this is where commissions are won or lost.
  2. Cloak it into a clean branded slug with a link cloaker on your own domain. One slug per channel: -yt, -email, -post.
  3. Tag the HTML, every affiliate <a> on your pages gets rel="sponsored".
  4. Write the disclosure, plain language, placed above the links, on that specific piece of content.
  5. Test the chain with a redirect checker: one hop, no lost parameters, affiliate ID present in the final URL.
  6. Publish, then watch per-channel click counts for early signal.

Flyn's free toolset maps directly onto that workflow: the Link Cloaker turns raw affiliate URLs into clean branded slugs with tracking built in; the Redirect Checker verifies the hop count and confirms your affiliate ID survives to the merchant; the Nofollow Link Checker audits a page to confirm every affiliate link carries rel="sponsored"; the Short Link Safety Checker expands and inspects any link before you trust it; the UTM Builder and UTM Parser handle offers where on-site analytics applies; and platform shorteners like the Amazon link shortener, eBay link shortener, Temu link shortener, Flipkart link shortener, and Gumroad link shortener cover merchant-specific hygiene. Browse the full set on the tools page.

When to move from free tools to a real account

The free tools cover one-off tasks. Once you're running affiliate links at scale, many offers, many channels, a library you maintain for years, you want the durable layer: a branded domain, a central dashboard for every link, per-link click analytics, and bulk auditing. That's where a Flyn account earns its place; see pricing for what each tier includes. When "which post earned that?" becomes a weekly question, you've outgrown spreadsheets. And whichever tier you land on, a tracking stack is not set-and-forget, put two tasks on the calendar: monthly, reconcile per-channel clicks against network commissions to catch broken tags; quarterly, bulk-audit destinations for dead links and verify disclosures are still in place on older content. That rhythm is the difference between affiliate income you understand and affiliate income you merely hope for. And once the tracking is solid, the next lever is retargeting the people who click your affiliate links: fire an ad pixel on the redirect and turn one-time clicks into a warm audience you can advertise to again.

Frequently Asked Questions

Is affiliate link cloaking against the rules?
It depends entirely on the program and how you do it. Cloaking purely for clean, manageable URLs, turning a long tracking string into a branded slug that still leads honestly to the merchant, is standard practice and fine for most networks. What gets you in trouble is deceptive cloaking that hides where the click goes, or cloaking that breaks a specific program's terms. Amazon Associates is the notable example: its operating agreement restricts cloaking and wants links to stay identifiable as Amazon links. Always read each program's terms before cloaking its links, and never use cloaking to disguise an affiliate relationship from your readers.
Do I have to disclose affiliate links?
Yes. In the United States the FTC requires a clear and conspicuous disclosure whenever you have a financial relationship with a product you're promoting, and affiliate commissions count. Similar rules exist in the UK, EU, and many other countries. The disclosure must use plain language a normal reader understands ("I may earn a commission if you buy through these links"), appear before the affiliate links rather than buried in a footer, and be present on every post, video, or email that contains them. For video and audio you also need to say it out loud and show it on screen. Disclosure is a legal obligation, not an optional courtesy, and cloaking your links does not replace it.
What is the difference between rel="sponsored" and a disclosure?
They solve different problems for different audiences. rel="sponsored" is an HTML attribute aimed at search engines, it tells Google a link is paid or affiliate so it does not pass ranking signal like a normal editorial link. It is invisible to your readers. An FTC disclosure is human-facing text that tells your readers you may earn a commission. You need both: rel="sponsored" keeps you compliant with Google's link guidelines, and a visible disclosure keeps you compliant with the FTC. Doing one does not cover the other. You can confirm your affiliate links carry the attribute with a nofollow link checker.
How do I track which channel my affiliate sales come from?
Give every channel its own link. For a single offer promoted on YouTube, in a newsletter, and on a blog, create three separate cloaked links, for example /best-mic-yt, /best-mic-email, and /best-mic-post, all redirecting to the same merchant URL. Your link cloaker dashboard then shows three distinct click counts. To carry attribution all the way to the commission, also set a unique sub-ID per channel in the destination URL (subid=yt-mic-review), which most affiliate networks pass through to your commission reports. Together, per-channel cloaked links and sub-IDs let you see both clicks and revenue by channel.
Why are my affiliate links getting clicks but no commissions?
The most common cause is a broken affiliate ID, not weak content. If your link tool shows healthy clicks but the network reports almost no commissions, your affiliate parameter is probably being stripped somewhere, by an extra redirect hop that drops query strings, by a merchant URL change that lands clicks on a generic page, by a typo in the ID, or by a buyer's privacy extension. Test the full path with a redirect checker: the chain should be one hop and the affiliate ID should still be present in the final resolved URL. Also remember some "clicks" are bots, see our click fraud prevention guide, so compare conversions against filtered, real click counts.
Can I use a regular URL shortener for affiliate links?
You can, but a purpose-built link cloaker on your own domain is better. A generic public shortener gives you a non-branded domain that wastes the trust signal, often limited or no per-link click analytics, and no easy way to swap the destination when an offer dies. A link cloaker tied to a branded domain gives you clean memorable URLs, editable redirects so dead offers swap in one place, click tracking for per-channel attribution, and a central dashboard for every link. Avoid chaining shorteners, a shortened link inside a cloaked link adds hops that can strip your affiliate tag. See custom domains and branded link trust for why the domain matters.
What is a sub-ID in affiliate tracking?
A sub-ID (also called subid, subtag, or SID depending on the network) is a custom tracking value you append to your affiliate link that flows through to your commission reports. Where your affiliate ID identifies you, a sub-ID identifies the specific placement, a channel, a campaign, even an individual post. For example ?aff=yourid&subid=email-issue-44 tells the network this sale came from your newsletter's 44th issue. When the commission clears, the network's report breaks revenue down by sub-ID, so you can see exactly which content earns. Sub-IDs are the bottom half of attribution; your cloaked-link click counts are the top half. Use both for a complete picture.
How often should I audit my affiliate links?
Run two cycles. Monthly, reconcile your per-channel click counts against the affiliate network's commission report, this catches broken tags fast and shows which channels actually earn. Quarterly, do a deeper audit: run your top affiliate links through a redirect checker to catch dead destinations (programs end, products go out of stock, merchants restructure URLs) and confirm your affiliate ID still survives to the merchant. While you're there, verify disclosures are still present on older posts. Twenty minutes a quarter protects months of commission income, affiliate links decay silently, and the only way to catch a broken one is to look.
What is an affiliate link?
An affiliate link is a standard product or page URL with your unique affiliate ID attached as a tracking tag, for example Amazon's ?tag=yourname-20. When a visitor clicks it and buys, the merchant reads that ID and credits the commission to you. The destination is the same page everyone sees; only the tag identifies you as the referrer. You get one from the program you joined (Amazon Associates SiteStripe, or a network like ShareASale or Impact). Most affiliates then shorten and cloak the link so it looks clean, survives sharing, and hides the raw ID, and they disclose it to stay within FTC and platform rules.

Ready to try Flyn?

Free plan includes 25 links/month, full analytics, and access to all 30+ free tools above. No credit card required.

Already a member? Log in

Karan Bhakuni
Karan Bhakuni· Founder, Flyn

Karan Bhakuni is the founder of Flyn. He writes about branded links, click analytics, and the link-management tooling growth teams and creators actually need, drawn from building Flyn and reading a lot of user feedback.