Northlight

How to stop discount code leaks on Shopify

Guide by Northlight Apps · Updated 17 November 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. You can also measure the leak.
Before Black Friday (27 to 30 November), check every creator code:
  1. End date: codes with no end date keep working (and keep leaking) long after the campaign.
  2. Combinations: decide if a creator code may stack with your sitewide sale. In Shopify this is the "Combinations" setting on each discount.
  3. Limits: "one use per customer" stops one person from reusing a leaked code on many orders.

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: 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.

Northlight in 65 seconds · on-screen text, music only · View on the Shopify App Store

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.