To create an affiliate link, join an affiliate program, get approved, then open the link generator in your affiliate dashboard, paste the page you want to promote and copy the link it gives you. That link carries your affiliate ID, so the program can credit you when someone buys. Then tag it, disclose it and test it.
You don’t build an affiliate link by hand from nothing. The program creates it for you, because only the program knows your ID and how its tracking works. Your job is to pick the right page, keep the link organized so you can see which post or email earned the sale, and share it in a way that follows the program terms and the law. This guide covers how to create an affiliate link step by step, with the parts most beginner guides skip.
Free tool: Before you promote anything, run the program’s numbers in the Affiliate Earnings and Break-Even Planner. It shows what a click is worth to you once refunds and cancellations come out.
Key takeaways
- The program makes the link. You get it from a link generator, browser toolbar or “get link” button in your dashboard.
- Link to the best page, not just the homepage. Most programs let you deep link to any product or pricing page.
- Add a sub ID so you can see which post, email or video drove each sale.
- Disclose every affiliate link close to the link itself, in plain words.
- Test before you share: click it in a private window and check that your ID survives the redirect.
What an affiliate link actually is
An affiliate link is a normal web address with tracking added. When someone clicks it, the program records the click against your account, usually sets a cookie, and then sends the visitor to the page you chose. If they buy within the program’s tracking window, the sale is credited to you.
Most affiliate links have four parts:
- The domain, which is either the merchant’s site or the affiliate network’s tracking domain.
- The destination, the page the visitor should land on.
- Your affiliate ID, the code that says the click came from you.
- An optional sub ID or tracking ID, a label you choose to tell your own links apart.

The exact format varies by program. Some put your ID in a parameter like ref= or aff=, some use a path, and networks often send the click through their own domain first and then redirect. You don’t need to memorize formats. You only need to recognize where your ID sits so you can check it later.
How to create an affiliate link in 6 steps
Here is the full process, from no account to a link you can share.

Step 1: Join an affiliate program and get approved
You can’t create a working affiliate link without an account. Join the program directly on the merchant’s site (look for “Affiliates” or “Partners” in the footer) or through a network that manages many programs. Many programs review applications, so have a real site, channel or email list to show them.
If you are still choosing what to promote, start with my list of best affiliate programs or, if you would like income every month, the recurring commission programs. New to all of this? Read how to get started with affiliate marketing first.
Step 2: Choose the page you want people to land on
Before you generate anything, decide where the click should go. A link to the exact product, plan or pricing page you wrote about usually works better than a link to the homepage, because the reader lands where they expected.
Copy that page’s address from your browser. Remove anything after a question mark that you didn’t add on purpose, like old tracking from another campaign.
Step 3: Generate the link in your dashboard
Log in to your affiliate account and find the link tool. It is usually called a link generator, link builder, deep link tool, or simply “get link”. Paste the page from Step 2 and the tool returns your affiliate link.
There are three common ways programs hand you a link:

- A default link on your dashboard home. It points to the homepage. Fine to start, but you will usually want the deep link instead.
- A link generator or deep link tool. You paste any page on the merchant’s site and it returns a tracked version.
- A browser toolbar. Amazon Associates has one called SiteStripe. Amazon’s SiteStripe help page in Associates Central says its “Get Link: Text” option builds short and long links to the page you are viewing, and “Your Associate ID and tracking ID are already included in the short link.”
Course and membership platforms often work the same way: once you are approved as an affiliate, you get a personal link or can build one from a page on the school’s site.
Step 4: Add a sub ID so you know what worked
If you put the same link in a blog post, an email and a video description, the dashboard will show sales but not which one made them. A sub ID fixes that. Most generators have a field for it (sometimes called a tracking ID, sub ID, SID or campaign). Use short, consistent labels such as blog-review, email-welcome or yt-tutorial.

Sub IDs live inside the affiliate program’s reports. UTM parameters are different: they tell Google Analytics where visitors to your own site came from. If you send people from social or email to your review first, tag that link with UTMs, and use the sub ID on the affiliate link inside the review. Google describes utm_content as the parameter to “differentiate creatives”, for example two links in the same email, in its URL builders help page. Don’t add UTM parameters to someone else’s affiliate link unless the program says it supports them, because extra parameters can break some tracking links.
Step 5: Shorten or brand the link (optional)
Long affiliate links are ugly in social posts and podcasts. You have two options:
- Use the program’s own short link if it offers one, like Amazon’s short link from SiteStripe.
- Use a branded redirect on your own domain, such as yoursite.com/go/toolname, which also lets you swap the destination later without editing every post. I show how in how to create a branded link redirect for free.
Read the program terms first. Some programs restrict link cloaking, redirects, or use of their links in email, and breaking those rules can cost you commissions.
Step 6: Disclose it and test it
Two things before the link goes live.
Disclose it. The FTC’s Endorsement Guides FAQ says a line like “I get commissions for purchases made through links in this post” works, and that “The closer the disclosure is to your recommendation, the better.” It also says the words “affiliate link” alone might not be understood, while “Paid link” right next to an affiliate link “should be an adequate disclosure”. The same guidance applies in social posts.
Mark it for search engines. Google asks you to mark paid links with rel=”sponsored”, and notes that nofollow is still acceptable. In WordPress, you can tick the sponsored option in the link settings of most editors or add the attribute in the code view.
Test it. Open a private browser window, click the link and check three things: it lands on the right page, your ID or tracking ID is still in the address or the program shows the click in its reports, and nothing in between shows an error.

What makes a good affiliate link placement
Creating the link is quick. Getting clicks on it is the real work, and that comes down to where you put it.
| Placement | Why it works | Watch out for |
|---|---|---|
| Inside a step in a tutorial | The reader needs the tool right there | Disclose near the link, not only in the footer |
| Comparison tables | People are already deciding | Keep prices out or note they change |
| Email to your list | Warm readers who trust you | Some programs ban direct linking in email |
| Video description | Viewers want the exact tool you used | Disclose in the video too, not only the description |
Once your links are out there, measure them. My guide on tracking affiliate links for free shows a simple setup, and click-through rate benchmarks help you judge whether a placement is pulling its weight.
Work out what each click is worth
A link that gets clicks still has to pay. Plug the program’s commission, refund rate and your conversion rate into the planner below to see earnings per click before you put hours into promoting it.

No website yet? You can still use affiliate links in email, video and social posts. See affiliate marketing without a website for the options.
Common mistakes when creating affiliate links
- Copying the page address instead of the affiliate link. A plain product URL earns nothing.
- Using the wrong tracking ID. Toolbars often remember the last ID you used, so check it when you run more than one site or channel.
- Linking only to the homepage when you wrote about one specific product.
- Skipping the test. A broken redirect can quietly lose sales for months.
- Hiding the disclosure at the bottom of the page or behind a vague label.
- Breaking program rules on cloaking, email or paid ads.
For more free tools, open the creator vault.
Frequently asked questions
How do you create an affiliate link?
Join an affiliate program and get approved, then use the link generator or “get link” tool in your dashboard. Paste the page you want to promote, add a sub ID if you like, and copy the link it returns. Disclose it and test it before you share it.
Can I create an affiliate link without joining a program?
No. The link only earns money because it carries an ID the program gave you. Without an account there is nothing to credit the sale to.
Can I make an affiliate link for any page on a site?
Usually. Most programs offer a deep link tool that turns any page on the merchant’s site into a tracked link. Some limit which products or pages earn commission, so check the terms.
Is it okay to shorten affiliate links?
Often yes, but not always. Use the program’s own short link if it has one, or a branded redirect on your domain, and read the terms first, because some programs restrict cloaking or redirects.
Do I need to disclose affiliate links?
Yes. The FTC says to disclose clearly and close to the recommendation, with wording people understand, such as “I get commissions for purchases made through links in this post.”
Final thoughts
Learning how to create an affiliate link takes about five minutes once you are approved. The habits around it are what pay: send people to the right page, label every link with a sub ID, disclose it plainly and test it. Then check the numbers in the planner so you spend your time on the programs that are worth it.

