How to fix invalid rating value on Squarespace
Fix the AggregateRating.ratingValue in your structured data so it is a valid number between 1 and 5 (or your declared scale's minimum and maximum).
Steps for Squarespace
- Squarespace automatically generates product structured data including AggregateRating. If you see an invalid ratingValue it is most likely caused by a Code Injection block containing custom JSON-LD that overrides or conflicts with Squarespace's native output.
- Go to Settings → Advanced → Code Injection (site-wide) and Pages → (individual page) → Advanced → Page Header Code Injection. Search for any JSON-LD blocks containing 'ratingValue' and correct or remove them.
- If you have a third-party reviews block or app embedded on product pages, check its documentation for a 'rich snippets' or 'structured data' setting — disable it if Squarespace's native schema is already active.
- Squarespace's native AggregateRating is only output when there are actual published reviews on the product; no fix is needed beyond ensuring reviews are present and approved.
- After any code injection changes, use the Google Rich Results Test on the product URL to confirm the structured data is valid.
What is invalid rating value?
Structured data is hidden code on your product pages that tells search engines facts about your store — things like star ratings, prices, and product names. The `AggregateRating` block specifically communicates your average customer rating. The `ratingValue` field inside that block must be a real number (e.g. 4.3) that falls between the declared minimum and maximum rating values — typically 1 to 5. When it is missing, set to 0, left blank, or formatted incorrectly, search engines consider the entire rating block invalid.
A valid `AggregateRating` is what earns you gold star snippets in Google Search results — those eye-catching stars visible directly on the results page before a shopper even clicks. Stores with star snippets consistently see higher click-through rates, which drives more organic traffic and sales. An invalid or zero `ratingValue` means Google ignores your rating markup entirely, stripping those stars from your listing and handing the visual advantage to competitors. For Answer Engine Optimisation (AEO), valid rating structured data also influences how AI-powered answer engines and shopping assistants surface and rank your products in direct answers.
See the complete Invalid rating value guide for every platform and the full background.
Not sure if your Squarespace store has this?
Run a free SEOLZ scan — we’ll find invalid rating value and every other issue across your whole site.
Scan my site free