On this page
What this issue is
Review markup describes one review of an item. AggregateRating describes the average of many ratings, for example 4.6 out of 5 from 128 reviews. Both are types from schema.org, a shared vocabulary that search engines read. Most sites add them as JSON-LD, a block of JSON inside a <script type="application/ld+json"> tag.
| Type | Required properties | Common mistake |
|---|---|---|
| AggregateRating | ratingValue, and ratingCount or reviewCount, plus the item name | Sending only ratingValue, or reviewCount as 0 |
| Review | author (with name), reviewRating.ratingValue, and the item name | Author left empty or set to a generic value |
| Parent item | Review or AggregateRating must sit inside the item, such as Product, via review or aggregateRating | Rating floating on its own with no itemReviewed |
| Scale | bestRating and worstRating if the scale is not 1 to 5 | A 10-point score without bestRating |
Why it costs you leads or sales
Example: illustrative numbers only. A listing with valid star snippets can earn a higher click-through rate than a plain one.
How to check if your site has it
Run the Rich Results Test
Open Google's Rich Results Test, paste a product page URL and run it. Look for 'Review snippets' or 'Product snippets' in the results. Open each item to see errors (red) and warnings (orange).
Check the Schema Markup Validator
Use validator.schema.org to see all schema types on the page, including ones Google does not use for rich results.
Open Search Console
Go to Enhancements and look at Review snippets, Product snippets and Merchant listings. Errors list affected URLs and the missing field.
View the page source
Search the source for
aggregateRatingand"@type": "Review". If neither appears, the markup is missing or loaded only by scripts the test cannot see.Compare with the visible page
The rating value and count in the code should match the stars and review count shown to visitors.
- Customer leaves reviewReview is saved on your site
- Schema outputratingValue or reviewCount missing
- Google validationMarkup rejected
- Star snippetNot shown in results
The break is at validation, so everything after it is lost.
How to fix it
Use your product or SEO plugin
WooCommerce outputs Product schema with reviews when product reviews are enabled (WooCommerce > Settings > Products > Enable product ratings and reviews). SEO plugins such as Yoast WooCommerce SEO or Rank Math also add it.
Avoid duplicates
If a theme, a reviews plugin and an SEO plugin all print schema, turn off all but one so the rating is not output twice.
Retest
Run the page in the Rich Results Test and check ratingValue and reviewCount.
Check your reviews app
Most reviews apps have a setting for rich snippets or SEO markup. Make sure it is on and that the app is not clashing with your theme.
Look in the theme code
Search the theme for
aggregateRating. If the theme and the app both output it, remove one version in the product template or turn off the app's output.Retest
Test a product URL after the change. Cached pages may take a short time to update.
Prefer server-rendered markup
Injecting JSON-LD through a Custom HTML tag can work, but values must come from the real page. Hard-coded ratings in GTM drift out of date.
Read values from the page
Use a variable that reads the rating and count from the page, then build the JSON-LD in a Custom HTML tag that fires on product pages.
Test in Preview
Use Preview mode, then run the live URL through the Rich Results Test to confirm Google sees it.
Add code to the template
In the CMS collection page settings, open Custom Code and add the JSON-LD in the head, inserting CMS fields for name, rating and count.
Use real values only
Bind the fields to your review data. Do not paste a fixed rating on every page.
Publish and test
Publish the site, then test a live URL.
Use the built-in app where possible
Wix Stores and Wix reviews apps can output product markup. Check the app settings first.
Add custom markup if needed
In the page's SEO panel, open Structured data and add a JSON-LD block for the page.
Test the live URL
Publish and run the URL through the Rich Results Test.
Check product pages
Squarespace adds basic Product markup, but it may not include ratings from third-party review tools.
Inject JSON-LD
Add a code block or use Settings > Advanced > Code Injection for markup on specific pages, with real values.
Test
Run the live page through the Rich Results Test.
Generate JSON-LD from your data
Build the script tag on the server from your review database so the numbers always match the page.
Nest the rating in the item
Place aggregateRating inside the Product (or other supported type), not on its own.
Validate
Run it through the Rich Results Test and the Schema Markup Validator.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Trail Running Shoes",
"image": "https://www.example.com/images/shoes.jpg",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.6",
"reviewCount": "128",
"bestRating": "5",
"worstRating": "1"
},
"review": {
"@type": "Review",
"author": { "@type": "Person", "name": "Sam P." },
"reviewRating": {
"@type": "Rating",
"ratingValue": "5",
"bestRating": "5"
},
"reviewBody": "Great grip and comfortable on long runs."
}
}
</script>Invalid
- aggregateRating has ratingValue but no reviewCount
- Rating sits outside the Product
- Two plugins print different values
Valid
- ratingValue and reviewCount present and match the page
- Rating nested inside the Product
- One source of markup
How to confirm it's fixed
- The Rich Results Test shows the page as eligible with no red errors
- ratingValue and reviewCount match what visitors see
- Only one AggregateRating appears in the page source
- Search Console Validate fix has been started for the affected report
- You rechecked a few different product URLs, not just one
How to prevent it happening again
- Pick one source of review markup and disable the others
- Retest a sample product page after theme, plugin or app updates
- Check the Search Console Enhancements reports every month
- Never hard-code a rating that is not tied to real review data
- Keep reviews visible on the same page as the markup
How FunnelGuard handles this
Questions people ask
Why are my review stars not showing in Google?
Common causes are missing or invalid AggregateRating markup, a rating that does not match the visible reviews, or ineligible content such as a business reviewing itself. Even valid markup does not guarantee stars, because Google chooses when to show them. Test the page in the Rich Results Test first.
What fields does AggregateRating need?
You need ratingValue and a count, either ratingCount or reviewCount. It must also sit inside the item being rated, such as a Product, which needs a name. If your scale is not 1 to 5, add bestRating and worstRating.
How do I add review schema to my website?
Use your reviews app, e-commerce platform or SEO plugin if it outputs markup, or add JSON-LD in a script tag with type application/ld+json. Fill it with real values from your review data. Then test the page with the Rich Results Test.
Can I add AggregateRating to my homepage or my own business?
Not for star snippets. Google does not show review rich results when a business marks up reviews about itself on its own Organization or LocalBusiness pages. Use it on pages for products, books, recipes and other supported items instead.
Do the ratings in my schema have to match the page?
Yes. The rating value, count and reviews in your markup should match what visitors can see on that page. Hidden, invented or copied ratings can trigger a manual action under Google's structured data policies.
Why does Search Console say 'Missing field reviewCount or ratingCount'?
Your AggregateRating has no count of ratings. Add either reviewCount or ratingCount with a real number above zero, then validate the fix in Search Console.
Does FunnelGuard check review schema?
No. FunnelGuard does not check review or AggregateRating markup yet, though it may be added later. Use Search Console and the Rich Results Test to monitor it, and use FunnelGuard for journey, tracking and lead delivery checks.
Related issues
- SEO-210Product schema missing on product pagesFix guide
- SEO-216Self-serving review markup on LocalBusiness/Organization (ineligible)Fix guide
- SEO-217Fake or marked-up reviews not shown on the page (spam policy)Fix guide
- SEO-223JSON-LD syntax errors (trailing commas, unescaped quotes)Fix guide
- SEO-224Required properties missing (name, image) causing errors in Search ConsoleFix guide
- SEO-225Duplicate conflicting schema from theme and pluginFix guide