Skip to main content
Contributor I
January 26, 2022
Solved

Using {{ event.extra.checkout_url}} to recover abandon carts, but I can't click the link inside the email.

  • January 26, 2022
  • 12 replies
  • 21886 views

Hello everyone,

I hope you are doing well :)

I’m facing a problem inside an account that never happened before: when we send the cart recovery emails with a button that contains “{{ event.extra.checkout_url}}”, we can’t click on the button inside the emails.

It seems like there is no link attached and the button doesn’t get treated as a button.

(the fields are populated, so when I send a test email it should work)

How can I fix this?

Thank you and have a great day,

Luca

This topic has been closed for replies.
Best answer by Dov

Hi @lucafo,

Thank you for sharing this with us.

Can you confirm when you’re sending your abandoned cart email containing the checkout URL tag, that it’s being sent from a flow that’s triggered off of Checkout Started? Since Klaviyo emails rely on the event that triggers the flow to populate those event variable tags, if you’re including the checkout tag in a test through another medium like a campaign email, or in a flow triggered off of a different metric, the button will not work.

If you can confirm you’re sending test emails through a flow triggered off of Checkout Started, I would double-check that you’re using the correct tag by previewing the flow email on the left-hand side and searching for “url”. Ensure that the tag for the checkout URL matches what you’ve placed in the button exactly. Even a small error would render the button unusable.

I hope that helps! Let us know how it goes.

12 replies

Contributor I
March 11, 2024

Hello im also struggling with this issue.

I wanted to add a link that sends the customer to cart with the product they earlier tried to checkout with as a part of my abandoned email flows.

So far this works to send the customer to cart with the product: {{ event.extra.checkout_url }}

But i want to add an discount code baked into this so the customer gets the discount automatically without doing anything entering the store again.

Does anyone have a solution for this?

Contributor I
July 25, 2024

@M1999 yes we have a solution

If you’re still struggling this this issue, Littledata’s improved Added to Cart and Checkout Started triggers include a CheckoutURL which maps to Shopify’s cart permalink, so users can instantly checkout when clicking through on any device.

This includes the ability to add a discount code to the checkout URL - see here

This has become a bigger issue recently, as Shopify’s new checkout has moved some stores to checkout URL format.