GuidesSchema and rich snippets

Product review schema: the complete setup guide for Shopify (2026)

Product, Review and aggregateRating markup is what makes a product eligible for stars in Google. How it nests, where Shopify themes and review apps each write part of it, and why a pass in Google’s test is not the end of the check.

The short answerProduct review stars need three schema types nested together. A Product holds an aggregateRating and at least one Review. On Shopify the theme usually writes the Product and the review app adds the rating, so check that you end up with one Product, not two. The reviews you mark up must be visible on the page. Never mark up reviews of your own store. Then check the raw page source as well as the Rich Results Test, because the test runs scripts that many crawlers do not.

Which schema types do product review stars need?

Product review stars need a Product with an aggregateRating, and ideally a Review, inside it. The Product describes the item. The aggregateRating carries the average score and the number of ratings. Each Review carries one customer’s rating, name and words.

The stars come from the aggregateRating. Adding at least one Review gives the number a real voice behind it.

  1. Product, with at least a name. The stars attach to this.
  2. aggregateRating, with ratingValue and either reviewCount or ratingCount.
  3. Review, with an author and a reviewRating that has its own ratingValue.
  4. bestRating on the rating if your scale is not out of 5.

How do the three types nest in JSON-LD?

They nest as a tree, with the Product at the top. Use one JSON-LD script with "@type": "Product". Give it a name. Inside it, add an "aggregateRating" object and a "review" property, which is a list if you include several.

Keep the rating and reviews inside the Product’s braces, not as separate blocks. That way Google reads them as belonging to that one item.

Where does the schema come from on a Shopify store?

It usually comes from two places, the theme and the review app. Dawn and many other themes print the product’s schema with Shopify’s structured_data filter. That filter writes a Product, or a ProductGroup when the product has variants, with price and stock. Shopify’s documented output has no rating and no reviews (Shopify dev docs, read 27 Nov 2026). The rating has to come from your review app.

Apps add it in different ways. Some add the rating to the theme’s Product. Some print a whole second Product block. Some add markup with a script after the page loads.

The second case is the common trap. You end up with two Product blocks for one item, one with a price and no rating, one with a rating and maybe no price. View the page source and count the blocks that say "@type": "Product" or "ProductGroup". You want one entity that carries both offers and aggregateRating.

How many Shopify stores have review schema at all?

Fewer than half of the stores we scanned with a review app. In our November scan, 55% of the stores we scanned with a review app had no Review or AggregateRating markup on the product page (23,103 of 41,938, BeyondReviews scan of 121,610 Shopify stores, Sep to Nov 2026). These stores had reviews to mark up. The code just was not in the page.

Paying for an SEO or schema app does not settle it either. Among stores that ran one of nine such apps and showed a review count, 38% still had no AggregateRating in the page we read (BeyondReviews scan of 121,610 Shopify stores, Sep to Nov 2026). A schema app can only mark up a rating it can reach. The full figures are in our Shopify reviews study 2026.

Do the reviews have to be visible on the page?

Yes. Google requires the reviews and ratings you mark up to be visible to a person on that page. A 4.8 average in the code, with no reviews on screen, breaks the rule and can cost you the stars.

This is the rule most Shopify setups bend without knowing it. Many stores load their reviews after the page arrives, through a script. A shopper sees them. Google may see them too, because it runs scripts. But the code and the visible reviews now come from two different moments, and they can drift apart. The safest setup prints the reviews and the markup from the same source, in the same page.

Is a pass in the Rich Results Test enough?

No, and this is the advice I disagree with most. Nearly every guide says to run the Rich Results Test and stop when it passes. That test renders the page and runs its scripts, as Google does. Google’s own guide on adding markup with JavaScript tells you to check it there.

So the test can pass markup that a script adds after the page loads. Many AI crawlers never see that markup. Vercel and MERJ found in December 2024 that none of the major AI crawlers run JavaScript. The exceptions were Gemini, which uses Google’s systems, and AppleBot. Run the Rich Results Test, then open View Page Source, not Inspect. Search for aggregateRating. If it is only in the test and not in the source, a script is writing it.

  1. In the Rich Results Test, check that Google accepts the markup.
  2. In View Page Source, search for aggregateRating to see if it is in the page as sent.
  3. In the same source, search for one review sentence to see if the text is there.
  4. Count the Product blocks. One is right.

What reviews am I not allowed to mark up?

You cannot mark up reviews of your own store and get product stars from them. Google says reviews a business controls about itself are not eligible for star results. Product stars are for customers’ reviews of the product on that page.

On Shopify this rules out a few shortcuts. Store reviews about your service, shown on a product page, do not count. Neither does one shop-wide average reused on every product.

  1. Customer reviews of the product on the page are allowed.
  2. Reviews of your store or brand, shown as product stars, are not.
  3. One site-wide average reused on every product page is not.
  4. Reviews in the markup that a shopper cannot find on the page are a risk.

What are the common validation errors?

Most errors are a missing value or markup that describes something the page does not show. Fix the red errors first, since they block the stars. Yellow warnings are recommended fields and will not block stars alone. Test again after every theme or app update, because an update can rewrite the block.

  1. "Either offers, review, or aggregateRating should be specified" means a Product block has no rating and no price. Often the app’s block is separate from the theme’s.
  2. A missing "name" on the Product leaves the stars nothing to attach to.
  3. Two Product items for one URL means the theme and the app each printed one.
  4. A ratingValue with no reviews visible on the page breaks the visible-content rule.

What does a clean setup actually require?

A clean setup has one Product, every required field filled, and visible reviews that match the markup. On Shopify the JSON-LD shape is rarely the hard part. The hard part is that the reviews live in a widget and never reach the page the markup describes.

Most review apps were built for the shopper on the page and stop there. Getting your reviews into the page, so the schema has real reviews behind it, is the gap BeyondReviews is built to close.

Frequently asked questions

Do I need both Review and aggregateRating?

For the stars you need aggregateRating, because Google draws them from the average and the count. Adding at least one Review is recommended, so the number has a real customer behind it. Both go inside the same Product.

Why are my stars not showing even though the schema validates?

Valid markup makes a page eligible, it does not force Google to show stars. Common causes are reviews that are not visible on the page, two Product blocks that disagree, or markup only a script adds. Also check the page source, because the Rich Results Test runs scripts that many crawlers do not.

Does Shopify add product review schema automatically?

Shopify adds the product part, not the reviews. Many themes print Product data with the structured_data filter, and its documented output has no rating. Your review app adds the rating. Check the page source for one Product that carries both the price and the aggregateRating.

What happens if my theme and review app both output Product schema?

You get two Product items for one product, often one with the price and one with the rating. Google may still read them, but you are telling it two stories. Merge them into one, or turn off the extra block, so one Product carries offers and aggregateRating together.

Can I mark up testimonials about my store as product reviews?

No. Google says reviews a business controls about itself are not eligible for star results. Product stars are for customer reviews of the product on that page.

All guides

Check it on your own store.

Paste your shop. The scan shows what Google and AI answers can read there.

Free, no account.