Northlight

How to stop discount code leaks on Shopify

Guide by Northlight Apps · Updated 30 October 2026

Short answer: a normal Shopify discount code works for anyone who types it. Once a creator's code is posted on a coupon site or picked up by a browser coupon extension, shoppers who were already going to buy use it too. You can't make a typed code secret, but you can limit who it works for, how often, and for how long — and you can measure the leak.

How codes leak

The cost isn't only the discount. If the code belongs to an affiliate or influencer, you may also pay them commission on sales they didn't bring in.

Step 1 — Measure the leak first

  1. Go to Analytics → Reports and open the sales-by-discount report.
  2. For each creator code, compare orders that used the code with the visits that creator actually sent (their tracked link or UTM). Many code orders but few visits from the creator usually means the code is being used by shoppers who came from somewhere else.
  3. Search the web for "your store name discount code" — if your creator codes appear on coupon sites, they have leaked.

Step 2 — Limit the damage with Shopify's built-in settings

SettingWhat it doesTrade-off
Limit total usesCode stops after N ordersThe real audience can hit the limit too
One use per customerSame customer can't reuse itDoesn't stop new shoppers using a leaked code
Active datesCode expires with the campaignEvergreen creator codes need renewing
Minimum purchaseLeaked code costs less on small ordersDoesn't stop the leak
Customer eligibilityOnly chosen customers or segmentsDoesn't fit public creator campaigns
Combinations offLeaked code can't stack with your salesReal fans can't stack either

Step 3 — Rotate and personalise codes

Step 4 — Make the code depend on the creator's link

Shopify's discount links (yourstore.com/discount/CODE) apply a code automatically when someone clicks the link — but the same code still works when it's typed in by someone who never clicked. Out of the box, Shopify has no setting for "this code only works through this link".

Apps can add that rule: the code only gives the discount when the shopper arrived through the creator's link, and shoppers who type it without the link see a short message explaining why. Ask any app you consider: does it work with codes you already have, what does the shopper see, and what happens to your codes if you uninstall?

We've also made a small app that adds this rule for you — LinkLock: Stop Code Leaks. It works with the codes you already have, and shoppers who type a locked code without the link see a short explanation. It's free for one code (Starter is US$12/month), and it's currently in Shopify App Store review. It's ours, so please compare it with other options too.

FAQ

Can I block coupon browser extensions?

Not reliably — they run in the shopper's own browser. What you can control is whether a leaked code still gives a discount.

Will limiting codes hurt my creators?

Tell them first. Most creators prefer a code that only counts their real audience, because their results then show their true value.

Does this affect automatic discounts?

No. Automatic discounts don't use codes, so they can't leak this way — but they have a different problem: they're often invisible on product pages.