In AnQi CMS, ingeniously integrate user reviews and rating information into Json-LD structured data
As an experienced website operations expert, I am well aware of the importance of structured data in today's search engine optimization (SEO) context.It not only helps search engines understand web content more accurately, but also helps our website win attractive 'rich snippets', such as displaying product star ratings or the number of user comments directly in search results, which is undoubtedly a way to increase click-through rates and user trust.AnQiCMS (AnQiCMS) provides a solid foundation for us to achieve this goal with its SEO-friendly design and high customizability.
Today, let's delve into how to integrate user information in AnQi CMS, on the website,reviewsOr (comment)ratingInformation, elegantly and efficiently embedded in Json-LD structured data.
Understanding ratings and reviews in Json-LD
In Json-LD, user ratings and reviews are typically represented throughAggregateRating(aggregated ratings) andReview(single reviews) types.
AggregateRatingRepresents the overall average rating and total number of reviews for an item (such as a product, article, or service). It usually includesratingValue(average score),reviewCount(Total number of comments),bestRating(highest score) andworstRating(lowest score) among other attributes.ReviewIt represents a specific comment submitted by the user. It includesreviewRating(the star rating of this comment),author(the reviewer),datePublished(Publish date),reviewBody(the comment content) and other properties.
Based on the actual content of our website, this information can be applied to various Schema types such asProduct(Product),Article(Article),LocalBusiness(Local business) evenService(Services) et al. In AnQi CMS, documentsarchiveare usually the core carriers for carrying these evaluation and rating information.
How does AnQi CMS support custom Json-LD
The AnQi CMS template system provides powerful flexibility, especially through{% jsonLd %}Label, we can highly customize the output Json-LD content.The cleverness of this tag lies in the fact that it allows us to merge custom Json-LD fragments with the structured data generated by the system.If the custom field conflicts with the default field, the custom field will take precedence over the default value, which gives us great control.
This means, we do not need to modify the core code to accurately inject what we want in the pages where comments and ratings need to be displayed (usually product detail pages or article detail pages)