How to Fix 'aggregateRating' Errors Without Removing Ratings Data
By Ryan York•
Learn how to resolve aggregateRating errors in your Product or LocalBusiness schema without losing valuable ratings data.
How Can You Fix 'aggregateRating' Errors in Schema.org Without Losing Ratings Data?
aggregateRating errors are common in Product and LocalBusiness schema. Removing ratings data is not the solution! This guide shows how to fix these errors while keeping your ratings visible in search.
Common aggregateRating Errors
- Missing required properties (e.g.,
ratingValue,reviewCount) - Incorrect nesting of
aggregateRating - Using
aggregateRatingwithout any reviews
Example of an Error
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Widget A",
"aggregateRating": {
"@type": "AggregateRating"
}
}
Problem: Required properties are missing.
How to Fix
Add all required properties to aggregateRating:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Widget A",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.5,
"reviewCount": 27
}
}
Best Practices
- Always include
ratingValueandreviewCount - Only use
aggregateRatingif you have actual ratings - Validate your schema with Google's Rich Results Test
Conclusion
Fixing aggregateRating errors ensures your ratings appear in search and improves your product's credibility.