Ecommerce

Discount Code

Also called coupon code, promo code, voucher code

A code entered at checkout that reduces the price, governed by rules on spend, products and expiry.

Quick facts: Discount Code

Category
Ecommerce
Also called
coupon code, promo code, voucher code
Level
Beginner
Affects
Conversion rate, margin, average order value, attribution
Where to see it
Shopify and WooCommerce discount rules, Klaviyo, Mailchimp, Google Ads promotion assets
In this article4
  1. How a discount code works
  2. Why discount codes matter
  3. Where discount codes go wrong
  4. How to act on it

How a discount code works

A discount code is a short string a shopper types at checkout to reduce what they pay. The reduction can be a share of the price, a fixed amount off, free delivery, or a gift added to the order. Around it sit the rules: a minimum spend, excluded products or categories, an expiry date, one use per customer, first order only, or a limit on how many times the code can be used in total.

Those rules are the whole design. A code without them is an open invitation to buy your cheapest item repeatedly at a loss. There are two broad kinds. A shared code is public and attached to a campaign, so anyone can use it and anyone can pass it on. A unique code belongs to one person, which costs more to administer but tells you exactly who redeemed it.

Why discount codes matter

They give a hesitant shopper a reason to decide now rather than later, which is why they appear in cart recovery emails and first-order offers. They also do a job no analytics tool does well: a unique code is one of the few ways to connect an offline conversation, a printed flyer, a radio mention or a creator’s post to an actual sale.

Used with segments, they become precise. A win-back offer sent to customers who have gone quiet costs you nothing on the customers who never needed it, because they never see the code. That is a far better use of margin than a site-wide sale that discounts everyone, including the people who were about to pay in full.

Where discount codes go wrong

An empty code field at checkout is an invitation to leave. A shopper who did not have a code now believes one exists, opens a new tab to hunt for it, and a proportion of them never come back. Collapsing the field behind a small link, or removing it when no campaign is running, keeps the checkout honest.

Shared codes also leak. A code meant for lapsed customers ends up on a coupon site and becomes a permanent site-wide discount you did not budget for; unique, expiring codes stop that. The slowest damage is behavioural: predictable discounting teaches customers to wait, and full-price sales gradually become discounted ones. That is margin erosion, and it is hard to reverse once people have learned the pattern.

How to act on it

Decide what a code is for before you create it. Acquiring a first-time buyer, recovering an abandoned basket, clearing slow stock and thanking a loyal customer are different jobs, and each deserves its own rules, its own audience and its own expiry.

Set the minimum spend so a redeemed order still covers its costs, and exclude the lines whose contribution margin cannot carry a reduction. Then judge the campaign on incremental orders rather than on redemptions, because a code redeemed by someone who was already buying has cost you money and produced nothing. If you cannot tell the difference, run the offer to one segment and hold a comparable segment back.

Do and do not

Do

  • Give every code an expiry and a minimum spend
  • Use unique codes for targeted and offline campaigns
  • Judge results on extra orders, not redemptions

Do not

  • Leave an empty code field visible between campaigns
  • Let a targeted code reach public coupon sites
  • Discount on a predictable schedule customers can wait for

Questions people ask about this

Should I show a discount code field at checkout?

Only when a campaign is running, and then keep it small. A visible empty field tells shoppers that a better price exists somewhere, and some will leave to look for it rather than complete the order. Collapsing it behind a text link, or hiding it entirely between campaigns, usually costs nothing and prevents that detour.

Are unique codes better than shared codes?

For anything targeted, yes. A unique code cannot be posted to a coupon site and used by strangers, it expires with the offer, and it tells you precisely who redeemed it. Shared codes still make sense for open campaigns where reach matters more than control, such as a seasonal sale you actively want people to pass around.

How do I know whether a discount actually made money?

Compare orders from the group you offered it to against a similar group you deliberately held back. Redemptions alone prove nothing, because customers who were already going to buy will happily take a discount. The measure that matters is extra orders and the profit left on them after the reduction, delivery and payment costs.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.