How do I add a link to an email that automatically adds a coupon to the recipient's cart in my store?

read
Last updated at:

How do I add a link to an email that automatically adds a coupon to the recipient's cart in my store?

There's two different ways to accomplish this depending on the type of message you're sending. For an abandoned cart flow, the structure of your link will look like this:

 

https://www.mysite.com/STOREFRONT_ID/checkouts/{{ event.extra.token }}?discount={% coupon_code 'NAME_OF_YOUR_COUPON' %}

 

This is for dynamic coupons. If you're using a static coupon, instead of

 

{% coupon_code 'NAME_OF_YOUR_COUPON' %}

 

it will just be

 

?discount=NAME_OF_YOUR_COUPON.
Head to this article on Add a Link that Automatically Applies a Unique Coupon Code at Checkout for more information.
For any other flow or campaign message, you will need to point to your website, add the coupon and redirect all within the same link. That would look like this:

 

mysite.com/discount/{% coupon_code 'your_code' %}?redirect=/new-path

 

Again, if you're not using a dynamic code, you can replace that tag with just your static coupon's name. 

 

What is the Klaviyo FAQ?

x
Was this article helpful?
3 out of 11 found this helpful