• Resolved wanderingexplorer

    (@wanderingexplorer)


    Hello RankMath Support.

    In Google Search Console we are getting a lot of product schema errors on “Product Category pages” and “Product Tag Pages” regular product pages do not get this error.

    Please see this link which which describes the problem and solution well.
    https://www.checkerboard.com/web-development/fix-offers-review-aggregaterating-specified/

    I added the code snippet in the above article to my installation, and when it didn’t resolve the issue, I had a closer look and realised that it was RankMath adding the json schema on Product Category pages.

    After searching the Rank Math plugin, I found settings which I think have been added to solve this issue?

    WP Admin->Rank Math->Titles & Meta->Product categories->Remove Snippet Data
    WP Admin->Rank Math->Titles & Meta->Product tags->Remove Snippet Data

    I have set both to “On”.

    1) Please let me know if this is correct?

    2) If 1 is correct, then why is this not just set by default and the setting removed from Rank Math? I don’t see why anybody would want to have product schema added to product category and tag pages when this is incorrect markup and causes errors in Google Search Console. I think a lot of people only discover this when they get an error in search console.

    Appreciate your time getting back to me.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rank Math SEO

    (@rankmath)

    Hello @wanderingexplorer

    Thank you for contacting the support.

    Rank Math takes the Schema data from your product pages automatically and turns it into Schema-ready content. Likewise, the aggregateRating and review fields are taken from your actual product reviews that your buyers/customers leave on your products.
    https://i.rankmath.com/Ni50EF

    If you don’t have any reviews yet, that is going to show up as a warning in the schema testing tool. That’s because Google will actually look for those fields.

    Please acquire some reviews and ratings to get rid of the aggregateRating and review warnings.

    You can fix the SKU and availability issue quickly as well: https://i.rankmath.com/wtM5aM

    To fix the brand warning, head over to WordPress Dashboard > Rank Math > General Settings > WooCommerce and choose from any of the available fields to use as your product’s brands.
    https://i.rankmath.com/Atiq6s

    If you want to use a custom value for your Brands, you can do that by using the following code in your theme’s functions.php file:
    https://pastebin.com/JEfTheYn

    Replace the “Rank Math” text with your actual brand name then run your website through the Structured Data Testing tool once again.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter wanderingexplorer

    (@wanderingexplorer)

    @rankmath

    I think you misunderstood my question.

    I am aware of the points you mention above about getting reviews, and setting a brand. BUT that is for “Product” Pages. I am referring to Product Category (Woocommerce Categories) pages. Also it is causing Errors not warnings.

    I have set both of these settings to on:

    WP Admin->Rank Math->Titles & Meta->Product categories->Remove Snippet Data
    WP Admin->Rank Math->Titles & Meta->Product tags->Remove Snippet Data

    Now I see in Search Console that the errors are slowly disappearing after Google is rechecking the pages :-).

    So my questions again:

    1) Please let me know if my solution is correct?

    2) If 1 is correct, then why is this not just set by default and the setting removed from Rank Math? I don’t see why anybody would want to have “product schema” added to Product Category and Tag pages when this is incorrect markup and causes errors in Google Search Console. I think a lot of people only discover this when they get an error in search console.

    Appreciate your time getting back to me.

    Thank you.

    • This reply was modified 6 years, 6 months ago by wanderingexplorer.
    • This reply was modified 6 years, 6 months ago by wanderingexplorer. Reason: tags were not working correctly so changed to tags
    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @wanderingexplorer

    1. We recommend not to show the Product Schema on category pages. So what you did is right.

    2. By default, the plugin is set not to show the Schema on Product category and archive pages. Maybe someone accidentally saved the settings which might have enabled those options?

    Hope that helps further.

    Thank you.

    Thread Starter wanderingexplorer

    (@wanderingexplorer)

    Hi @rankmath

    Thank you for getting back to me and confirming. I will mark the ticket resolved :-).

    I would suggest you to set the options above as default and remove the settings from the plugin. I cannot see a use case for why someone would wish to have that schema added.

    Thanks again.

    Plugin Author Rank Math SEO

    (@rankmath)

    Hello @wanderingexplorer

    Sure. We will see what we can do there.

    We are always here if you need us in the future.

    If it isn’t too much to ask for – would you mind leaving us a review here?
    https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us and would go a really long way.

    Thank you.​​

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

The topic ‘Either “offers”, “review”, or “aggregateRating” should be specified’ is closed to new replies.