Available on the Free plan
With unique discount codes, each customer gets their own code from your flow emails or your sign-up popup, and the code works for 1 order only. A code shared on a coupon site stops working after its first use, and you set up the offer in Judge.me Email without creating anything in Shopify first.
How unique discount codes work
Here's how a customer gets their own code:
Your customer reaches a flow email with a Discount block set to Automatic.
Just before the email sends, Judge.me creates that customer's code in Shopify: your code prefix, a hyphen and 6 random letters and numbers, such as WELCOME-7KQ2XM.
The email shows the customer their own code and, if the code expires, their own end date.
When an order uses the code, Judge.me removes it from Shopify, so it can't be used again.
A code that isn't used stops working within an hour of its end date. A code set to Never expires stays until it's used.
Each offer keeps all its customers' codes in one Shopify discount, so your Shopify Discounts list doesn't fill up with one discount per customer. The discount is named "Judge.me Emails: <flow name>, <email name> <prefix>", or "Judge.me Emails: Sign-up popup <prefix>" for the sign-up popup.
The sign-up popup never shows the code itself. Each customer who signs up gets their own code in the first email of your Welcome flow, which uses the popup's offer.
Considerations
Before you set up unique discount codes, review the following considerations:
Unique discount codes work in flow emails that aren't transactional, and in the sign-up popup. Campaign emails and transactional emails use a Shopify code you select.
Discount blocks and popups that already use a Shopify code keep it until you change the Code type to Automatic.
Changing the offer in Judge.me Email only affects codes created after you save. Codes already sent keep their settings.
If you edit a "Judge.me Emails: …" discount in Shopify, codes created after your edit follow it too, because Judge.me keeps adding codes to the same discount. To change the offer, change the discount settings in Judge.me Email instead.
Don't delete a "Judge.me Emails: …" discount in Shopify. Every code already sent from it stops working, and new customers don't get a code until you save the discount settings again.
Only customers who got this email can use it limits the discount to the customers who got the email, not each code to its own customer. A customer who got the email can still use a code another customer shared, until it's used.
A customer who gets more than one code from the same offer, for example after entering the flow again, can use each of them, even with Once per customer checked.
Flow conditions on Discount code match one exact code, so they can't match unique codes. has any discount and has no discount still work.
If a customer's code can't be created in Shopify within 6 hours, the email isn't sent and the customer leaves the flow, so later emails don't mention a code they never got.
In the Birthday flow, an email whose code is set to Expires at the end of the customer's birthday month isn't sent once that month has ended, and the customer leaves the flow.
If you uninstall Judge.me Email, the "Judge.me Emails: …" discounts and unused codes stay in Shopify. Delete them in Shopify if you don't want them.
Codes Judge.me creates for one customer aren't listed when you select a Shopify code, and can't be entered by hand.
Set up unique discount codes
Set up unique discount codes in a flow email
Available on the Free plan
To set up unique discount codes in a flow email:
From your Judge.me Email app, go to Flows.
Click the flow you want to change.
Click the email you want to edit.
Click the Discount block in the email.
For Code type, select Automatic.
Optional: To change the offer, click Edit discount settings, change the settings you need, and then click Save. See "Customize unique discount codes" below.
Click Save.
When the code expires a set number of days after the email, Expiry text fills in as "Valid until {{ discount.expiry_date }}". The tag shows each customer their own end date, for example "Valid until 28 Nov 2026". You can change the words around it. Once you change the text yourself, it isn't changed again.
Set up unique discount codes in the sign-up popup
Available on the Free plan
To set up unique discount codes in the sign-up popup:
From your Judge.me Email app, go to Popups.
Click Customize.
Click the Rules tab.
In the Discount section, turn on the Offer a discount toggle.
For Code type, select Automatic.
Optional: To change the offer, click Edit discount settings, change the settings you need, and then click Save.
Click Save.
Customers get the popup's code in the first email of your Welcome flow, so the Welcome flow has to be on.
Customize unique discount codes
Discount settings
Available on the Free plan
To change the offer behind your unique discount codes:
In the Discount block or the popup's Discount section, click Edit discount settings.
Change any of the following settings:
Code prefix – the start of every code. Letters, numbers and hyphens, up to 20 characters. Each flow has its own default, such as WELCOME, COMEBACK, WINBACK, THANKYOU, FORYOU or BIRTHDAY.
Discount type – Percentage off (default, 10%) or Fixed amount, set in Discount value.
Expiry – a set number of days after the email is sent (default, 30 days, from 1–365), Never expires, or, in a Birthday flow only, Expires at the end of the customer's birthday month.
Requirement – No minimum requirement (default), Minimum order value or Minimum quantity of items.
Eligibility – Once per customer (checked by default) and Only customers who got this email can use it, which stops the codes working for anyone who didn't get the email and adds more discounts to your Shopify Discounts list.
Combinations – choose whether the code combines with Product discounts, Order discounts or Shipping discounts. None are checked by default.
Click Save.
Later emails in the same flow
Available on the Free plan
When an earlier email in the flow already gives the customer a unique code, a later Discount block set to Automatic can reuse it.
To choose which code a later email sends:
Click the Discount block in the later email.
For Code, select one of the following options:
If you selected Same code, from the If code is used or expired dropdown, select one of the following options:
Click Save.
Troubleshoot
A flow email or the sign-up popup says "This discount was deleted in Shopify"
A flow email or the sign-up popup says "This discount was deleted in Shopify"
If you see "This discount was deleted in Shopify", the "Judge.me Emails: …" discount behind that email or popup was deleted in Shopify. Codes already sent from it stopped working, and the email sends without the discount.
To fix it:
Click Edit discount settings on that Discount block, or on the popup's Discount section.
Click Save in the Discount settings window. You don't need to change anything.
Click Save on the email or popup.
New customers then get codes from a new Shopify discount.
Customers left a flow because their unique discount code couldn't be made
Customers left a flow because their unique discount code couldn't be made
If the flow shows "Some customers left this flow because their code couldn't be made", their codes may not have been created in Shopify within 6 hours, so those emails weren't sent. Check the email's discount settings, then save them again. If it keeps happening, contact our support team.
Customers were skipped with "Code already used or expired"
Customers were skipped with "Code already used or expired"
If customers were skipped with "Code already used or expired", a Same code email found that the customer's earlier code was already used or expired, and the block is set to Skip the email. To send the email without the discount instead, select Hide this block from the If code is used or expired dropdown.
Resources
See our latest updates:
➡️ Check our Unboxed page to discover newly launched features and improvements from Judge.me.






