Unique Single-Use Discount Codes on Shopify

TL;DR

Why one shared code leaks and how unique single-use codes fix it. How to create them in Shopify, how spin wheels generate them, and how to keep them tidy.

Unique Single-Use Discount Codes on Shopify

A shared discount code like WELCOME10 starts as a welcome offer and ends up on every coupon site within a week. From then on, anyone who searches "your store + discount code" pays 10% less, whether they ever signed up or not.

A unique single-use discount code is a code generated for one customer that works for one order only. On Shopify, each code belongs to a discount that sets the value and the rules, while the code itself is random, such as PB_A1B2C3. Because each code works once, a code that gets shared online is worth one order at most.

In short

  • Shared codes leak. Unique codes limit the damage of a leak to a single order.
  • Shopify's admin creates codes one at a time. Large sets need a bulk code app, or an app that creates a code per signup.
  • Spin wheel apps such as PopupBoost create a unique code for every winner automatically.
  • Add an expiry, a prefix per offer and a regular cleanup, and unique codes stay easy to manage.

Shared codes vs unique codes

Shared code (WELCOME10)Unique codes (PB_A1B2C3)
Who can use itAnyone who has the codeOne customer, one order
If it leaksWorks for everyone, indefinitelyWorks for one order at most
TrackingHard to tie to a signupEach code ties to one person
SetupOne code in the Shopify adminAn app or an export of many codes
Good forPublic sales, influencer codes you want sharedWelcome offers, popup prizes, win-backs

Shared codes still have a place. A public Black Friday sale code is meant to be shared, and an influencer code needs to be easy to remember. For anything you give in exchange for an email, use unique codes.

How to create unique codes on Shopify

Option 1: One discount, one code at a time

In the Shopify admin you create a discount, type a code or generate a random one, and save. In the usage limits you can tick "Limit to one use per customer" and set a total number of uses. That works for a handful of codes. It does not scale to a welcome offer that needs a new code for every signup. Shopify's discounts documentation covers the settings.

Option 2: A bulk code app

Bulk code apps take one discount and generate thousands of random codes under it, which you can export to a CSV for email or print. This suits printed inserts, partner promotions and one-off campaigns where you know the number of codes in advance.

Option 3: Codes created at the moment of signup

Popup and email apps can create a code the moment a visitor signs up or wins, so you never run out and every code is tied to a person. This is how PopupBoost works: each winning slice on a spin wheel generates a unique code for that winner, with the slice's value, prefix and expiry. No two winners share a code, and each one works once. The help article on coupon codes and prize types covers the settings.

Settings that make unique codes work

Give each offer its own prefix

A prefix is the readable start of each code. Use a different one per offer, such as BF20_ for a Black Friday 20% slice and BFSHIP_ for free shipping. In the Shopify orders list you can then see at a glance which prize each order used. In PopupBoost you set a campaign prefix and can override it per slice.

Set an expiry

A code that never expires is a liability. The PopupBoost default is 24 hours from the moment the code is won. Use shorter windows for flash sales and up to 7 to 30 days for considered purchases. Only 61 of 401 live PopupBoost wheels customize the expiry on a slice, so most stores rely on the default.

ExpiryBest for
1 to 6 hoursFlash sales, strong urgency
12 to 24 hoursStandard welcome wheel
48 to 72 hoursGift buyers, higher-priced items
7 to 30 daysLoyalty rewards, high-consideration products

Decide whether codes can stack

Shopify lets you choose whether a discount combines with other product, order or shipping discounts. A welcome code that stacks with a sitewide sale can double the discount on one order. Read Shopify's guide to discount combinations, and the PopupBoost help article on discount combinations for the popup side.

Add a minimum purchase where it matters

Free shipping and gift prizes work best with a minimum order value. It keeps small orders profitable and pushes the basket up. Our post on free shipping bar vs popup shows the effect on order value.

Keep thousands of codes tidy

A busy popup can create thousands of codes a month, and most of them will never be used. They do no harm, but a cluttered discounts list is hard to work with. Two habits help:

  • Clean up expired codes regularly. PopupBoost can remove unused and expired codes it created. See discount cleanup.
  • Name discounts by campaign and date. "Spin wheel, Black Friday 2026" is easier to find next year than "Discount 47".

When unique codes are not enough

Unique codes stop sharing. They do not stop the same person from signing up twice with a second email. For that, block repeat plays by email, device and IP address, and block disposable emails. Our guide on how to stop spin wheel abuse covers each setting.

Your next step

Search your store name plus "discount code" in Google. If your welcome code shows up on a coupon site, replace it with unique codes this week. For prize ideas that work well with unique codes, read spin wheel prize ideas, and for the rest of your discount plan, how much to offer in a welcome discount.

Frequently asked questions

Can Shopify generate unique discount codes?

The Shopify admin creates discount codes one at a time, and can generate a random code for each discount you make. For large sets, such as a code for every email signup, use a bulk code app or a popup or email app that creates a unique code automatically when a customer signs up or wins.

What is a single-use discount code?

A single-use discount code works for one order only. After a customer uses it, the code stops working, so sharing it online gives others nothing. On Shopify you can make a code single-use with its usage limits, and apps that generate a code per customer make each code single-use automatically.

How long should a discount code be valid?

For a welcome or spin wheel offer, 24 hours is a good default: long enough to finish shopping, short enough to keep some urgency. Use 48 to 72 hours for gift buyers and higher-priced items, and up to 30 days for loyalty rewards. Avoid codes that never expire.

Do unique codes stop coupon sites from listing my store?

They stop the listed codes from working more than once. Coupon sites may still list your store, but a code that has already been used is worthless to their visitors. Combine unique codes with a short expiry and replace any shared welcome code that is already circulating.

Article by

PopupBoost Team

We build PopupBoost, the gamified popup app for Shopify. Our posts use anonymized data from the campaigns running on PopupBoost stores, so the advice comes from real results, not guesses.

START YOUR FIRST SPIN WHEEL CAMPAIGN

Join thousands of Shopify merchants using gamified popups to boost conversions.

Shopify
Available on Shopify App Store