How to create an affiliate link comes down to one step: add a unique partner ID to a page on your site. Your tracking script reads that ID and credits the sale to the right partner. Everything else is a choice about where the link points and how you label it.
We read Google's link guidance, the FTC's endorsement FAQ and Google Analytics help in November 2026. One thing to know first: we make OpenPromoter. So the link anatomy and the rules come first, and our own tool gets one short section near the end.
This guide shows what an affiliate link contains and how to build one by hand. It then covers link types, tagging and the disclosure rules your partners need to follow.
How Are Affiliate Links Created?
An affiliate link is a normal page address with a partner ID added to it. Your tracking tool reads the ID when a visitor lands and stores it. When that visitor pays later, the tool credits the partner who owns the ID.
Every partner link has up to four parts:

| Part | What it does | Example |
|---|---|---|
| Destination | The page the visitor lands on | acme.com/pricing |
| Partner ID | Names the partner who gets the credit | ?via=maya |
| Tags | Say which post or channel sent the click | &utm_source=newsletter |
| Wrapper | Optional short address that redirects | go.acme.com/maya |
Only the first two parts are required. Tags and a wrapper make the link easier to read and to report on.
The partner ID is the part that matters most. If two partners share an ID, their sales merge and neither gets the right pay. If the ID is missing, the sale goes unattributed.
Our guide to referral links and codes covers the case where a code does the job of the link.
How to Create an Affiliate Link for Each Partner in Five Steps
How to create an affiliate link for each partner takes five steps. Choose a unique ID and a landing page, add tags and wrap the link if you want a short address. Test the result before the partner shares it with anyone.
- Choose the partner ID: Use a short lowercase code such as
maya. Never reuse a code, and never put a person's email address in a link. - Pick the destination: Point the link at the page that matches the partner's audience. The section below explains how to choose.
- Add tags: Add a sub-ID or UTM values so you can tell one post or channel from another.
- Wrap it if you need to: A short address is easier to read out loud and to paste into a bio. Skip it when the long link works.
- Test it: Open the link in a private window and click through to checkout. Confirm the click appears under the right partner before you hand it over.
Tip: Write the link formula down once. For example, destination plus ?via= plus the partner's first name. A fixed formula stops duplicates and typos.
How Do I Create an Affiliate Link by Hand?
You create an affiliate link by hand by adding a partner parameter to a page address, such as ?via=maya. Your tracking script reads it and records the click against that partner. A later sale then earns that partner a commission.
Say your pricing page is https://acme.com/pricing. Maya's link becomes https://acme.com/pricing?via=maya and Leo's becomes https://acme.com/pricing?via=leo.
If the page already has a query string, join the parameter with & instead of ?. This works for a handful of partners and starts to break after that.
Hand-built links have three weak points. Nothing stores the link and each typo creates a partner ID that matches nobody. You must also filter your analytics by hand to see clicks per partner.
Use the manual method for a pilot with a few partners. Move to software when you need a list of links with clicks per link.
Our guide to starting a SaaS affiliate program covers the setup order.
Which Link Type Fits Each Partner?
Pick the link type by the place where each partner shares it. Code links and redirect links suit any page a visitor can click from, while short links suit bios and print. A coupon code covers places where nobody can click.

Here is how the four types behave in a tracking tool that supports all of them:
- Code link: Your own page plus the partner parameter, such as
acme.com/?via=maya. The script records the click in the browser. - Redirect link: The server records the click first and then sends the visitor to your site. It still counts when an ad blocker stops the script.
- Short link: A short address that can point at any page on your site. It suits a social bio or a printed card.
- Coupon code: A word the customer types at checkout. Our guide to Stripe promo codes shows how to build one per partner.
Give a partner more than one type. A newsletter writer needs a link and a podcaster needs a code.
Which Page Should Each Partner Link Open?
Send each partner's visitors to the page that matches what that partner said. A review site fits the pricing page and a tutorial channel fits a how-to page. The home page works as a default when you have no better match.
A link that lands on an unrelated page gives the visitor no reason to stay. Ask each partner what they will say about your product. Then choose the page that continues that sentence.
For example, a reviewer who compares prices should land on your pricing page. A tutorial writer who shows one feature should land on that feature's page. A partner with a broad audience can use the home page.
Keep every destination on your own domain. A partner link that points to a third-party page cannot track a sale on your site. OpenPromoter only accepts destinations on your own website.
Use deep links for partners who write about one feature. Give a partner a second link when they cover two topics. Our guide to finding affiliates shows which partner types tend to write about a single feature.
How to Tag Affiliate Links by Channel
Tag a link with a sub-ID or UTM values so one partner's channels stay apart. A sub-ID is your tracking tool's own label such as youtube-nov. UTM values are the standard tags that Google Analytics reads and reports on by source and campaign.
Google Analytics lists utm_source, utm_medium and utm_campaign as the values to always set. Its help page also says parameter values are case sensitive. That means utm_source=Newsletter and utm_source=newsletter show as two sources in reports (Google Analytics Help, November 2026).
Use both kinds of tag and keep the values lowercase. A tagged link for Maya's newsletter could read acme.com/pricing?via=maya&utm_source=maya&utm_medium=affiliate&utm_campaign=nov-launch.
The same link in her YouTube description changes only the sub-ID. One partner then shows two rows in your report.
Use the sub-ID for the placement and the UTM source for the partner or site. Placement answers which post or video worked and source answers which outlet sent it. Two tags that answer two questions beat one tag that tries to do both.
Note: Pick a naming scheme once and send it to every partner. A free-for-all gives you YouTube, youtube and yt as three channels.
How Should Partners Mark Affiliate Links?
Partners must tell readers they earn from a link and must tag the link for search engines. Google asks sites in affiliate programs to mark those links with the sponsored value of the rel attribute. The FTC asks for a clear disclosure close to the link.
Google's Search team said in July 2021 that it asks sites in affiliate programs to qualify affiliate links with the sponsored value. It added that it may issue manual actions against sites that do not (Google Search Central Blog, July 26, 2021). The nofollow value is still accepted but sponsored is preferred, per Google's link guidance.
The FTC's endorsement FAQ was revised in 2023. It says a home page disclosure is not enough and one at the very top or bottom of a page can be missed. Place the disclosure near the endorsement.
Write these two rules into your terms because you do not control your partners' sites. Our affiliate agreement template has a disclosure clause you can adapt. Then add the same line to your partner welcome email.
How OpenPromoter Creates a Link for Each Partner
OpenPromoter generates a link for every partner at approval and you do not build them by hand. We make it and the docs cover each click path. This section shows where the link, the tags and the report sit in the dashboard and the partner portal.
How to generate an affiliate link here takes no form at all. Each approved partner gets a direct link with the ?via= parameter and a default short link. You can set a different link parameter under Settings > Program > Tracking.
- Review a partner's links: The partner's page lists their direct link and short link with a QR code and a copy button. New link adds a link with a destination, a sub-ID, a custom slug and a label. See partners.

- Let partners make their own: In the portal a partner pastes a destination page and an optional sub-ID and clicks Create link. Each link counts its own clicks and customers. See the partner guide.

- Read the channel report: The partner's Traffic page splits clicks by the referring site or by the
utm_sourcetag on the link. That is where your naming scheme pays off.
Redirect links pass UTM values through to your site. OpenPromoter also reads ?ref=, ?fpr= and ?gspk= so links partners already shared keep working after a move. Our affiliate tracking and partner portal pages list the rest, and the tracking docs show the install.
Conclusion
How to create an affiliate link for each partner starts with a unique ID on a page of your own site. Then tag it by channel and test it. A fixed formula and a naming scheme keep a growing list clean.
Choose the link type by where the partner shares it. Send each partner to the page that matches what they say. Write the sponsored link and disclosure rules into your terms before anyone shares a link.
Start with five links by hand if you are unsure. Move to software when the list outgrows a spreadsheet. If your partners do not exist yet, read our guide to finding affiliates first.
