In AnQi CMS, cleverly integrate user reviews and ratings information into JSON-LD structured data

As an experienced website operations expert, I am well aware of the importance of structured data in the context of today's search engine optimization (SEO).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 reviews directly in search results. This is undoubtedly a good way to increase click-through rates and user trust.The AnQiCMS (AnQiCMS) provides a solid foundation for our goal with its SEO-friendly design and high customizability.

Today, let's delve into how to integrate the website's users in AnQi CMSreviews(Comment)orrating(Rating)information, elegantly and efficiently embedded in the Json-LD structured data.

Understanding evaluation and rating in Json-LD

In JSON-LD, user reviews and ratings are usually represented byAggregateRating(Aggregate Rating) andReview(Single Review) types.

  • AggregateRating:represents 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 reviews),bestRating(highest score) andworstRating(Minimum score)and other properties.
  • Review: Represents a specific comment submitted by the user. It includesreviewRating(the star rating of this comment),author(the reviewer),datePublished(the publish date),reviewBody(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商家) evenService(Service) etc. In the Anqi CMS, documents("archive) are usually the core carriers for carrying these evaluation and rating information.}

How does AnQi CMS support custom Json-LD?

AnQi CMS's template system provides strong flexibility, especially through{% jsonLd %}Tags, we can highly customize the output Json-LD content.The cleverness of this label lies in its ability to allow us to merge custom Json-LD snippets 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, giving us great control.

This means, we do not need to modify the core code to accurately inject what we want on pages that require displaying comments and ratings (usually product detail pages or article detail pages)