If you’re still sending the same static discount code to every new subscriber… you’re leaving money (and control) on the table.
Dynamic coupons fix that.
Instead of one shared code floating around the internet, each subscriber gets a unique, one-time-use discount code pulled directly from Shopify into your Klaviyo emails.
This is especially powerful in your welcome flow, where first impressions (and first purchases) matter most.
Let’s walk through exactly how to set this up step by step.
Why Use Dynamic Coupons?
Before we jump in, here’s why this matters:
- Prevents code abuse (no Reddit leaks or coupon extensions draining margin)
- Creates urgency (codes feel personal and limited)
- Improves conversion rates (people are more likely to use “their” code)
- Tracks performance better (each code is tied to a user)
Now let’s build it.
Step 1: Create a Dynamic Coupon in Klaviyo (Connected to Shopify)
Klaviyo doesn’t generate discounts on its own — it pulls them from Shopify.
Here’s how to set it up:
- Go to Klaviyo Dashboard
- Click Content → Coupons
- Click “Create Shopify Coupon”
Now configure your coupon:
Key Settings:
- Name: Internal only (e.g.,
Welcome10) - Prefix: What codes will start with (e.g.,
WELCOME-) - Discount Type:
- Percentage (e.g., 10% off)
- Fixed amount (e.g., $10 off)
- Applies To: Entire order or specific collections
- Expiration:
- Set expiration (recommended: 7–14 days for welcome flows)
Klaviyo will now auto-generate a pool of unique codes in Shopify.
Step 2: Add the Coupon to Your Welcome Flow Email
Now we insert that dynamic coupon into your email.
Go to your Welcome Flow:
- Navigate to Flows
- Open your Welcome Flow
- Click the first email
- Edit the email content
Step 3: Insert the Dynamic Coupon Block
Inside the email editor:
- Add a Text Block
- Click “Personalization”
- Select Coupon → Your Coupon Name
Klaviyo will insert a tag that looks like this:
{% coupon_code 'Welcome10' %}
That tag dynamically pulls a unique code for each subscriber.
Step 4: Test Before Going Live
This is where most people mess up.
Always test:
- Send a preview email to yourself
- Confirm:
- A unique code appears
- The code works in Shopify checkout
- It applies the correct discount
⚠️ Important: Each preview generates a real code — don’t over-test or you’ll burn through them.
Your welcome flow is your highest-converting automation — and dynamic coupons make it even stronger.
Instead of giving away discounts blindly, you’re:
- Controlling usage
- Personalizing the experience
- Protecting your margins
If you’re running an ecom store and not using this yet, it’s one of the easiest wins you can implement today.






