Discount Code Monitoring
Campaigns stop automatically if discount codes run out. Users receive a warning right away.
Discount Code Monitoring is an OptiMonk feature that automatically tracks the supply of discount codes attached to a campaign and stops the campaign from displaying to new visitors the moment the code pool is exhausted — preventing the damaging scenario of a visitor seeing a discount offer, trying to apply it at checkout, and finding it has already been used. When you run a campaign using a pool of unique, single-use discount codes and the last code in the pool is claimed, OptiMonk detects this immediately and deactivates the campaign automatically. At the same time, the account user responsible for the campaign receives an immediate warning notification, so the situation can be addressed — whether by uploading a new batch of codes, pausing the promotion, or switching to a different offer — before any visitors notice the disruption. This monitoring runs continuously in the background without any manual checking required, and protects both conversion rate and brand trust by ensuring that every promise of a discount made to a visitor can actually be fulfilled.
Key benefits
- Prevents broken promises to visitors at checkout. Showing a visitor a discount code that no longer works is one of the most damaging things a popup campaign can do — it creates a negative experience precisely at the point of highest purchase intent, and often results in cart abandonment by a visitor who was already converted. Discount Code Monitoring eliminates this failure mode entirely by deactivating the campaign before the last code is given away rather than after.
- Zero manual monitoring required. Without this feature, keeping a discount code campaign running safely requires someone to regularly check remaining code counts and manually pause the campaign before codes run out — a task that is easy to overlook during busy sale periods when campaigns are running at their highest volume. Discount Code Monitoring automates that check continuously, so no human vigilance is needed and no campaign runs dry unnoticed.
- Instant alert when codes run out. When the code pool is exhausted and the campaign is automatically stopped, OptiMonk sends an immediate warning to the account user. This gives you the fastest possible window to respond — uploading a new batch of codes and reactivating the campaign, or making a deliberate decision to end the promotion — rather than discovering the problem hours later through a spike in checkout errors or customer complaints.
How it works
In OptiMonk, create or edit a campaign that uses unique single-use discount codes — either uploaded manually as a CSV list or generated automatically via the built-in discount code generator (for Shopify). The codes are stored in OptiMonk's code pool for that campaign and distributed one per conversion.
Once the campaign is live, OptiMonk tracks how many codes remain in the pool in real time. Each time a visitor converts and receives a code, the available count decreases. This monitoring runs automatically in the background with no configuration or manual oversight required.
The moment the last code in the pool is claimed, OptiMonk automatically deactivates the campaign — no new visitors will see the offer. Simultaneously, the account user receives an immediate notification warning that the code pool has been exhausted. You can then upload a new batch of codes to resume the campaign, or leave it deactivated if the promotion has ended. The warning also appears proactively in the OptiMonk dashboard before the pool is fully empty, giving you the opportunity to top up codes before the campaign actually stops.
Frequently asked questions
What is Discount Code Monitoring in OptiMonk?+
Discount Code Monitoring is a feature that automatically stops a campaign when its pool of unique discount codes runs out, and immediately alerts the account user. This prevents visitors from being shown a discount offer that can no longer be fulfilled — protecting the visitor experience at checkout and ensuring that every discount code promised through an OptiMonk campaign is actually redeemable. The monitoring runs continuously in the background without any manual input.
What types of discount code campaigns does monitoring apply to?+
Discount Code Monitoring applies to campaigns that use a pool of unique, single-use discount codes — either uploaded manually by the user or generated automatically by OptiMonk (for Shopify stores). It does not apply to campaigns using a single static fixed code that is shared by all visitors, since a fixed code does not have a finite supply that can be exhausted.
What exactly happens when the code pool runs out?+
When the last code in the pool is claimed by a converting visitor, two things happen simultaneously: the campaign is automatically deactivated so that no further visitors see the offer, and an immediate warning notification is sent to the account user. The campaign remains inactive until the user takes action — either uploading a new batch of codes and reactivating it, or leaving it deactivated if the promotion is over.
Will I be warned before the codes run out, or only after?+
Both. OptiMonk alerts you proactively when the code pool is running low — before it is fully exhausted — so you have the opportunity to upload additional codes and keep the campaign running without interruption. If no action is taken and the pool reaches zero, the campaign stops automatically and a final alert is issued. This two-stage warning system gives you the best chance of avoiding a gap in campaign availability.
Can I add more codes to a running campaign without pausing it?+
Yes. You can upload a new batch of unique codes to a campaign's code pool at any time — including while the campaign is active. If the campaign was automatically deactivated due to code exhaustion, uploading a new batch allows you to reactivate it immediately. This means that even if the monitoring does trigger a campaign stop, the resolution is straightforward: add codes, reactivate, and the campaign resumes with no changes to its targeting, design, or other settings.
Try OptiMonk for free
Launch your first campaign, learn what works, then scale what converts.