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

Estimated 3 minute read
|
Updated Nov 1, 2024, 7:02 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. Learn more about dynamic review blocks

This article specifically covers dynamic review blocks with the following settings: 

  • Quote selection: Dynamic
  • Prioritize recent quotes from: Either (Featured reviews or High-rated reviews)
  • Product selection: Automatic

Review quote blocks with any other settings 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. To add this block to your email:

  1. Navigate to a flow email. 
  2. Drag a Review quote block into the email.
    A review quote block
  3. Click Add review quote
  4. Choose Dynamic
  5. Under Prioritize recent quotes from, choose Featured reviews or High-rated reviews. If you choose Featured reviews, make sure you’ve featured one or more reviews for the product(s) you intend to highlight. 
  6. Under Product selection, choose Automatic
  7. Select a product ID variable from the table below, based on your flow trigger. 
  8. Add the product ID variable to the Event variable for product ID field. 
  9. If desired, adjust the format in the Review formats section, or change the colors, fonts, and sizes in the Styles tab. 
  10. Click Done
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