Why it matters
- Stars beside a product in search results come from its rating markup. Google ignores a rating it cannot read as numbers, and a rating with no review count is not eligible.
- A store with Arabic numerals in its markup (
٤٫٥) shows the right stars on the page and none in Google, because JSON-LD wants digits 0–9 and a full stop. - A rating outside its scale, or an aggregate of zero reviews, is wrong data in the markup, which Google's guidelines tell sites not to give.
Example
"aggregateRating": { "@type": "AggregateRating", "ratingValue": "٤٫٥", "reviewCount": "128" }
"aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.5", "reviewCount": "128" }
How to fix
Write the numbers as the data holds them, not as the page shows them:
json
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.5",
"reviewCount": "128"
}- Print
ratingValue,bestRating,worstRating,reviewCountandratingCountfrom the stored number, not from the formatted text on the page. - The scale is 1 to 5 unless you say another with
worstRatingandbestRating. - Remove the
aggregateRatingblock while a product has no reviews.
How we detect
- On a page that describes a product, we read every
AggregateRatingandRatingin its JSON-LD (including a review'sreviewRating). - For each we read
ratingValue,bestRating,worstRating,reviewCountandratingCount: a value is a number when it is a JSON number or a text of digits 0–9 with an optional full stop. Eastern Arabic digits, a comma, and any other text are not. - A
ratingValueoutsideworstRatingtobestRating(1 to 5 when not given) is out of range. An aggregate rating needsreviewCountorratingCount, which must be at least 1.