What is an Affiliate Link? How They Work & Why They Look Ugly
You've probably seen links like this:
https://www.amazon.com/dp/B08N5WRWNW?tag=mysite-20&linkCode=ogi&th=1&psc=1
Or this:
https://shareasale.com/r.cfm?b=123456&u=789012&m=54321&urllink=&afftrack=
These are affiliate links — special URLs that track when someone clicks through and makes a purchase, earning the link creator a commission. They're the backbone of a $17 billion industry, but they have one big problem: they look terrible.
Let's break down what affiliate links are, how they work, and how to make them actually clickable.
What is an Affiliate Link?
An affiliate link is a URL with a unique tracking ID that allows merchants to attribute sales to specific marketing partners. When someone clicks your affiliate link and completes a purchase (or other action), you earn a commission.
Simple breakdown:
| Component | What It Does |
|---|---|
| Base URL | The product or landing page |
| Tracking ID | Your unique identifier (e.g., tag=mysite-20) |
| Additional parameters | Click tracking, campaign info, attribution data |
Example anatomy:
https://amazon.com/dp/B08N5WRWNW?tag=mysite-20&linkCode=ogi └─────────── base URL ───────────┘ └── your ID ──┘ └─ extra ─┘
When a visitor clicks this link, Amazon knows to credit your account if they purchase.
How Affiliate Links Track Sales
Affiliate tracking relies on three mechanisms:
1. Tracking Parameters
The URL itself contains your affiliate ID. When someone arrives at the merchant's site through your link, their system logs which affiliate sent the traffic.
2. Cookies
Most programs place a tracking cookie in the visitor's browser. This means if someone clicks your link today but purchases tomorrow, you still get credit.
Cookie windows vary:
- Amazon Associates: 24 hours (or 90 days if added to cart)
- ShareASale: Varies by merchant (often 30-60 days)
- ClickBank: 60 days typical
- CJ Affiliate: Set by individual merchants
3. Server-Side Tracking
Some programs use server-side tracking (via IP addresses or logged-in accounts) in addition to cookies, improving accuracy as browsers restrict third-party cookies.
Why Affiliate Links Look So Ugly
Affiliate links are ugly by necessity — they need to carry tracking information. But this creates real problems:
Trust issues:
- Users see a wall of random characters and hesitate to click
- Long URLs look like spam or phishing attempts
- Unfamiliar domains trigger suspicion
Platform problems:
- Social media may flag or block suspicious-looking links
- Email spam filters may catch them
- Ugly links get fewer clicks (lower CTR)
Example of the problem:
| Ugly Affiliate Link | What Users See |
|---|---|
amazon.com/dp/B08N5W...?tag=xyz-20&linkCode=ogi&th=1 | "Sketchy link, not clicking" |
shareasale.com/r.cfm?b=123&u=456&m=789 | "What even is ShareASale?" |
go.redirectingat.com/?id=abc&url=... | "This looks like malware" |
How to Make Affiliate Links Look Better
The solution is link cloaking (also called link masking or link disguising) — replacing ugly affiliate URLs with clean, branded alternatives.
Before and After Link Cloaking
| Before (Raw Affiliate Link) | After (Cloaked Link) |
|---|---|
amazon.com/dp/B08N5W...?tag=mysite-20 | mysite.com/recommends/headphones |
shareasale.com/r.cfm?b=123456&u=789 | gear.co/go/camera |
awin1.com/cread.php?awinaffid=... | myblog.com/tools/hosting |
Benefits of cloaked affiliate links:
- Higher click-through rates — Branded links get up to 34% more clicks
- Improved trust — Readers recognize your domain
- Easier to share —
mysite.com/go/toolis memorable and speakable - Better tracking — You can track clicks before they reach the merchant
- Easier management — Update destinations without changing published links
How to Cloak Affiliate Links with Linkly
Linkly makes affiliate link cloaking simple:
- 1Add your custom domain — Use your own branded domain for all links
- 2Create a cloaked link — Paste your affiliate URL, choose a clean slug
- 3Enable link cloaking — Hide the destination URL from visitors
- 4Track performance — See clicks, conversions, and geographic data
Learn more: How to Cloak Affiliate Links
Affiliate Link Best Practices
1. Always Disclose
The FTC requires disclosure when you earn commissions. Include clear language like:
"This post contains affiliate links. If you purchase through these links, I may earn a commission at no extra cost to you."
Place disclosures at the top of posts, near affiliate links, and in your site's disclosure policy.
2. Only Promote What You Trust
Your reputation is worth more than any commission. Recommend products you've actually used or thoroughly researched.
3. Use Descriptive Slugs
Make your cloaked URLs meaningful:
- Good:
mysite.com/recommends/best-laptop - Bad:
mysite.com/go/link1
4. Organize by Category
Structure your affiliate links logically:
/recommends/— Product recommendations/tools/— Software and services/books/— Book recommendations
5. Track and Optimize
Monitor which links get clicks and conversions. Linkly provides detailed analytics including:
- Click counts and unique visitors
- Geographic data
- Device and browser information
- Referrer sources
See: Click Tracking and Analytics
Common Affiliate Link Mistakes
Mistake 1: Using raw affiliate links everywhere Ugly links reduce clicks and look unprofessional. Always cloak.
Mistake 2: Not disclosing affiliate relationships This violates FTC rules and damages reader trust. Always disclose.
Mistake 3: Broken links Affiliate programs change URLs, products go out of stock. Regularly audit your links.
Mistake 4: Ignoring mobile users Most traffic is mobile. Ensure your affiliate landing pages work on phones.
Mistake 5: Over-promoting Too many affiliate links feel spammy. Focus on genuine recommendations.
Types of Affiliate Commissions
Different programs pay differently:
| Model | How It Works | Example |
|---|---|---|
| Pay-per-sale (PPS) | Commission on completed purchases | Amazon Associates (1-10%) |
| Pay-per-lead (PPL) | Payment for signups or form submissions | Insurance quotes, SaaS trials |
| Pay-per-click (PPC) | Payment for each click (rare) | Some ad networks |
| Recurring commissions | Ongoing payment for subscription products | SaaS affiliate programs |
Popular Affiliate Programs
Getting started? Here are some beginner-friendly programs:
- Amazon Associates — Huge product selection, trusted brand, low commissions (1-10%)
- ShareASale — Thousands of merchants across niches
- CJ Affiliate — Large brands, professional interface
- Impact — Modern platform, many SaaS companies
- ClickBank — Digital products, higher commissions
The Bottom Line
Affiliate links are how content creators earn money from recommendations. They work by tracking clicks and purchases through unique IDs and cookies.
The problem: raw affiliate links look ugly and untrustworthy.
The solution: cloak your links with a tool like Linkly to create branded, memorable URLs that get more clicks while tracking performance.
Ready to clean up your affiliate links?
- How to Set Up Affiliate Links the Right Way — Step-by-step setup guide
- Link Cloaking Guide — Hide ugly affiliate URLs
- Get started with Linkly's free link shortener — Free plan includes 1,000 tracked clicks
Frequently Asked Questions
What is an affiliate link?
An affiliate link is a special URL containing a unique tracking ID that allows merchants to attribute sales or leads to specific marketing partners. When someone clicks your affiliate link and makes a purchase, you earn a commission.
How do affiliate links make money?
Affiliate links track when visitors click through to a merchant's site and complete a purchase. The merchant then pays the affiliate a percentage of the sale (typically 1-50% depending on the program and product category). Some programs also pay for leads, signups, or even clicks.
Are affiliate links safe to click?
Affiliate links from reputable programs (Amazon, ShareASale, etc.) are safe to click. They simply redirect you to the merchant's website while tracking the referral. However, always verify the destination matches what you expect, as scammers sometimes disguise malicious links as affiliate links.
What is affiliate link cloaking?
Link cloaking replaces ugly affiliate URLs with clean, branded alternatives. Instead of showing amazon.com/dp/B08N5W...?tag=xyz-20, you display yoursite.com/recommends/product. This improves click-through rates and makes links easier to manage.
Do I need to disclose affiliate links?
Yes. The FTC requires clear disclosure when you earn commissions from links. Include language like "This post contains affiliate links" near your links and at the top of posts. Failing to disclose can result in legal penalties and damages reader trust.
How long do affiliate cookies last?
Cookie duration varies by program. Amazon's cookies last 24 hours (or 90 days if the item is added to cart). Other programs range from 7 days to 90+ days. Longer cookie windows give you credit even if the purchase happens days after the initial click.