Skip to main content
All CollectionsRepeat Carts
Auto-Apply Unique Discount Codes on the Repeat Cart
Auto-Apply Unique Discount Codes on the Repeat Cart
Updated over a month ago

Overview

With just a few quick, easy steps, you can automatically apply unique discount codes to your customers' Repeat Cart URLs in Klaviyo. This feature gives merchants the ability to offer personalized codes via Repeat-powered flow and on the Repeat — your customers also benefit because they don't have to manually copy/paste the code when going through a Repeat Cart to checkout.

What Customers Experience

In any Klaviyo flow or campaign where a Repeat Cart URL is featured, customers can click a link that will take them directly to a Personalized Repeat Cart. Once they click through to checkout, they'll see that that a discount has automatically been applied to their order.

It's a simple, secure process that avoids putting any extra work on your customers' plates.

Setting It Up

1. If you don't already have a coupon that you want to apply to your customers’ Repeat Cart URLs, go to Klaviyo and click on Coupons under the Content header. Once there, select "Create Shopify Coupon" and select the discount type and amount you want to offer.

2. With a coupon ready, select a flow or campaign that you want to add it to. It can be a pre-existing email with a Repeat Cart URL already attached, or a new email for a specific campaign that you're launching (think something along the lines of BFCM).

3. Enter the email editor and select the block with the Repeat Cart URL. The link address should say {{ person|lookup:'Repeat Cart URL' }}. The change you make to the link address depends on if you want to offer a static or dynamic discount code.

  • For a static code, enter this:

    {{ person|lookup:'Repeat Cart URL' }}&discount_code=DISCOUNTCODE
  • For a dynamic code, enter this:

    {{ person|lookup:'Repeat Cart URL' }}&discount_code={% coupon_code 'DISCOUNTCODE' %}

Make sure that you replace "DISCOUNTCODE" with the exact name of your code, otherwise it will not work.

4. Save all of your changes and customers will now see the discount automatically applied to their cart when they check out.

Note: If you have a global discount code set up to auto-apply at checkout, discounts applied through the URL using the method in this article will take precedent.

Static vs. Dynamic Discounts

Put simply, a static discount code will be the same for all your customers, while a dynamic discount code will be unique to each individual. Each option typically comes with pros and cons, but this method of discount distribution eliminates most of the negatives. One thing to be mindful of, though, is that static codes can easily be overshared. We often recommend using dynamic codes to limit the possibility of oversharing.

Did this answer your question?