What this writes
The generator nests the review or the aggregate rating on the item. Google says to omit itemReviewed when the review sits on the parent, because the parent is the thing being reviewed. A standalone review with a disconnected item is easier to get wrong, so this tool does not write that shape.
Supported item types are the ones Google lists for review snippets, including Product, Book, Movie, Recipe, Course, Event, SoftwareApplication, and HowTo. LocalBusiness, Restaurant, and Organization are in the list with a warning, because those stars are only for sites reviewing someone else.
How to add this markup
- Show the review or the average on the page, including the reviewer name and the scale.
- Pick the item type and enter the same numbers. Use a dot for decimals, as in 4.6.
- Clear the required warnings. A rating outside the best and worst values is left out.
- Copy the script into that item's page, not into every page of the site.
- Test the code, then the live URL, in Google's Rich Results Test.
Self-serving reviews
If you are the business, do not describe your own Google star rating with this markup. Ask customers for reviews on Google instead, and keep the on-page reviews for products or third parties. A product page can use the product schema generator, which can carry an offer and an aggregate rating together. The company itself belongs in the organization schema generator or the local business schema generator, without self-written stars.