You will learn
Learn how to use metafields to customize Klaviyo Reviews content on your site. Metafields are Shopify’s tool for storing custom variables for use across your site, including on product pages.
This resource is intended for developers. Using Shopify metafields requires familiarity with Liquid, Shopify’s templating language. You can display reviews on your site without coding by using the customizable review widgets.
Klaviyo Reviews metafields for Shopify are enabled by default. Metafields are not available for WooCommerce.
About review metafieldsAbout review metafields
Inserting metafields directly into a product page will display the variable stored within the metafield. If you add {{ product.metafields.reviews.rating.value }} to your product page, and that product’s rating is 4.7, “4.7” will appear in place of the metafield upon page load.
You can also use metafields for more complex work, including:
- Allowing other Shopify apps to access and use Klaviyo Reviews data on your site.
- Dynamically display content for products with certain ratings using conditionals.
- Code your own star rating display, rather than using the Klaviyo Reviews star rating widget.
In your Shopify Product metafields definitions page, the Klaviyo Reviews metafields are named Product rating count and Product rating.
Add review metafields with the theme editorAdd review metafields with the theme editor
If your theme supports adding metafields, use the dynamic source icon to add reviews metafields. Adding reviews metafields with the theme editor is supported in the product info section of a product page.
- Navigate to a product page.
- Open (or add) a field that supports text.
- Select the dynamic source icon.
- Select a reviews metafield.
- Click Save.
Add review metafields with custom liquid
The following metafields can be used on product pages and within product objects (e.g., within a product tile on a collection page). They are not supported outside of product objects (e.g., your About page).
Metafield |
Content |
Data type |
{{ product.metafields.reviews.rating.value }} |
A product’s average rating. |
Float (e.g., 3.5, 4.7) |
{{ product.metafields.reviews.rating_count }} |
The number of ratings submitted for a product. |
Integer (e.g., 10, 45, 721) |
{{ product.metafields.reviews.rating.scale_min }} |
The lowest possible rating (i.e., 1). |
Integer; always 1 |
{{ product.metafields.reviews.rating.scale_max }} |
The highest possible rating (i.e., 5). |
Integer; always 5 |
Disable review metafields
Review metafields are enabled by default. To disable metafields:
- Navigate to the Reviews tab in Klaviyo.
- Select Reviews settings.
- Select General.
- Under Shopify, toggle off the setting labeled Sync review metafields to Shopify.
- Click Save changes.