What is an affiliate link? It is an ordinary web address with your unique affiliate ID added, so that when someone clicks it and buys or signs up, the merchant knows the customer came from you and pays you a commission. The ID is usually carried in a URL parameter or a redirect through the programme's tracking domain.
You get affiliate links by joining a programme or network and generating them in your dashboard. Below we break down what a link contains, how deep links work, where to put them and the mistakes that cost beginners commission.
Anatomy of an affiliate link: an example
Here is a hypothetical affiliate link example, using a placeholder domain:
https://track.example-network.com/click?aff_id=48213&offer_id=77&sub1=review-page&url=https%3A%2F%2Fshop.example.com%2Fpricing
| Part | What it does |
|---|---|
| Tracking domain (track.example-network.com) | The network's or programme's server that records the click before sending the visitor on. |
| Affiliate ID (aff_id=48213) | Identifies you. This is what gets you paid. |
| Offer or campaign ID (offer_id=77) | Tells the system which offer, landing page or commission plan applies. |
| Sub-ID (sub1=review-page) | Your own label, so you can see which page or ad produced the click. |
| Destination URL (url=…) | Where the visitor lands. Encoded so it survives the redirect. |
Parameter names vary by platform (you may see ref, aid, tag or a short code instead), but the components are much the same.
How an affiliate link works, step by step
- A visitor clicks your link.
- The tracking server logs the click with your ID, the time and any sub-IDs.
- The visitor is redirected to the merchant, and a cookie or click ID is stored so the visit can be matched to you later.
- If the visitor converts within the programme's attribution window, the merchant's system reports the conversion back and credits your account.
- The commission shows as pending, then approved after any validation period.
The cookie part is explained in how affiliate cookies work, and the wider flow in how affiliate marketing works.
How to get an affiliate link
Once your application is approved, log in to the programme's dashboard and look for a section called Links, Tools, Creatives or Offers. Most dashboards let you:
- Copy a default link to the merchant's home page or main landing page.
- Choose a specific landing page or promotion from a list.
- Build a deep link by pasting any page URL from the merchant's site.
- Add sub-IDs so you can track each placement separately.
Our guide to reading your affiliate dashboard shows where these tools usually sit and what the stats mean once clicks start coming in.
Deep links: linking to the exact page
A deep link sends visitors to a specific page, such as a pricing page, a product or a category, rather than the home page. Deep links usually convert better because the visitor lands exactly where your content promised.
Check that your programme allows deep linking and that the deep link still carries your ID. Click it yourself, confirm the destination loads correctly, and watch for the click appearing in your stats.
Where to place affiliate links
- Within relevant content: beside the product or point you are discussing, not dumped in a list at the end.
- Clear calls to action: a button such as "Check current prices" after a comparison table.
- Comparison tables: one link per row, pointing to the relevant offer.
- Email and social: only where the programme's terms allow these channels, and always with a disclosure.
On websites, mark affiliate links with rel="sponsored", the attribute Google asks publishers to use for advertising and paid links, so search engines do not treat them as editorial endorsements. Place your disclosure before the first link.
Are affiliate links safe?
For visitors, a link from a reputable programme is as safe as visiting the merchant directly. The redirect simply records the click. Risks come from the destination, not the link itself, so only promote merchants you would trust with your own card details.
For you as a publisher, the main risks are commercial: broken links, links overwritten by browser extensions, and programmes that close or change URLs. Test your top links regularly and see our guide to finding and fixing broken affiliate links.
Why an affiliate link stops crediting you
When clicks show in your stats but sales never appear, the link itself is often the cause. The usual culprits:
- Your ID was dropped. Some site builders, plugins or redirects strip URL parameters. Click the link and check the final address still carries your tracking details, or that the click registers in the dashboard.
- The destination changed. Merchants redesign sites and retire pages. A deep link to a page that now redirects elsewhere may lose tracking.
- The offer was paused or moved. Networks sometimes replace an offer with a new ID. Check announcements and emails from your affiliate manager.
- Short links without permission. Some programmes ban public link shorteners or require their own. Read the terms before shortening links for social media.
- Tracking blocked in the browser. Privacy settings and ad blockers can stop cookies being set. You cannot fix this entirely, but server-to-server tracking reduces the losses.
A monthly check of your ten most-clicked links takes minutes and catches most problems before they cost you a month of commission.
Affiliate link do's and don'ts
| Do | Don't |
|---|---|
| Disclose clearly before the first link | Hide that a link earns you money |
| Use sub-IDs for every placement | Use one generic link everywhere |
| Test links after every site change | Assume links still work months later |
| Read programme rules on email, PPC and shorteners | Bid on brand terms or spam forums |
| Use rel="sponsored" on site links | Click your own links to inflate stats |
Once you are comfortable with basic links, our sub-IDs guide and affiliate link cloaking guide cover the next level.
Next steps
Next, learn how a click becomes a credited sale in how affiliate cookies work, or return to the getting started section for more beginner guides.