Schema Product User Rating

#916890
  • Resolved Samrat
    Rank Math free

    I am using Schema for the product page, giving a rating on the review field. It shows on the page but Google is not showing it on its search results. I used the Schema Pro plugin before which accepts user ratings and Google shows on its search result page.
    Should I use another review plugin along with the Rank math product Schema?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Please share the affected product URL so we can check the schema as well.

    Meanwhile, please note that showing the details in the search results is completely up to Google. All you can do is submit the details using the structured data and wait for Google to decide to show it in the SERPs.

    “Google does not guarantee that your structured data will show up in search results, even if your page is marked up correctly according to the Structured Data Testing Tool.”

    Here’s a link for more information:
    https://developers.google.com/search/docs/guides/sd-policies

    Looking forward to helping you.

    Samrat
    Rank Math free

    For example, this product page https://www.mobiledor.com/tecno-spark-30-pro/ uses Schema markup and it shows Editor’s Rating. However, this rating is not shown on Google search for any of the products on this website.
    I think if we get user reviews/ratings then it will help as before shown on Google SERP by using the Schema Pro plugin.

    So is it possible to use another plugin to receive user ratings?
    Thanks.

    Hello,

    The review schema has already been added to the product you shared.

    However, Rank Math does not have a feature to accept a user’s rating on the front end.

    But, WooCommerce already has a built-in feature to accept ratings, and Rank Math will use that to add the review in the product schema:
    https://rankmath.com/kb/either-offers-review-or-aggregaterating-should-be-specified/#offers-review-aggregateRating

    Looking forward to helping you.

    Samrat
    Rank Math free

    My question is Can I use another plugin that accepts user ratings along with rank math schema?

    Hello,

    Yes, you can use a different plugin that accepts user ratings and passes the data to Rank Math.

    Here’s a sample filter from Stamped.io which they can modify to pass the data in Rank Math’s Product schema:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    	$stampedDBData = get_post_meta(get_queried_object_id(), 'stamped_io_product_reviews', true);
    	if( is_array($stampedDBData) && isset($stampedDBData['reviewsAverage'], $stampedDBData['reviewsCount'])) {
    			$entity['aggregateRating']['@type'] = "AggregateRating";
    			$entity['aggregateRating']['ratingValue'] = $stampedDBData['reviewsAverage'];
    			$entity['aggregateRating']['ratingCount'] = $stampedDBData['reviewsCount'];
    	}
    	
    	return $entity;
    });

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Schema Product User Rating’ is closed to new replies.