Skip to main content

Hello, 

 

I want to add a dynamic image into a sunset flow e-mail that displays the main image of one of the items purchased in the past by the recipient. Which Dynamic variable or dynamic URL should I be using for this? (Is it even possible to do this?)

Thank you!

(I’m fairly new as you might be able to tell). 

James

Answer:

Yes, it is definitely possible to display a dynamic image of a previously purchased item in your Klaviyo flow email.

To achieve this, you can use dynamic event data passed through Klaviyo’s event-triggered emails. Specifically:

  1. Event Data Reference: When a purchase event occurs (e.g., Placed Order), Klaviyo stores key product attributes like the item name, price, and image. For example:

    • {{ event.Items.0.ImageURL }} (displays the main image of the first item in the order)
    • {{ event.Items.0.ProductID }} or {{ event.Items.0.Name }} for product reference.
  2. Access the Image URL: In your email template (within a dynamic block or an image block), use the variable for the image URL:

    • {{ event.Items.0.ImageURL }}
      Replace 0 with 1, 2, etc., if you need to access subsequent items in the order list.
  3. Dynamic Content: Ensure the flow is triggered by a purchase event. This way, the dynamic variable can automatically populate the image of an item from the past purchase history.

If you don’t have the required data like ImageURL in your event payload, you may need to ensure your integration (e.g., Shopify, custom API) is configured to pass product image URLs as part of the event data.

Let me know if you need further clarification or help setting this up! 😊


Oh, so it’s not possible to link to a previously purchased product if the trigger is them being added to a segment (for a winback campaign for example)?


Reply