How do I set up AggregateRating
when the object is not rated yet (ratingValue
= 0)?
My current setup is:
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="ratingValue" content="0" />
<meta itemprop="bestRating" content="5" />
<meta itemprop="worstRating" content="1" />
<div itemprop="ratingCount">0</div>
</div>
When I check the Microdata with the Google Testing Tool I get an error "Failed to standardize the rating value". Do I just have to set worstRating
to 0? Or is there an other way to tell that there’s no rating yet?
If you're receiving the Either “offers”, “review”, or “aggregateRating” should be specified error on your WooCommerce category pages, there is a fairly simple fix: Remove the product schema markup from the Shop and Product Category pages.
Related Definitions Aggregate Rating means the limit of the dollar value of all contracts, public and private, that a firm may perform at any given time.
Fill out the properties form so that the content is consistent with the information on your page. Under Product Properties, click on the plus sign next to the Aggregate Ratings line to bring in the fields. It will then ask you for: rating value.
The schema specifically states that ratingValue
is of type text
, whilst bestRating
and worstRating
are text/number
. This suggests you could put anything into ratingValue
, even "not ranked". However, how Google would interpret that is up to debate.
However it seems to me the ACTUAL CORRECT way to implement this is to only give an aggregateRating
where ratingCount
> 0.
Simply omit the ratings when there are no ratings.
Well, I guess it does not make sense to specify a ratingValue
of 0
if the worstRating
should be 1
:
worstRating
must be the "lowest value allowed in this rating system", which would be 0
in your case.
A ratingValue
of 0
does not mean that there are no votes yet (i.e., 0
has not a special meaning), as 0
is certainly a valid rating value (some rating systems allow this).
So either set worstRating
to 0
, or omit ratingValue
for items not rated yet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With