> For the complete documentation index, see [llms.txt](https://docs.roadmap.so/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roadmap.so/reviews/storefront-and-display/the-top-reviews-product-metafield.md).

# The top reviews product metafield

Roadmap writes each product's best reviews to a Shopify product metafield that feeds the page's review structured data. What it holds and when it updates.

Roadmap writes each product's best reviews to a **metafield on the Shopify product**, and uses it to put your reviews into the product page's review schema: the structured data that search engines and AI assistants read.

So a product page carries two versions of your reviews. The review widget is the one shoppers see. This metafield is the one machines see.

### What it is for

Its main job is the review structured data on the product page. That is how Google and AI tools pick up the reviews attached to a product, separately from anything rendered in the widget.

It is also plain JSON sitting on the product, so a theme, a section or a snippet can read it directly if you want to display review content of your own.

{% hint style="warning" %}
If the metafield is missing from a product, that product's reviews are absent from its structured data, even though the widget still displays them perfectly. Nothing looks broken on the storefront, which is exactly what makes this easy to miss. Running a sync fixes it, see **Force a resync** below.
{% endhint %}

### Where to find it

On any product in your Shopify admin, open the product and scroll to **Metafields**. The field is:

```
Roadmap_review.topReviews
```

It holds JSON. Roadmap keeps the product's average rating and its review and question counts on the same product, as their own metafields.

<figure><img src="https://393112916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJ8asLD4FVCFagK40xEr4%2Fuploads%2FQu2Kc84ZjXDGOvdrE5W2%2FScreenshot%202026-10-30%20at%2012.59.04%E2%80%AFPM.png?alt=media&amp;token=52363055-322f-4683-a02a-cfc1087da3fe" alt=""><figcaption></figcaption></figure>

### What it holds

Up to **10 reviews**. Each entry carries:

* the author name
* the star rating
* the review title
* the review body
* the date submitted
* whether the review is a verified purchase

Review bodies are cut at 1,000 characters, so a very long review appears trimmed here even though the widget shows it in full.

{% hint style="info" %}
Review IDs, review images and your store replies are **not** included. If you need those on the storefront, use the review widget rather than this metafield.
{% endhint %}

### How pinned reviews set the order

This is the part worth understanding, because [pinning](https://docs.roadmap.so/reviews/managing-reviews/pin-reviews-to-feature-them.md) is how you control it. The reviews you pin are the ones most likely to be picked up for that product.

**Pinned reviews come first, in the order you arrange them.** You decide that order, so it is not simply the order you pinned them in. The slots left over are filled with the newest unpinned reviews.

So on a product with 3 pinned reviews, slots 1 to 3 are your pinned ones in your order, and slots 4 to 10 are the 7 most recent of everything else.

Pin nothing and the metafield is simply the 10 newest reviews.

{% hint style="warning" %}
The cap of 10 applies to pinned reviews as well. Pin more than 10 and only the first 10 in your order appear, the rest are left out, and no unpinned reviews make it in at all. If you pin heavily, the order you set is doing all the work.
{% endhint %}

### Which reviews qualify

* Only **published** reviews are included.
* Only reviews with a **star rating**. Questions are left out.
* **Store reviews** are left out. This is product review content only.

If you use [Shared Reviews](https://docs.roadmap.so/reviews/managing-reviews/shared-reviews.md), a product in a review group draws from the whole group's pool, the same way the widget does.

### When it updates

Roadmap writes the metafield at two kinds of moment.

**When a product's reviews change.** A review is published, pinned, unpinned, reordered, or has its state changed. Only that product is rewritten.

**When the whole store syncs.** This happens after a review import finishes, after a change to a review group, and whenever you click **Sync review metafields**. New products pick the field up as they sync in.

A product whose reviews have not changed in a long time, in a store that has not been synced, may not have the field yet. Nothing is wrong with the reviews themselves, it simply has not been written.

### Force a resync

Go to **Reviews**, open the **Actions** menu, click **Settings**, then click **Sync review metafields**.

This writes the metafield for every product in the catalogue. A few things worth knowing:

* Products with no reviews get an **empty list**, which is a valid result rather than a missing field.
* Products that already have the metafield are left exactly as they are.
* It takes a few seconds on a typical catalogue.

It is worth running once if you have been collecting reviews for a while and have never synced, and again after any bulk change to reviews made outside the app. Since this field is what exposes your reviews to search engines, a product missing it is quietly getting none of that benefit.

### Related guides

* [Pin reviews to feature them](https://docs.roadmap.so/reviews/managing-reviews/pin-reviews-to-feature-them.md)
* [Shared reviews across products](https://docs.roadmap.so/reviews/managing-reviews/shared-reviews/shared-reviews-across-products.md)
* [Import reviews to Roadmap with CSV template](https://docs.roadmap.so/reviews/migration-to-roadmap/import-reviews-to-roadmap-with-csv-template.md)
* [Edit your PDP review block](https://docs.roadmap.so/reviews/storefront-and-display/edit-your-pdp-review-block.md)
* [Add reviews to product pages](https://docs.roadmap.so/reviews/storefront-and-display/add-reviews-to-product-pages.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.roadmap.so/reviews/storefront-and-display/the-top-reviews-product-metafield.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
