Discount Code Generator
Automatically generate unique Shopify discount codes after review, purchase, birthday, or member-promotion events.
Use Discount Code Generator when Roadmap should create a unique discount code after a customer event.
This setup works well for post-review rewards, birthday offers, tier-promotion rewards, and post-purchase follow-up offers.
Where to find it
In Roadmap, open Discounts / GWPs, click Create a new discount, and choose Discount Code Generator.
When to use it
Use the generator when you need all three:
a unique code per reward event
Shopify discount rules managed in Roadmap
event-based delivery through Roadmap or Klaviyo
Use Klaviyo coupons instead when Klaviyo should both generate and send the coupon.
Delivery options
Choose how the reward reaches the customer.
Trigger a Klaviyo event
Use this first.
Klaviyo keeps reward emails inside your existing lifecycle program. You keep flow logic, design, testing, and reporting in one place.
This is usually the best option when you already run retention email in Klaviyo.
Send mail via Roadmap
Use this for a simpler setup.
This works when you want Roadmap to send the reward email directly and do not need a Klaviyo flow around it.
Available triggers
The generator supports four trigger types.
Use the links below to open the full setup guide for each trigger:
When review is published
Use this to reward a customer after a review is published.
This trigger has its own review-specific settings such as Reward frequency.
When specific products are purchased
Use this to reward a customer after they buy selected products or collections.
This works well for bounce-back offers and post-purchase cross-sell incentives.
On member birthday
Use this to send a birthday reward based on the member's stored birthday.
Choose the timing based on the buying behavior you want to influence.
Read Birthday discount codes.
On member promotion
Use this to reward a member when they move into a new tier.
This works well for tier celebration and immediate next-purchase activation.
Shared configuration
All generator setups use the same core sections:
Name and Status
Trigger
Discount Code
Customer Eligibility
Mail Template
Most setups also need decisions on:
what the discount applies to
whether it supports one-time, subscription, or both
minimum spend, quantity limits, and expiry
Related guides
Last updated