Solved

Applying a discount code and link in an abandoned checkout flow email

  • 2 January 2023
  • 2 replies
  • 813 views

Badge +2

Hi, I’m trying to learn how to link a discount to a button in an abandoned email. I was confused by the online documentation. Which correct:

 

  1. www.mysite.com/{{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}
  2. www.mysite.com/products/{{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}

Thanks!

 

David

icon

Best answer by Bobi N. 2 January 2023, 06:58

View original

2 replies

Userlevel 7
Badge +42

@David H 

it should be just {{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}

www.mysite.com/ is already a part of the {{ event.extra.checkout_url }} so you don’t need to add that in front

Badge +2

Thanks Bobi! This helps a lot.

I found the instruction on the Klaviyo site confusing when it said “add to the end of your site link.” Actually, I’m still not sure what they mean. :)

 

If you are sending Abandoned Cart emails (triggered by the Checkout Started event) and would like to link a customer to their abandoned cart with a discount code added, add the following to the end of your site link:

{{ event.extra.checkout_url }}&discount={% coupon_code 'CouponName' %}

Reply