Analytics & Tracking

Discount Code Tracking: Measuring Performance and Stopping Leakage

Discount codes drive sales but leak to coupon sites. Learn how to structure codes, track real performance and stop unwanted leakage.

TL;DR
  • Discount codes are both a marketing tool and a tracking tool, but only if they are structured and named consistently.
  • Leaked codes on coupon sites give discounts to shoppers who would have paid full price.
  • Track codes by channel, new versus returning customers, margin impact and leakage, and replace public codes with unique or limited ones where possible.

Why track discount codes carefully?

Codes are everywhere in eCommerce: welcome offers, influencer partnerships, email campaigns, customer service, win-back and seasonal sales. Each one gives away margin. Without tracking, you do not know:

  • Which channels and partners actually drive new customers.
  • How much margin goes to discounts each month.
  • Which codes have leaked to coupon sites.
  • Whether customers acquired with codes come back without them.

Discount tracking connects your ecommerce discount strategy to real results.

How should codes be structured?

Use a clear naming convention, like you would for UTM parameters:

Code type Example Use
Welcome WELCOME10-XXXX (unique) New subscriber offer
Creator SAM15 Influencer or affiliate partner
Campaign SPRING25 Seasonal or campaign-specific offer
Service CS-SORRY-XXXX (unique) Customer service goodwill
Win-back COMEBACK-XXXX (unique) Lapsed customer offer
Partner PARTNER-ACME Co-marketing partner

Where possible, use unique, single-use codes generated per customer (common for welcome and win-back flows in email platforms). They are much harder to leak.

What is coupon leakage?

Coupon leakage happens when a code meant for a specific audience spreads beyond it, usually to coupon and deal sites or browser extensions. Then shoppers who were going to buy at full price find the code at checkout and use it.

Signs of leakage:

  • A code’s usage spikes without any matching campaign activity.
  • Orders using a creator code come mostly from returning customers or from regions the creator does not reach.
  • The code appears on coupon sites when you search for your brand plus “coupon”.
  • Many orders apply the code within minutes of starting checkout, without having visited from the code’s source channel.

How do you reduce leakage?

  • Use unique, single-use codes for welcome, win-back and service offers.
  • Set limits: expiry dates, minimum order values, product exclusions, one use per customer and new customers only where appropriate.
  • Monitor coupon sites for your brand and deactivate leaked codes.
  • Use automatic discounts or links that apply an offer without a visible code, where your platform supports it.
  • Rethink the checkout code field: a prominent “Enter discount code” box sends shoppers searching. Some stores make it less prominent.
  • Include code rules in partner agreements. See affiliate marketing.

Which metrics should you track?

For each code or code type:

  • Orders and revenue.
  • Discount amount and discount as a share of revenue.
  • New versus returning customers.
  • Average order value compared with non-discounted orders.
  • Gross profit after discount.
  • Repeat rate of customers acquired with the code. See first-to-second purchase rate.
  • Usage outside the intended channel (leakage signal).

Most store platforms report discount usage. Combine it with order data in a spreadsheet or dashboard for the full picture.

Worked example: finding a leaked code

(Illustrative numbers.) A fashion brand gave a creator the code MIA20 for 20% off. In month one, it was used on 140 orders. In month three, usage jumped to 1,100 orders, while the creator posted nothing new.

Analysis:

  • 78% of month-three orders with MIA20 came from returning customers.
  • The code appeared on several coupon sites and in a browser extension.
  • The total discount given with MIA20 that month was about $16,500.

Actions:

  1. MIA20 deactivated, with a polite message at checkout.
  2. The creator received a new code limited to new customers with a usage cap.
  3. Coupon sites monitored weekly for new leaks.
  4. Discount report added to the monthly dashboard, flagging codes with sudden spikes.

Checklist: discount code tracking

  • [ ] Naming convention for all code types
  • [ ] Unique single-use codes for welcome, win-back and service offers
  • [ ] Expiry, minimum order and customer limits set
  • [ ] New-customer-only rules for acquisition codes
  • [ ] Discount usage reported by code and code type monthly
  • [ ] Discount as a share of revenue tracked
  • [ ] New versus returning customers per code reviewed
  • [ ] Coupon sites monitored for brand codes
  • [ ] Leaked codes deactivated and replaced
  • [ ] Code rules included in partner agreements

FAQ

How do I know if my discount codes have leaked?

Look for sudden spikes in usage without matching campaign activity, a high share of returning customers using an acquisition code and your codes appearing on coupon sites when you search for your brand.

Should I remove the discount code field from checkout?

Some stores make it less prominent to reduce coupon hunting. Removing it completely can frustrate customers with valid codes. Test changes carefully.

Are unique codes worth the extra setup?

For welcome, win-back and service offers, yes. Most email platforms can generate them automatically, and they greatly reduce leakage.

Turn this into a plan for your store

The Free Profit Audit scans your store, sizes your biggest profit leaks and builds a 90-day plan.

Free Profit Audit