Dynamic Coupons for Shopify

Overview

For all Shopify stores, Klaviyo can automatically create one-time use coupon codes so each customer receives his/her own unique code. This feature provides an alternative to creating a generic coupon code for a given promotion and means you don't have to worry about codes being shared. 

Example uses: 

  • Abandoned Carts: Send a discount code to cart abandoners that haven't bought before - a code only active for 2-4 days will create a sense of urgency and help convert casual browsers into paying customers
  • Win-backs: Send a discount to buyers who haven't come back recently, incentivizing them to purchase again
  • Welcome series: Give new subscribers a discount code as soon as they join your email list - you can even increase the savings available through the code if they haven't bought after 2 weeks

Note

It is unfortunately not currently possible to generate coupon codes in campaign emails using this method. This is due to a limitation on Shopify's end. While we are actively working on ways to expand this feature, this method of dynamic coupon generation is only available for use in flow emails.

Create your Coupon in Klaviyo

Navigate to the Coupons tab in your Klaviyo account and click Add Coupon in the upper right-hand corner.

If you haven't given Klaviyo the proper permissions to create Shopify coupons for your account, you may need to click a button and update your integration settings. When you click to update your integration settings, we will re-authenticate with Shopify and then you will be brought back into Klaviyo. If you click to update, and then click the back button or navigate elsewhere before this authentication process completes, this will cause your integration to get disabled.

2017-05-16_11-30-22.gif


For each coupon, you can set the following properties in Klaviyo: 

  • Name
    How the coupon will be identified in Klaviyo
  • Prefix
    Klaviyo will generate a random code for each person, but you can also specify a prefix that will go before every code (i.e. WELCOME)
  • Discount Type
    Whether the coupon is a fixed amount off, a percentage or for free shipping
  • Minimum Order Subtotal
    Whether the coupon is limited to orders meeting a certain subtotal (i.e. 20% off orders over $50)
  • Activation Date
    Date the discount offer becomes active -- you can choose to pick a start date, or alternatively select an option where generated coupon codes will become active as they are sent out
  • Expiration
    You have three choices for expiration:
    • Generated coupon codes will never expire
    • Generated coupon codes will expire after a certain number of days/hours
    • If you want your discount to have a defined end date, after which generated codes will expire, you can select a firm expiration date

Each discount type also has a few additional customization options:

  • Free Shipping
    For free shipping coupons, you can limit the coupon so it only applies to certain shipping rates, or only when shoppers are shipping to specific countries
  • Fixed Amount & Percentage Off
    For coupons where you're offering a fixed amount or percentage off an order, you can specify that the coupon only applies to certain products or collections

Use Your Coupon in a Flow Email

Once a coupon is created, you can insert it into a flow email using the following dynamic placeholder variable:

{% coupon_code 'CODE_FOR_YOUR_COUPON' %}

where you replace CODE_FOR_YOUR_COUPON with the coupon name.  For example:


When emails are sent out, this variable will be dynamically replaced with a unique discount code.

Keep in mind, when you preview your emails -- either in-app or by sending a preview email -- you will not see a unique coupon code populate. Coupon codes are only generated during live sends. 

Dynamic Coupon FAQs

Does Klaviyo store generated coupon codes anywhere I can access them?

No. Once coupon codes are generated, it isn't possible to view or manage them from within Klaviyo. You can, however, reference generated coupon codes in your Shopify Admin.

If I use the same coupon placeholder variable in multiple locations within a single email, will Klaviyo populate the same coupon code in all locations within this email?

Yes. Klaviyo will store every coupon code until it expires (up to 1 year). This means if you use the same placeholder variable multiple times in the same email, the same code will populate in all locations.

This also means if you have a multi-email automated flow series, and you send someone a coupon code in Email #1, you can use the same coupon placeholder in Email #3 and we'll give your customer the same exact code (unless the code has already expired). 

What happens if someone loses their code and reaches out to me? How do I send them the same code as a reminder?

If someone loses an email that featured a discount code, you can send the customer a personal email and insert the same coupon placeholder variable -- as long as the code hasn't expired, we'll populate the same exact code. If the code has expired, we'll generate a new code of the same type to share.

 

Was this article helpful?
17 out of 19 found this helpful