How to generate unique discount codes for your campaign
Unique discount codes give each subscriber their own one-time-use code after signing up. This prevents code sharing and lets you track redemptions per subscriber.
Discounts are managed on the Discounts page in the main navigation. Once you create a discount there, you can reference it from any campaign – no need to configure the discount inside each campaign separately.
Step 1 – Create a unique discount
- Go to the Discounts page in the 1ClickPopup app
- Click Create discount
- Select Generate unique discount codes as the discount method
- Configure the discount (see options below)
- Click Save
The discount is now saved and ready to be used by any campaign.
Discount options
Discount type – Choose between Percentage, Fixed amount, or Free shipping.
Discount value – The amount of the discount (e.g., 10 for 10% off, or 5 for $5 off).
Applies to – Choose whether the discount applies to the entire order, specific collections, or specific products.
Minimum order requirements – Set to None, a minimum purchase amount, or a minimum quantity of items.
Combinations – Choose whether this discount can be combined with product discounts, order discounts, or shipping discounts. This controls how the code interacts with other active discounts on your store.
Expiration – Set the code to never expire, expire after a specific time period (e.g., 24 hours, 7 days), or expire on a specific date and time.
Discount code prefix – Optionally add a prefix to make codes recognizable. For example, a prefix of "SUMMER" generates codes like "SUMMER5CJ0EVH8."
Step 2 – Reference the discount from your campaign
Standard campaigns (popups, embedded forms, announcement, exit & cart saver)
- Go to the Campaigns page and click Edit design on your campaign
- Go to the Content tab
- Find the Discount code section
- Select your saved discount from the dropdown
If you haven't created a discount yet, the dropdown includes a Create new discount link that takes you to the Discounts page.
Gamified campaigns (Spin-to-Win, Turntable, Nine-Square)
Gamified campaigns reference discounts per reward slot:
- Go to the Campaigns page and click Edit design on your campaign
- Go to the Content tab
- Under Rewards, find the reward you want to configure and click Edit
- Select Unique discount as the reward type
- Select your saved discount from the dropdown
- Click Save
Each reward slot can reference a different discount – for example, 10% off on one slot and 20% off on another. Useful for testing which offer drives more conversions across slots.
How it works for visitors
- A visitor signs up through your popup
- 1ClickPopup generates a unique one-time-use discount code based on the discount you've referenced
- The code is displayed on the Success screen (or Winning screen for gamified campaigns) – you can toggle this on or off in the Content tab
- If auto-apply is enabled on the discount, the code is automatically applied when the visitor reaches checkout
Each code can only be used once. If the visitor shares it, whoever uses it first claims it.
Automatically clean up expired and used codes
Unique discount codes are created in your Shopify Discounts list every time a visitor signs up. Over time, expired and redeemed codes can accumulate, cluttering the list.
To keep things clean, you can enable automatic cleanup:
- Go to the Settings page in the 1ClickPopup app
- Find the Discount codes section
- Toggle on Automatically delete expired and used codes
When enabled, 1ClickPopup periodically removes codes that are either past their expiration date or have already been redeemed. Codes that are still active and unused are never touched.
This is an app-level setting – it applies to all unique discount codes generated by 1ClickPopup, across all campaigns.
Things to know
Codes are created in Shopify Discounts. Every unique code generated by 1ClickPopup appears in your Shopify Admin > Discounts. You can view, manage, or delete them from there manually – or let auto-cleanup handle expired and used codes for you.
Auto-apply at checkout is configured per discount on the Discounts page. When enabled, the discount is automatically applied when the visitor reaches checkout – no need to copy and paste.
Lead capture with Shop works with unique codes. If your store has Shop Pay enabled, the discount can be applied automatically through the Shop Pay checkout flow.
One discount, many campaigns. A saved discount can be referenced from multiple campaigns at once. Update the discount in one place and the change applies everywhere it's used.