One code per subscriber. Nothing to pass around.

A welcome code everyone shares is easy to set up and easy to leak. A unique code goes to one subscriber, works once and can expire. This guide covers why shared codes spread, how to set up single-use codes on Shopify, how to apply the code to the cart for the shopper, and what to do when the codes run out.

By the numbers

  • 74%of Americans surveyed have left a cart to search for a coupon or promo codeCouponFollow, 1,016 Americans, March 2026
  • 7.45%conversion for signup popups offering a discount, against 4.60% without oneWisepops popup statistics 2026
  • 35%of sites with promotional code fields display them by default in checkoutBaymard Institute
  • 20,000,000unique discount codes a Shopify store can hold in totalShopify Help Center

Vendor figures are averages across many stores, not controlled tests. Use them to decide what to test first.

Shared codes and unique codes

A shared code such as WELCOME10 is one code for every subscriber. It is simple, but anyone who has it can pass it on, post it or reuse it, so the discount reaches people who never signed up. A unique code is generated for one subscriber and limited to one use. It can carry its own expiry, and you can see which subscriber's code was redeemed on which order. The cost is setup: someone has to create the codes in Shopify ahead of time and hand out exactly one per person. That is the job a popup tool should do for you.

Why shared codes leak

Shoppers go looking for codes. In a CouponFollow survey of 1,016 Americans in March 2026, 74% said they had left a cart to search for a coupon or promo code, rising to 80% among millennials. Baymard's checkout research saw the same thing in testing: participants left the site to search for codes, and once they leave they are much less likely to come back. Baymard also found that 35% of sites with promotional code fields display them by default. A shared welcome code is exactly what those searches turn up, often within days.

Does a discount lift popup signups?

Usually, yes. Wisepops measured signup popups offering a discount at 7.45% conversion against 4.60% for popups without one, across its email signup data for 2026. Popupsmart's benchmark of 28,674 campaigns found the median signup popup with a discount code converting 1.46% of displays, against 0.75% without one, and it does not say whether that gap is statistically significant. The two use different definitions, so treat the size of the lift as something to test on your own store. Either way, if the code is doing the work, it is worth protecting.

Set up the Shopify discount first

Unique codes all belong to one Shopify discount, which holds the rules: the amount off, the products or collections, any minimum spend, the dates and what it combines with. The setting that matters most is the total usage limit. Set it to 1, so each code can be used once. In Veya you can pick one of your own amount-off discounts or have Veya create one. Veya refuses a discount that allows more than one use, and it never edits your discount to fix that, because lowering a limit could end a code you already share.

How a code pool works

Making a code at the moment of signup would make every signup wait on Shopify, so Veya keeps a pool ready. You choose how many codes to keep ready, 500 by default and up to 5,000, and Veya adds more when fewer than a fifth are left, in batches of up to 250. Codes look like PREFIX-X7K2QM, using a prefix you set and six characters that skip 0, O, 1 and I, so they read back without mistakes. A code is only given out after Shopify has confirmed it exists. Shopify caps a store at 20,000,000 unique codes in total.

One code per person

A unique code only protects the discount if nobody can collect several. In Veya, the same email address, phone number or browser that signs up again gets the code it already has, not a second one, so reloading the page or resubmitting the form gains nothing. The code is never in the popup before signup, and it is not anywhere in the page for a visitor to find: the storefront only learns that the form has an offer and its label. Previews in the dashboard never submit a signup, so testing your design never uses up codes.

Apply the code to the cart

Copying a code from a popup and pasting it at checkout is a step where shoppers drop off or go hunting for a better one. Shopify's shareable discount links solve this: per Shopify, the discount is saved to the cart and browser and applies automatically at checkout, though a link carries a single discount and works only while the discount is active. Baymard's checkout guidance also suggests applying eligible discounts for the shopper. On Shopify stores, Veya applies the subscriber's code this way after signup, on by default for a new offer, and still shows the code with a copy button.

Expiry and real urgency

A unique code can expire, which a shared code cannot do per person. In Veya, each code can expire up to 720 hours after it is issued, or never. The success message then counts down in days, hours and minutes. The countdown is real: every 10 minutes Veya deletes issued codes that passed their expiry without being used from Shopify. Pick a window that fits how people buy from you. A short one suits impulse products, while a longer one gives a considered purchase time. Avoid a timer on a shared code, since it would not end for anyone.

When the pool runs out

If signups outpace the refills, or Shopify refuses a batch, the pool can run dry. Set a fallback: an ordinary shared code that subscribers get only when no unique codes are left. Without one, they see the offer's label with no code. Veya tells the store when this happens, through a notification in the dashboard that is also emailed unless you mute it, at most once a day per form, saying whether subscribers are getting the fallback or nothing, along with Shopify's last error. The pool's panel shows how many codes are ready, issued, redeemed and expired.

The code in Klaviyo and in orders

Each signup sends the subscriber's own code to Klaviyo as veya_offer_code, with veya_offer for the label and fields for the kind, value and expiry, so a welcome flow can repeat the exact code and remind people before it lapses. If your list uses double opt-in, you can keep the code out of the popup and send it only by email, so it arrives after the address is confirmed; your welcome email then has to include it. When an order uses a unique code, Veya links it back to the signup, so redeemed codes show up in the pool's counts.

Brief Veya

Set the offer on the form's Offer tab, not in the design brief: choose A unique Shopify code per subscriber, create a code pool from your Shopify discount or a new one, then set the expiry and a fallback code. Leave automatic cart apply on unless you want shoppers to type the code. The offer belongs to you, so a new design never changes it, and A/B test challengers keep the live form's offer. If you want bigger codes only for the least engaged visitors, the intent ladder gives each subscriber one of 2 to 4 offers.

Questions

How do I make a single-use discount code for each subscriber on Shopify?

Create one amount-off discount in Shopify with a total usage limit of 1, then add many codes to it, one per subscriber. Handing out one code per new subscriber, as they sign up, takes a popup app or Shopify's Admin API. In Veya, you pick the discount, and Veya keeps a pool of codes ready and gives each new subscriber one.

Can a popup apply a discount code automatically on Shopify?

Yes. Shopify's shareable discount links save a code to the shopper's cart and browser, so it applies at checkout without typing. A popup can use the same mechanism right after signup. The discount has to be active, and one link carries one discount. Veya does this by default on Shopify stores, and still shows the code with a copy button in case the shopper wants it.

What stops someone signing up twice to get another code?

The popup tool has to remember who already has a code. Veya checks the email address, phone number and browser of each signup, and anyone it has already given a code to gets the same code back. Because each code allows only one use in Shopify, even a code that does get shared works once. A new email address can still get a new code, as with any signup offer.

Should unique discount codes expire?

An expiry gives subscribers a real reason to buy soon, and it stops old codes piling up. The right length depends on how long people take to buy from you: a day or two suits quick purchases, a week or more suits expensive ones. Make sure the code actually stops working at the deadline. Veya deletes unused expired codes from Shopify, so its countdown is honest.

Can I put the unique code in my Klaviyo welcome email?

Yes. Veya sends each subscriber's code to Klaviyo as the profile property veya_offer_code, so your welcome email can show it with a personalization tag. That also lets a reminder email repeat the code before it expires. If you use double opt-in, you can choose to send the code only by email, so it reaches the subscriber once their address is confirmed.

Sources

Figures checked November 6, 2026.

Your next popup?
We’ll build it for you.

14-day free trial on every plan. Custom design and revisions included.