Structured_data should add support for rating

Hi,

All our themes are using the new structured_data filter to generate schema.org data (Liquid filters: structured_data).

However, this filter does not currently generate the aggregate rating part. The product rating and product rating count being standardized metafield definition (List of standard metafield definitions) it would be nice if Shopify could automatically add them if available.

At support we’re seeing quite a few merchants trying to add this by themselves but this does not offer a great user experience.

Thanks.

2 Likes

Hey again @bakura10 Are you referring to the structured_data Liquid filter doc (link)?

It doesn’t look like the filter auto-includes aggregateRating, only Product/ProductGroup and Article, so I believe that merchants would still need either a reviews app or a small JSON‑LD snippet using reviews.rating and reviews.rating_count. Just wanted to reach out here to confirm if that’s the feature you’re requesting, , more than happy to pass it to the product team as always if this is the case :slight_smile:

Yes, this is this one :). Those metafields being standard metafields, this means that most review app are using those metafields to store the rating. It would be nice if those info would be added conditionally to the structured_data filter so that merchants do not have to add it manually (it is actually not that easy for non-technical merchants).

Thanks again as always @bakura10 ! I’ll get in touch with some folks internally on my end here and loop back with you, even if it’s just to confirm I’ve passed along a feature request. Speak with you as soon as I have more to share on my end.