How to stop discount code leaks on Shopify
- End date: codes with no end date keep working (and keep leaking) long after the campaign.
- Combinations: decide if a creator code may stack with your sitewide sale. In Shopify this is the "Combinations" setting on each discount.
- Limits: "one use per customer" stops one person from reusing a leaked code on many orders.
How codes leak
- Coupon websites collect codes that creators post publicly and list them under your store name.
- Browser coupon extensions try known codes automatically at checkout and remember the ones that work.
- Shoppers share codes in groups and forums ("use SARAH15 for 15% off").
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
- Go to Analytics → Reports and open the sales-by-discount report.
- 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.
- 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
| Setting | What it does | Trade-off |
|---|---|---|
| Limit total uses | Code stops after N orders | The real audience can hit the limit too |
| One use per customer | Same customer can't reuse it | Doesn't stop new shoppers using a leaked code |
| Active dates | Code expires with the campaign | Evergreen creator codes need renewing |
| Minimum purchase | Leaked code costs less on small orders | Doesn't stop the leak |
| Customer eligibility | Only chosen customers or segments | Doesn't fit public creator campaigns |
| Combinations off | Leaked code can't stack with your sales | Real fans can't stack either |
Step 3: Rotate and personalise codes
- One code per creator (never one shared code), so you can see which one leaked.
- Rotate the code per campaign instead of keeping one forever; a leaked code then dies with the campaign.
- Unique single-use codes work well for email and SMS, where each customer gets their own code.
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: Northlight: Codes & Sale Price (its LinkLock module). It works with the codes you already have, and shoppers who type a locked code without the link see a short explanation. When you lock a code, its old discount link can keep working for 14 or 30 days, so creators have time to switch. 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
Can I block coupon browser extensions?
Not reliably, because 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, and say why: their code will then count only the shoppers they really sent, so their results show their true value.
Does this affect automatic discounts?
No. Automatic discounts don't use codes, so they can't leak this way. They have a different problem: they're often invisible on product pages.