support@schemaclinic.com Free JSON-LD checker Free schema generator Shopify App Store
Schema guide

What is AggregateRating schema?

AggregateRating is the small object behind review stars in search results. Here is what it contains, how each property works, and the property-level mistakes that make Google ignore it.

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

PropertyWhat it meansGoogle
ratingValueThe average rating, such as 4.6Required
ratingCountHow many ratings the average is based onOne of these two is required
reviewCountHow many reviews (ratings with written text) it is based onOne of these two is required
bestRatingThe top of the scale. Google assumes 5 if it is missingRecommended if your scale is not 1 to 5
worstRatingThe bottom of the scale. Google assumes 1 if it is missingRecommended if your scale is not 1 to 5
itemReviewedThe thing being ratedRequired 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": 0 with 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 ratingValue of 9 with no bestRating reads as 9 out of 5. If your app rates out of 10, say so with bestRating.
  • A decimal comma. 4,6 is 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.

Questions people ask

What is the difference between AggregateRating and Review?
AggregateRating is the overall average and count, such as 4.6 from 38 ratings. Review is one individual review with an author and its own rating. A Product can have both.
Is AggregateRating required for Product schema?
No. A Product needs at least one of offers, review or aggregateRating. A Shopify product page with a valid Offer meets that without any rating.
Do I need bestRating and worstRating?
Only if your scale is not 1 to 5. Google assumes 5 and 1 when they are missing, which suits most Shopify review apps.
Should ratingValue be a number or text?
Either works in schema.org. A JSON number such as 4.6 is cleanest. If you use text, still use a full stop for decimals.
Will AggregateRating get my products stars in Google?
It makes them eligible if the rating is real, visible on the page and about that product. Google decides whether to show stars for each search.

See what Google sees on your store

Run an audit in minutes. Every schema block, every error and duplicate, with its source.

Install Schema Clinic