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 begin

This block is only available in accounts that use Klaviyo Reviews. Learn how to get started with Klaviyo Reviews.

About 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 your flow’s trigger in a card under Product selection, 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

Preview your email after entering a product ID variable. An incorrect variable can prevent the email from being delivered.

The tables below offer common product ID variables. For a different event, find the product ID in its event data using these steps:

  1. From your flow email’s editor, click Preview.
  2. Under Event properties, click the property containing the product ID to copy its tag. Match the property’s capitalization exactly.
  3. For a tag such as {{ event.product.id|default:'' }}, remove the surrounding curly braces and the default filter, leaving event.product.id.
  4. Click Done to return to the editor, then select your review quote block. Under Product selection, paste the variable into the Product ID variable field. Click outside the field to apply it.
  5. Click Preview to check the variable. Use the arrows to check other recent events, if available. If Klaviyo reports that the review quote’s event variable is invalid, correct it before sending. Click Done to return to the editor.

For checkout and order events with multiple items, the variables in the tables below use .0 to select the first item. We recommend using the first item when entering a variable manually, because not every event contains a second, third, or later item.

Shopify product ID variables

Flow trigger

Event variable

Browse abandonment

event.ProductID

Abandoned cart (Added 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 (Added to Cart trigger)

event.AddedItemProductID

Abandoned checkout (Started Checkout trigger)

event.extra.Items.0.ProductID

Placed Order

event.extra.Items.0.ProductId

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Partners
Hire a Klaviyo-certified expert to help you with a specific task, or for ongoing marketing management.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type