Cookbook/Reviews

=Publishing Review Data=

Overview
Relevance for Google and Yahoo Available vocabularies - Google and rev

Note: The Google documentation for RDFa currently uses the wrong property v:rating instead of v:average for the average rating, which can lead to incorrect star ratings in the preview. We have already asked them to fix this.

Important: The min/max values refer to the scale used for ratings in your shop system, NOT for the lowest/highest actual rating. So if you have zero reviews for an item and you are using a scale from 0 to 5, it would be


 * min (review:minRating) = 0
 * max (review:maxRating) = 5
 * mean (review:rating and v:average) = 0
 * number of reviews (review:totalRatings and v:count) = 0

RDFa


Product Reviews:

Average: 4.5, avg.: 0, max: 5 (count: 45 )

Recommendation: In your HTML template, you should include the review markup only if there is review data for this article, because Google will otherwise display zero stars, which may convey a worse reputation than no star rating.

The best approach is a conditional pattern, which could look like

{% if {review_count}>0 %} ... markup for the review data ... {% endif %}