Most discount codes leak, and nobody’s watching
A code goes out to an influencer’s audience. Or to your email list for a weekend. Or someone in the team sets one up for a customer who complained. Nobody puts a limit on it, nobody gives it an end date, and six months later it’s still live.
By then it’s on a voucher site. A browser extension is trying it at checkout for people who’d never heard of the influencer. And full-price customers are getting 20% off for nothing.
Here’s why it hurts. Say a typical order is £40 and your gross margin is 50%. That’s £20 of margin. Take 20% off and you’ve given away £8 of it, so the order now leaves £12. A code that started as a thank-you is quietly taking 40% of the margin on every order it touches. That’s a simple illustration, so run it with your own numbers.
Every discount code is a price cut with your name on it. Give each one limits when you create it, have something watching how it’s used, and judge it on margin, not on how many times it was redeemed.
You don’t need a new app to start. Shopify’s own discount settings and Shopify Flow cover most of it.
What Shopify gives you to work with
- Limits on the code itself. When you create a code in Shopify, under Maximum discount uses you can limit the number of times it can be used in total, and limit it to one use per customer. You can also set a minimum purchase amount or quantity, an end date, and who’s eligible: all customers, specific markets, customer segments (up to 100 per code) or specific customers.
- Combination settings. Discounts don’t combine automatically. You decide, code by code, which discount classes it can combine with. Customers can use up to five product or order discount codes and one shipping discount code on the same order.
- Shopify Flow. A free automation app on the Basic, Grow, Advanced and Plus plans. Staff need Flow permissions to use it.
- Two Flow triggers that matter here. Discount code created starts a workflow whenever a code is created, by you or by a third-party app. Order created starts one whenever an order is placed. Both give Flow the full record from Shopify’s Admin API, so a workflow can look at a code’s usage limit and end date, or at the discount codes used on an order.
- The Get discount data action. Pulls up to 100 discounts at a time into a workflow, and it works on a schedule. Shopify has a ready-made template for it: an email every Monday at 9am summarising the active discounts that use a code.
What Flow doesn’t do is stop a code at checkout. It watches and tells you, after the event. Blocking a code for the wrong person is a different job, and I’ll come back to that in the verdict.
Where I’d start
This is the order I’d work through it with any Shopify brand that suspects its codes are costing more than they earn…
1. Find out what’s live. Go to Discounts and look at every active code. Sort by times used. You’re looking for three things: codes with no end date, codes with no usage limit, and codes whose use has grown far beyond the audience they were made for. That last one is your leak.
2. Switch on the Monday summary. In Flow, install the template that emails a weekly summary of active discounts that use a code. It runs on Get discount data, every Monday at 9am. Point it at whoever owns margin, not just whoever owns marketing. A list landing in your inbox every week is the cheapest leak detector you’ll ever set up.
3. Put guard rails on every new code. Before a code goes out, decide its total uses, whether it’s one per customer, its minimum spend, its end date, who’s eligible and what it can combine with. A code for your VIP segment should be limited to that segment. A code for an influencer launch should end when the launch ends. Shopify’s minimum purchase amount counts product prices only, without shipping and tax, so set it on the basket you actually want.
4. Have Flow catch codes created without them. Build a workflow on Discount code created. Add a condition that checks whether the code has no usage limit or no end date, and if so, use Send internal email to tell you. It catches the code set up in a hurry by someone in the team, and the ones apps create on your behalf, which are easy to forget about.
5. Tag the orders that shouldn’t have happened. Build a second workflow on Order created. Add a condition for your restricted codes: the VIP code used by a customer without your VIP tag, say, or a private partner code. When it matches, use Add order tags to tag the order (tags are case sensitive, so pick one and stick to it) and, if you want it in front of you straight away, send an internal email too. Now you can filter orders by that tag and see exactly how far a code has travelled.
6. Decide, then act. When a code has leaked, deactivate it under Discounts. Anyone who tries it then sees a message that no valid discount matches the code. Flow’s action list doesn’t include deactivating a discount, and that’s fine by me. Switching off a code a partner is promoting is a decision for a person, and you’ll want to tell the partner first. Replace it with something tighter: limited uses, an end date, or eligibility set to the segment it was meant for.
7. Judge every code on margin. Redemptions tell you a code was used. They don’t tell you whether it paid. For each code, look at what it cost in discount against what it brought in that you wouldn’t have had anyway. If you’ve already worked out your free-shipping threshold on margin, it’s the same thinking. My free-shipping thresholds guide walks through it.
What to measure
- Discount as a share of sales. Overall and by code. If it’s creeping up month on month, something’s leaking.
- Uses per code against its intended audience. A code made for 500 subscribers with 3,000 uses has left the building.
- Tagged orders from step 5. How many, and from which codes.
- Active codes with no end date or no limit. This number should only go down.
- Margin per order on discounted orders. Compared with full-price orders. This is the one that tells you what the codes actually cost.
The mistakes I see most
One evergreen code for everything. WELCOME10 on the pop-up, in the emails, in the ads and on every voucher site going. At that point it isn’t an offer. It’s your real price.
Influencer and partner codes with no limits. They travel furthest and fastest, and they’re the ones most often left with no end date.
Ticking every combination box. Letting codes combine with each other and with automatic discounts by habit is how a 10% code turns into a much bigger discount. Allow combinations on purpose, code by code.
Celebrating redemptions. A code that’s used a lot might just be a code that’s leaked a lot.
Killing a code without a word. Deactivate a partner’s code mid-campaign and their audience hits an error at checkout. Tell them, give them the replacement, then switch it off.
My verdict
The brands I’m working with right now are fighting the same battles: spend that’s crept up faster than the profit, no clear picture of how to scale, and not enough modern ecommerce know-how in the team to see where the margin is going. Discount codes are one of the quietest places it goes. Nobody decides to give 40% of the margin away. It just happens, one unlimited code at a time.
Shopify Flow is free, it’s already on your plan, and for most brands it’s the right place to start. The guard rails live in Shopify’s own discount settings, and Flow is the thing that notices when they’re missing or when a code turns up where it shouldn’t.
It isn’t the right choice for everything. Flow tells you after the order has gone through. If your codes are being lifted by browser extensions and voucher sites faster than you can replace them, you need something that stops the code at checkout for anyone it wasn’t meant for. My piece on stopping coupon code leaks covers an app built to do that. And if you run three codes a year, skip the workflows and check the Discounts page once a month.
Start with the audit and the Monday summary this week. You’ll know within one email whether you’ve got a problem.
Related reading: How To Optimise Free-Shipping Thresholds Using Shopify Analytics and How To Optimise Bundles Using Lifetimely’s Product Journey Data. More guides on this problem: Discount codes leaking margin.
More on this lever: The Order Value Lever: How To Optimise AOV Without Discounting.
Ian