Step-by-step guide: Add Shopify discount codes in Klaviyo

Step-by-step guide: Add Shopify discount codes in Klaviyo

Table of Contents

  1. Introduction
  2. Setting Up Dynamic Discount Codes in Klaviyo
  3. Setting Up Coupon Codes in Flows
  4. Setting Up Coupon Codes in Campaigns
  5. Adding Coupon Codes to Klaviyo Emails
  6. Testing and Verifying Coupon Codes
  7. Tips and Best Practices
  8. Common Issues and Troubleshooting
  9. Conclusion


In this article, we will explore how to add auto-apply discount codes to your Shopify store using Klaviyo emails. Discount codes are a great way to incentivize customers and encourage them to make a purchase. Klaviyo provides a seamless integration with Shopify, allowing you to easily set up and manage dynamic discount codes for your emails. Whether you are creating flows or campaigns, we will walk you through the step-by-step process of setting up and implementing these codes. Let's dive in!

Setting Up Dynamic Discount Codes in Klaviyo

To begin, we will discuss how to set up dynamic discount codes in Klaviyo. This feature is available for both flows and campaigns and allows you to create personalized and unique discount codes for your subscribers.

Setting Up Coupon Codes in Flows

When setting up coupon codes in flows, you will access the coupons panel in Klaviyo and click on "Add Coupon". From there, you can customize the name, prefix, discount type, activation method, expiration date, and more. We will guide you through each step and provide best practices along the way.

Setting Up Coupon Codes in Campaigns

Similarly, you can set up coupon codes in campaigns to target specific promotions, such as Black Friday or seasonal sales. We will explain how to create coupon codes for campaigns and ensure they are live and active during the desired timeframe.

Adding Coupon Codes to Klaviyo Emails

Once you have set up your coupon codes, it's important to know how to add them to your Klaviyo emails. We will show you how to use special merge tags and replace them with the code you previously created. This step is crucial to ensure that the coupon code is dynamically generated and applied correctly in your emails.

Testing and Verifying Coupon Codes

To ensure that your coupon codes are functioning properly, it is essential to test and verify them. We will guide you through the process of previewing and testing your emails within Klaviyo, as well as checking the validity of the coupon codes. This step will help you identify any issues or discrepancies before sending the emails to your subscribers.

Tips and Best Practices

In this section, we will share some tips and best practices for effectively using auto-apply discount codes in your Klaviyo emails. From naming conventions to expiration dates and minimum thresholds, these practices will help you optimize your campaigns and drive more conversions.

Common Issues and Troubleshooting

Despite thorough planning and testing, issues may still arise when implementing discount codes in Klaviyo. We will address common issues and provide troubleshooting solutions to ensure a seamless experience for you and your subscribers.


In conclusion, auto-apply discount codes can be a powerful tool in your email marketing strategy, driving sales and customer loyalty. By following the step-by-step instructions provided in this article and taking note of best practices and troubleshooting tips, you will be able to effectively implement and optimize discount codes in your Klaviyo emails. Happy discounting!


  • Learn how to set up and manage dynamic discount codes in Klaviyo
  • Create personalized and unique discount codes for your Shopify store
  • Ensure proper integration between Klaviyo and Shopify
  • Test and verify coupon codes to ensure they are working correctly
  • Implement best practices to optimize your email marketing campaigns


Q: Can I customize the prefix of the discount code? A: Yes, you have the flexibility to choose a prefix that fits your brand and campaign.

Q: How long do coupon codes remain active? A: Coupon codes can be set to expire after a certain number of days to create a sense of urgency for customers.

Q: Can I use fixed amount discount types without a minimum purchase requirement? A: While possible, it is generally recommended to include a minimum purchase to ensure that the discount is applied appropriately.

Q: How many coupon codes should I generate? A: The number of coupon codes generated should ideally match the number of recipients to avoid code duplication issues.

Q: What happens if a coupon code is misspelled or incorrectly set up? A: Klaviyo has built-in safeguards to prevent the sending of emails with invalid coupon codes, helping you avoid potential issues.

Q: Can I test coupon codes before sending them to subscribers? A: Yes, it is crucial to test coupon codes to ensure they are functioning correctly and providing the intended discount.

Q: Are there any limitations when setting up coupon codes in Klaviyo? A: Each platform may have specific limitations, but Klaviyo provides comprehensive functionality for setting up and managing coupon codes.

Q: Can I use auto-apply discount codes on multiple pages of my website? A: Yes, Klaviyo allows you to customize the links to your discount codes based on the page you want to redirect subscribers to.

Q: What are some best practices for creating coupon codes? A: Best practices include using clear and concise naming conventions, setting appropriate expiration dates, and considering minimum purchase requirements.

Q: How can I troubleshoot common issues with discount codes in Klaviyo? A: We will provide troubleshooting solutions for common issues, such as code duplication, incorrect links, and formatting errors.

I am a shopify merchant, I am opening several shopify stores. I use ppspy to find Shopify stores and track competitor stores. PPSPY really helped me a lot, I also subscribe to PPSPY's service, I hope more people can like PPSPY! — Ecomvy

Join PPSPY to find the shopify store & products

To make it happen in 3 seconds.

Sign Up
App rating
Shopify Store
Trusted Customers
No complicated
No difficulty
Free trial