-
Good morning,
We switched from Yoast SEO to Rank Math on Wednesday 23 April. All was well until our products started being flagged in Google Search Console as having no ‘review’ and no ‘aggregateRating’.
We use Feefo to collect our product feedback, which worked with the Yoast plugin.
I came across this article and followed section 5 to the letter: https://rankmath.com/kb/aggregate-rating-error/ however, this did not fix the issue and instead made our website very unhappy.
I used the following:
add_filter(‘rank_math/snippet/rich_snippet_product_entity’, function ($entity) {
$score = get_post_meta(get_the_ID(), ‘rating.rating’, true);
$count = get_post_meta(get_the_ID(), ‘rating.product.count’, true);
$entity[‘aggregateRating’] = array(
‘@type’ => ‘aggregateRating’,
‘ratingValue’ => $score,
‘ratingCount’ => $count,
);
return $entity;
});Based on this Feefo article: https://help.feefo.com/knowledge-base/product-schema-implementation
But it doesn’t look like this is working.
Have I done the correct snippet? Not showing our reviews on Google is a huge issue for us as an ecommerce company that run multiple shopping campaigns…
Thanks,
Rebecca
The ticket ‘Rank Math x Feefo product ratings’ is closed to new replies.