Skip to main content
Solved

Abandoned cart dynamic tags


gamegirl92
Contributor II
Forum|alt.badge.img+6

Hi, I want to make sure that my Abandoned Cart flow (trigger: Added to cart) is working correctly, i.e. email recipients are being redirected to their carts.

I see that in the pre-made flow templates, there are two dynamic tags:

{{ organization.url|trim_slash }}/cart for hyperlinks, i.e. Click here to return to your cart
{{ event.URL }} for buttons

I followed what was in these template flows.

Can you please confirm if these are correct? Should I use both, or should I just either? 

When I previewed the emails, the tag for hyperlinks led me to my cart, and the link for buttons only led me to the product page.

Thanks!

 

Best answer by emma.owens

Hi ​@gamegirl92 ! 

Wanted to provide some additional clarity - for flows triggered by the Added to Cart metric, the only dynamic URL that is passed over with the event details is the product page URL. 

If you were to use {{ organization.url|trim_slash }}/cart, this will bring a customer to your site’s cart page, but it won’t necessarily “rebuild” their cart. There is a chance they will end up on your cart page, but with an empty cart. If they still have the browser open with their built out cart, then this URL would work, we just can’t guarantee that that is the case for all recipients. 

So to answer your question, you can use both URLs in the email, we just can’t guarantee that the items a customer added to their cart will still show in their cart when they click the {{ organization.url|trim_slash }}/cart URL. 

View original
Did this topic or the replies in the thread help you find an answer to your question?

5 replies

Amos Peace
Problem Solver III
Forum|alt.badge.img+5
  • Problem Solver III
  • 62 replies
  • February 19, 2025

Hello ​@gamegirl92,

You're on the right track. Here's how these two dynamic tags work in Klaviyo:

  1. {{ organization.url|trim_slash }}/cart

    • This directs users to their cart page. It works well for hyperlinks when you want to send customers directly back to their cart.
    • This is the best option if you want a universal cart recovery link that doesn't depend on event data.
  2. {{ event.URL }}

    • This pulls the URL from the event data (like "Added to Cart" or "Checkout Started").
    • In many cases, it leads to the last product added, not necessarily the cart.
    • It's useful for product reminders but not ideal for cart recovery.

What Should You Use?

For an Abandoned Cart email where you want customers to return to their full cart, use:
{{ organization.url|trim_slash }}/cart for both hyperlinks and buttons.

If you want to include a product-specific reminder, you can also use {{ event.URL }} but clarify that it leads to the product page, not the cart.

  • Use {{ organization.url|trim_slash }}/cart for your main CTA button and links.
  • Optionally, use {{ event.URL }} for product images or a secondary link if you want to direct them to the last product they viewed.

Hope this help.

 


MANSIR2094
Problem Solver IV
Forum|alt.badge.img+17
  • Problem Solver IV
  • 235 replies
  • February 19, 2025

Hello ​@gamegirl92

Your setup is mostly correct. {{ organization.url|trim_slash }}/cart is the right tag for linking users directly to their cart, while {{ event.URL }} usually leads to the product page instead. If you want to ensure all links take users back to their cart, use {{ organization.url|trim_slash }}/cart for both hyperlinks and buttons. If implementation gets tricky, feel free to reach out!


emma.owens
Community Manager
Forum|alt.badge.img+13
  • Community Manager
  • 64 replies
  • Answer
  • February 19, 2025

Hi ​@gamegirl92 ! 

Wanted to provide some additional clarity - for flows triggered by the Added to Cart metric, the only dynamic URL that is passed over with the event details is the product page URL. 

If you were to use {{ organization.url|trim_slash }}/cart, this will bring a customer to your site’s cart page, but it won’t necessarily “rebuild” their cart. There is a chance they will end up on your cart page, but with an empty cart. If they still have the browser open with their built out cart, then this URL would work, we just can’t guarantee that that is the case for all recipients. 

So to answer your question, you can use both URLs in the email, we just can’t guarantee that the items a customer added to their cart will still show in their cart when they click the {{ organization.url|trim_slash }}/cart URL. 


gamegirl92
Contributor II
Forum|alt.badge.img+6
  • Author
  • Contributor II
  • 3 replies
  • February 20, 2025

Thanks for the clarity everyone.


Forum|alt.badge.img

The dynamic tags you're using are correct for the most part, but there might be a slight issue with how the tags are being applied.

  • {{ organization.url|trim_slash }}/cart should work for the hyperlink, directing the user to their cart. This tag is fine for that purpose.
  • {{ event.URL }} is typically used for the product page or the event that triggered the email, so it’s likely why it’s directing you to the product page instead of the cart.

To fix this, you should use {{ organization.url|trim_slash }}/cart for both the hyperlink and the button to ensure both links lead to the cart.