How to choose a product ID variable for a dynamic review quote block

Estimated 3 minute read
|
Updated Jan 27, 2025, 6:55 PM EST
You will learn

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

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

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 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

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: 

  1. From your flow email, click Preview & test
  2. 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. 
  3. 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
  4. 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

Shopify product ID variables

Flow triggerEvent 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 inventoryevent.product_id 
Placed orderevent.extra.line_items.0.product.id
WooCommerce product ID variables

WooCommerce product ID variables

Flow triggerEvent variable
Browse abandonment event.ProductID
Abandoned cart (Add to cart trigger)event.ProductID
Abandoned checkout (Checkout started trigger)event.extra.Items.0.ProductID
Placed orderevent.extra.Items.0.ProductId
Additional resources

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.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
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