“Invalid object type for field "itemReviewed"”
The rating is on a type Google doesn't rate. Review stars only show for some types, like Product, Recipe, Course or SoftwareApplication.
What it means
The thing your review or rating is about has a type Google doesn't show stars for, or no type at all. Common culprits are WebPage, WebSite, Service, Thing and Brand. Google lists the types that can show stars: Book, Course, CreativeWorkSeason, CreativeWorkSeries, Episode, Event, Game, HowTo, LocalBusiness, MediaObject, Movie, MusicPlaylist, MusicRecording, Organization, Product, Recipe and SoftwareApplication, and their subtypes.
How to fix it
Move the rating onto the item the reviews are really about, with one of those types. For an online store that's almost always Product. Ratings of your business as a whole on your own site can't show stars at all (see self-serving reviews).
On Shopify
Some apps and page builders put a store-wide rating on a WebPage or Organization. On product pages the rating belongs on the Product.
Example
{
"@context": "https://schema.org",
"@type": "AggregateRating",
"itemReviewed": { "@type": "WebPage", "name": "Stoneware mug" },
"ratingValue": 4.8,
"reviewCount": 212
}
{
"@context": "https://schema.org",
"@type": "AggregateRating",
"itemReviewed": { "@type": "Product", "name": "Stoneware mug" },
"ratingValue": 4.8,
"reviewCount": 212
}
Check your page
Run your page through the checker to see whether this is the only thing standing between you and review stars.
Sources: Google's review snippet and product snippet documentation. Orankl isn't affiliated with Google.