Follow me on X. @sangngqang

Discount code

A discount code is a word or string a shopper enters at checkout to get money off, free shipping or another deal, often used to track a campaign or partner.

What is a discount code?

A discount code, also called a coupon or promo code, is text a shopper types at checkout to unlock a deal. Common deals are a percentage off, a fixed amount off, free shipping or a free gift. Stores use codes to win first orders, bring back past customers, reward subscribers and run seasonal sales. Codes also double as tracking tools. Giving each influencer, email or campaign its own code shows which source drove the sale, which helps when ad platform tracking is incomplete. Used carelessly, though, codes can eat margin and train customers to never pay full price.

How discount codes work

In the store admin you create a code, choose the deal and set rules: minimum order value, which products it covers, how many times it can be used, whether one customer can use it more than once and when it expires. The shopper enters the code at checkout and the price updates. For example, a store might create a code for 10% off orders over $60 for email subscribers, valid for seven days. A $70 order then costs $63. Many platforms, including Shopify, also support links that apply a code automatically, which removes the step of typing it in.

Pros and cons

Discount codes can lift conversion for hesitant first-time buyers, revive lapsed customers and give a clear reason to act during a sale. Unique codes make attribution easy for influencer and partner campaigns. The downsides are real. Every discount cuts margin, so a code can turn a profitable order into a loss once ad costs are counted. A visible code box sends some shoppers off to search for codes, and they may never come back. Codes often leak onto coupon sites, where they get used by people who would have paid full price. Frequent sales can also teach customers to wait.

Best practices for discount codes

Check the numbers before launching: make sure the discounted order still covers product cost, shipping, fees and your expected ad cost. Set an expiry date and usage limits. Use unique, single-use codes for high-value offers so they cannot spread. Prefer a minimum order threshold, which can raise order value instead of only cutting price. Apply codes automatically through links in emails and ads so shoppers do not leave to hunt for one. Give each campaign or partner its own code so you can measure results, and retire codes that leak or underperform.

Discount code vs automatic discount

A discount code needs the shopper to type or apply text at checkout, while an automatic discount applies by itself when the cart meets the rules, such as buy two, get one free. Codes are better for targeting a specific group, like email subscribers or one influencer’s audience, and for tracking where sales came from. Automatic discounts remove friction and suit storewide sales, because nobody has to remember anything. Many stores use automatic discounts for public promotions and codes for private or tracked offers. Either way, check that the discount still leaves a profit on every order it applies to.

Questions

Do discount codes hurt profit?
They can. A discount comes straight out of margin, so check the order still makes money after product, shipping, fees and ad costs. Thresholds, expiry dates and single-use codes help keep the cost under control.
How do I stop my discount code from leaking to coupon sites?
Use unique single-use codes for valuable offers, set short expiry dates and usage limits, and apply codes through links rather than publishing them. Retire any code that starts appearing in places you did not share it.

Related terms