You will learn
Learn how to select a product ID variable to display dynamic review quotes related to the products someone is interested in. These variables vary between events, so make sure to use the right variable for your flow.
Before you beginBefore you begin
This block is only available in accounts that use Klaviyo Reviews. Learn how to get started with Klaviyo Reviews.
About dynamic review blocksAbout dynamic review blocks
Dynamic review quote blocks can display different reviews depending on when the email is sent and what actions the recipient has taken, unlike static review blocks, which feature the same product for every recipient.
This article specifically covers dynamic review blocks, not static. Static review quote blocks do not require a product ID variable.
This process is only supported in certain flow emails: event-triggered flows, back in stock flows, low inventory flows, and price drop flows. Learn how to add a dynamic review block to your emails.
In many cases, Klaviyo will auto-detect the product ID. In these cases, you don’t need to manually choose a product ID variable. If you see a button like the one below indicating your flow’s trigger, that means Klaviyo will auto-detect your product ID, and you do not need to follow the steps outlined here.
However, for some custom flows, you may need to manually input a product ID variable. If you see the Product ID variable field shown in the screenshot below, follow these steps to add a variable.
Product ID variables
The table below offers the most common event variables used for review quote blocks. In addition to those in the table below, you can use any other event variable that references a product ID. To find a product ID variable other than those in the table below:
- From your flow email, click Preview & test.
- Click the event variable you’d like to use in your review quote block. When you click the variable name, the tag will be copied to your clipboard.
- Remove all extraneous information from the tag: the curly quotes that surround it and any filters, which follow the tag information. For example, if the original tag was {{ event.product.id|default:”” }}, remove everything from the tag except event.product.id.
- Paste this variable into the Event variable for product ID field.
If a trigger event contains multiple items (e.g., abandoned cart flows), only the first item is considered when choosing reviews. We do not recommend using the second, third, or any other items, because not every instance of the event will contain multiple items.
Shopify product ID variables
Flow trigger | Event variable |
Browse abandonment | event.ProductID |
Abandoned cart (Add to cart trigger) | event.ProductID |
Abandoned checkout (Checkout started trigger) | event.extra.line_items.0.product.id |
Back in stock | event.ProductID |
Price drop | event.product_id |
Low inventory | event.product_id |
Placed order | event.extra.line_items.0.product.id |
WooCommerce product ID variables
Flow trigger | Event variable |
Browse abandonment | event.ProductID |
Abandoned cart (Add to cart trigger) | event.ProductID |
Abandoned checkout (Checkout started trigger) | event.extra.Items.0.ProductID |
Placed order | event.extra.Items.0.ProductId |