Expert answer · 5 min read
How do I track which codes have been used?
The short answer
In depth
How to track which discount codes have been used
Good code tracking answers three questions: how many times was each code used, what revenue did it bring, and which channel or campaign deserves the credit. Shopify gives you the first two out of the box. The third depends on how you structure your codes, and that is where most stores quietly lose the plot. Here is the system, from the built-in basics to the setup that tracks itself.
Start with what Shopify already records
Open any discount in your Shopify admin and you will see its usage count. For revenue, go to Analytics and look at the sales-by-discount report, or export your orders and filter by the discount code column. That gives you redemptions and revenue per code with zero extra tooling. It is enough for a store running a handful of campaigns at a time, as long as each campaign has its own code.
The shared-code trap
Manual tracking breaks down for one reason: one code doing many jobs. If the same "WELCOME10" runs in your Instagram bio, your email footer, and an influencer's post, Shopify will happily tell you it was used 400 times, and nothing more. You cannot attribute a single order. The fix is structural, not more spreadsheets: give each channel its own code (WELCOME10-IG, WELCOME10-EM), or better, generate unique codes per recipient so every redemption maps to one person and one source.
A tracking setup that scales
- One code per channel, minimum: the naming convention does the attribution work for you.
- Unique codes for influencer and email campaigns: bulk-generate them so each share is traceable and cannot be reused.
- A monthly review habit: export the discount report once a month, rank codes by revenue and redemption rate, and retire the ones that only attract deal-hunters.
- Watch for leakage: a code redeemed far more times than the audience it was sent to has escaped to a coupon site. Retire it and issue a fresh one.
The cleanest answer: codes that report themselves
The most reliable tracking is the kind you never have to do. Growth Suite generates single-use, time-limited codes tied to the exact visitor and moment they were created for, and follows each one from creation to outcome. Across 958 stores, 14% of these codes were used before expiry and the remaining 86% expired unused and were deleted automatically on the server. That means every campaign reports a complete picture: how many offers were shown, claimed, redeemed, and how much revenue each step produced, without a single export. Codes that expire and vanish also cannot leak to coupon sites, which removes the oldest tracking headache of all.
Tools when you outgrow the basics
If you are running many campaigns at once and need bulk generation, channel attribution, and redemption analytics in one place, a dedicated app earns its fee. Our honest comparison of Shopify discount apps covers which tools handle code generation, tracking, and targeting well, and where each one falls short. Pick based on the campaign type you run most; there is no single winner for every store.
From shown to sold, in one report
With Growth Suite, each offer is a tracked chain: visitor hesitates, code is created, code is shown, code is used or expires. You see conversion per campaign and per offer type in the dashboard, and because codes are single-use with real expiry, the numbers are clean: one code, one visitor, one outcome. No manual reconciliation, ever.
Frequently asked questions about tracking discount codes
Can I see which customer used a code?
Yes. Open the order and the discount code is recorded on it. Filtering orders by code in an export gives you the full list of customers per campaign.
How do I stop a code that leaked to a coupon site?
Deactivate it in your admin and issue a new one to the real audience. For future campaigns, single-use codes with expiry make leaks harmless, because a leaked code dies after one use.
What is a good redemption rate for a campaign?
Compare each code against your own history, not a universal number. A code that underperforms its siblings usually points at a weak channel or a weak offer, and either way you have learned something useful.
Should I delete old codes?
Deactivate them so they stop working, but keep the records. Old code data is your campaign history, and you will want it when planning next season's offers.
Growth Suite for Shopify
Put this answer to work in your store.
Growth Suite reads what each visitor is about to do and triggers the right offer at the right second — so the strategy above runs on its own.
14-day free trial · No credit card · Cancel anytime
Go deeper
Resources
Shopify Upselling & Cross-Selling
Most Shopify stores leave 10-30% of revenue on the table because they do not upsell or cross-sell effectively. This...
Shopify Conversion Rate: The Complete Resource Hub
Your conversion rate is the most important number in your Shopify store. Learn how to measure it, diagnose problems,...
Shopify Holiday & Seasonal Campaign Strategies
Every holiday has its own shopping psychology. Plan year-round campaigns with the right discount, right timing, and...
Shopify Countdown Timer
Adding a timer takes 5 minutes. Making it convert without destroying trust? That's strategy. The complete guide to...
Shopify Cart Abandonment
70% of Shopify carts are abandoned. Learn why customers leave, how to prevent abandonment in real-time, and recover...
Shopify Discount
Master Shopify discounts without sacrificing your profit margins. Learn strategic discount techniques, timing...