← Back to blog
Need setup details while you read? Visit the Help Center.
No. A discount code is one of four ways to attribute an affiliate sale, and the only one that costs you money on every order. Here is what each method does and when a code is actually required.
Published on September 16, 2026
by Fawaz

I went looking through the Shopify Community for how merchants actually talk about affiliate tracking, and one issue came up repeatedly.
Several merchants wrote as though issuing a discount code was simply what running an affiliate program meant, and asked how to work around it when they did not want to discount.
Nobody in those threads told them they had a choice.
The short answer is no.
A discount code is just one way to attribute an affiliate sale.
It is not the only way, and it is the only one of the four common methods that costs you money on every order it touches.
We compared all four in detail, including where each one breaks, in our guide to affiliate tracking methods.
Because codes are genuinely good at the job, and because influencer-focused tools tend to lead with them.
The reason they work so well is structural: a code is part of the order, not part of the browser.
It survives a customer switching from phone to laptop.
It survives a third-party checkout.
It survives privacy settings that would wipe a tracking cookie.
And it reaches places a link cannot go at all, like a podcast read or a spoken mention in a video where nobody taps a description.
So the belief is not stupid.
A code really is the most durable identifier available.
It is just not the only one, and durability is not free.
Every code sale carries a discount as well as a commission, and the combination is larger than it looks.
Take a $100 product with a 10% code and a 10% commission.
The customer pays $90, so you have given up $10.
Commission is normally calculated on what the customer actually paid, so the affiliate earns $9.
That sale cost you $19 to pay a 10% commission.
The same sale tracked by link costs you $10, and the customer pays full price.
There are second-order costs too.
A code in circulation can end up on deal sites, where it gets used by people who never encountered your affiliate.
And codes train customers to go looking for a code before checking out, which costs you full-price orders you were already winning.
Coupon stacking comes out of the same margin as the commission, so count both before you default to a code for everyone.
Two cases, both real.
Podcasts, radio, unlinked video mentions, recommendations made in person. A link cannot reach any of those.
If somebody is going to say your brand out loud, they need something a listener can type.
Some creators' whole relationship with their followers is built on getting them something. Take the discount away and you have removed their reason to post.
For everyone else, a link does the identifying job for free.

You do not have to choose one method for your whole program.
Affilitrak attributes sales through referral links, coupon codes, or both, and you can set it per affiliate.
Give codes to the podcast and deal-led partners, give links to everyone else, and stop paying a discount on affiliates who never needed one.
There is also a middle option worth knowing about.
Affilitrak's affiliate links can apply the discount automatically on click, so the affiliate shares one URL, the customer types nothing, and the order carries both the cookie and the code.
That still costs you the discount, the same way any code does. What it buys is the code's durability on the mobile and privately shared traffic where cookies are least likely to survive, without asking the customer to remember anything.
The mechanics of those cookie failures are in why affiliate links are not tracking.
A discount code is an attribution method, not a requirement.
It is the most durable of the four and the most expensive, and those two facts are the same fact: it works because it sits on the order, and it costs because what sits on the order is a discount.
If your affiliates post links their audience can click, you do not need one.
If they talk rather than link, you do.
Most stores have both kinds of affiliate, which is why the right answer is usually to run both and decide per person rather than per program.
You can install Affilitrak free and set links, codes, or both for each affiliate you work with.