Schema Issue

#213745
  • Resolved Vaibhav Sharma
    Rank Math free

    Hi
    I am using RankMath for my website https://internetmarketingrocks.com/ it is WordPress/woo-commerce website.

    First I added WooComerce Product Schema It showed 4 warnings in Google Rich Test Results.
    Then, I changed to Product Schema, still, it shows these 2 warnings:
    Missing field “aggregateRating” (optional)
    No global identifier provided (e.g., gtin, mpn, isbn) (optional).

    What should I do? Please help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    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.

    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.

    We have an option to select the Global Identifier in the PRO plugin, for now, you can fix it by adding that to your products using the custom product attribute feature in WooCommere or you can use this plugin: https://wordpress.org/plugins/product-gtin-ean-upc-isbn-for-woocommerce/

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

    Hi
    Thanks for the update. I am also getting this warning.
    Missing field “brand” (optional)

    What should I do for this?

    Anas
    Rank Math business

    Hello,

    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.

    Brand Value

    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:

    // Add Brand for Products.
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    $entity['brand'] = 'Rank Math';
    return $entity;
    });

    Replace the “Rank Math” text with your actual brand name then run your website through https://search.google.com/test/rich-results.

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

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

You must be logged in to reply to this ticket.