Short answer: AggregateRating is the schema.org type for an average rating worked out from many individual ratings or reviews. It says, for example, "4.6 out of 5, from 38 reviews". Google's review snippet documentation requires ratingValue and either ratingCount or reviewCount, and it must describe a specific item, which on Shopify means nesting it inside the Product. It can make a product page eligible for review stars, but only if the rating is real, visible on the page and about that product.
The properties of AggregateRating
| Property | What it means | |
|---|---|---|
ratingValue | The average rating, such as 4.6 | Required |
ratingCount | How many ratings the average is based on | One of these two is required |
reviewCount | How many reviews (ratings with written text) it is based on | One of these two is required |
bestRating | The top of the scale. Google assumes 5 if it is missing | Recommended if your scale is not 1 to 5 |
worstRating | The bottom of the scale. Google assumes 1 if it is missing | Recommended if your scale is not 1 to 5 |
itemReviewed | The thing being rated | Required only when the rating is not nested inside that thing |
ratingCount or reviewCount? Many review apps let customers leave a star rating without writing anything. If you count every rating, use ratingCount. If you count only reviews with text, use reviewCount. You can include both if both numbers are shown on the page. Whichever you use, the number should match what shoppers see.
Where AggregateRating goes on a Shopify product page
AggregateRating does not stand alone on a product page. It sits inside the Product as the value of its aggregateRating property, so itemReviewed is not needed:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Blue Linen Shirt",
"offers": { "@type": "Offer", "price": "45.00", "priceCurrency": "GBP" },
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.6,
"ratingCount": 38,
"bestRating": 5,
"worstRating": 1
}
}
The important word is inside. A common Shopify pattern is a review app adding a second Product block that holds only the rating, while the theme's Product block holds the price. Google then sees two Product items, neither complete. Better is one Product block that contains the offer and the rating together. See duplicate Product schema for how to get there.
Property-level mistakes that stop it working
- A rating with no reviews.
"ratingValue": 0with a count of 0 on products that have no reviews. Leave aggregateRating out until a product has at least one rating. - A value outside the scale. A
ratingValueof 9 with nobestRatingreads as 9 out of 5. If your app rates out of 10, say so withbestRating. - A decimal comma.
4,6is not a valid JSON number and may not be read as 4.6. Use a full stop. - A count that does not match the page. The markup says 38 reviews, the widget says 41. Usually a cached value from an app; the numbers should agree.
- A rating about the shop, not a product. An AggregateRating on your Organization is treated by Google as self-serving and does not get stars.
Broader rules, such as which reviews count and why reviews imported from other sites do not, are in our guide to review and AggregateRating schema on Shopify.
How to check your AggregateRating
Pick one product with reviews and one without, and run both through Google's Rich Results Test. The product with reviews should show one Product item with the rating inside it. The product without reviews should show no aggregateRating at all, rather than a zero rating. If Search Console shows "Missing field aggregateRating" as a warning, that is a non-critical suggestion, not an error; see missing field review and aggregateRating.
Schema Clinic's audit validates aggregateRating as part of Product markup and flags duplicates where the rating sits in a separate block from the offer, with the source of each block. On Pro ($19.99/month) its generator adds aggregateRating to Product where review data exists. Starter is $9.99/month; there is no free plan or trial.