Affiliate codes that creators say out loud: how to keep them from leaking
Why links alone don't solve it
- Auto-apply links (from your affiliate app, or Shopify's
yourstore.com/discount/CODElinks) add the code when someone clicks. - The code itself still exists. Anyone who knows it can type it at checkout, and a code said out loud is public the moment the video goes live.
- Some affiliate apps offer link-only discounts on their higher plans. If yours does and your creators only share links, that may be enough. If your creators also say a code, read on.
Step 1: Decide which codes need protecting
| Code | Risk | What to do |
|---|---|---|
| Said out loud (podcast, YouTube, TikTok live) | High: public at once | Protect it, and give the creator a short link to say instead |
| Only shared as a link | Lower | Protect it if it already shows up on coupon sites |
| Public offers (WELCOME10, newsletter) | None: meant for everyone | Don't lock these |
Step 2: Make the code depend on the creator's link
The rule you want: the code gives the discount when the shopper came through the creator's link; typed without it, it's refused with a short message. Shopify has no setting for this on its own, so it takes an app.
For codes said out loud, give the creator a short, easy-to-say link to mention instead of (or as well as) the code. Fans who use the link still get the discount; people who copied the code from a coupon site don't.
Step 3: Don't break the links you already have
Before you lock a code, check what already uses it:
- Shopify discount links (
/discount/CODE) in old posts and bios - Links from your affiliate app that apply the code by themselves (often
yourstore.com/?ref=name)
If a tool makes these stop working, your creator's followers lose the discount and your creator hears about it in the comments. Look for a transition period (old links keep working for a few weeks while creators switch) and a way to keep your affiliate app's links working.
Test it yourself the way a shopper does: open the creator's affiliate link in a private window, add a product to the cart, and go to checkout from the cart drawer. The discount should be there. Then type the same code in a fresh private window without the link: it should be refused.
How we do it (our app)
We make Northlight: Codes & Sale Price, and its LinkLock module adds this rule. When you lock a code,
you choose whether its old /discount/CODE link keeps working for 14 or 30 days, and you can paste a creator's
affiliate link once so that link keeps giving the discount. A typed code without a link is refused with a short message
in the shopper's language (8 languages). We tested it on our own store with an affiliate app that applies the code from
its link: through the link the shopper got the discount, including checkout from the cart drawer; typed alone, the same
code was refused. It's free for one code (the LinkLock plan is US$9.99/month for unlimited codes) and it's
on the Shopify App Store.
It's ours, so please compare it with other options too. Our test results on a real store are public, including any failures.
FAQ
Do I need to change my affiliate app?
No. Lock the code and paste the creator's affiliate link once. The code stays the same, so an affiliate app that tracks sales by code still sees it, and its link keeps giving the discount.
Will this stop browser coupon extensions?
It stops a leaked code from giving a discount. Extensions run in the shopper's browser, so nothing can stop them from trying codes.
What about fans who heard the code and type it?
Without the link they're refused, with a short explanation. That's why the creator should say a short link too. If you'd rather never refuse a fan, keep that one code unlocked and give it an end date and a usage limit instead.
What about automatic discounts?
They don't use codes, so they can't leak this way. They have a different problem: they're often invisible on product pages until checkout.