Product in search console

#66090
  • Resolved Thibaut Fontaine
    Rank Math pro

    Hello,

    All my products are not declared to the search console.How can I declare them to the search console?

    Also, there are missing fields: https://ibb.co/gMvL1by

    It can be that we generate a URL for each variation as you can see here:
    https://lerepaireduchef.fr/bar Barbecue-kamado/

    However it would be possible to add the missing info by adding the info of the default variation on the URL declared with the search console.

    Here is how the information for our google shopping feed is mapped, maybe it will help you answer me: https://ibb.co/6tbVwc

    thanks in advance

Viewing 15 replies - 1 through 15 (of 33 total)
  • Alberto
    Rank Math business

    Hello,

    I am going to share with you an answer that usually helps our users when facing this “issue”. If it doesn’t solve your issue, just let us know and we will continue helping you.

    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.

    You can fix the SKU and availability issue easily as well:

    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 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.

    Hello,

    I have checked your provided URL on google SDTT it seems to have only the Gtin warning and SKU issue now. This data is not passed through the URL, it is rather included in your page source in JSON string.

    Please use the Guide provided by my colleague, Alberto to add the SKU to your product and since your using variable products, use the flowing function to fix the Gtin issue:

    
    /**
     * Filter to add GTIN to Variable Products.
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        $product = new WC_Product( get_the_ID() );
        if( $product->is_type( 'simple' ) ){
             $gtin_value = get_post_meta($product->get_id(),'_gtin', true);
             $entity['gtin8'] = $gtin_value;
             return $entity;
        }elseif($product->is_type( 'variable' )){
             $variation = new WC_Product_Variation(get_the_ID());
             $gtin_value = get_post_meta($variation->get_id(),'_gtin', true);
             $entity['gtin8'] = $gtin_value;
             return $entity;
        }else{
             return $entity;
        }
        
    });
    

    Hoping that helps you. Thank you.

    ​​​​​​

    Thanks for your reply !

    I have to add this code in my file function.php ?

    Thanks to this code, I don’t need to add GTIN & SKU as show me Alberto ?

    An other question.

    Thanks in advance !

    Alberto
    Rank Math business

    Hello,

    Yes, you need to add the GTIN as I explain in the previous guide but the plugin we mention sometimes has issues with variable products so we did that little snippet to fix them.

    If you have any doubts or issues, just let us know and we will continue helping you.

    Hi Alberto,

    I will make the changes !

    Just a last question, we’re using a plug in “Perfect WooCommerce Brands”.

    In WordPress Dashboard > Rank Math > General Settings > WooCommerce, I don’t find the value of perfect woocommerce brands. Do you have a tip for this issue ?

    Thanks in advance

    Hello,

    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 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.

    Hi Michael,

    Thanks for your reply !

    I’m using a plug in because we have lot of different brands. With your last tip, I will have the same brand for all my product no ?

    Thanks in advance

    Hello,

    If you wish to use the varying brands added in Perfect Brand for WooCommerce then you can choose Brands in Rank math settings which will use the brands you have set:
    img

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

    Hi Michael,

    Can you show me where I have to fill the blank brands in the product page back office ?

    Because I had ever choose brands but as you can see, i have no brands in schema.org for my short URL without variation.

    Hello,

    The option to I shared is to select brands and is in Rank math > General Settings > WooCommerce and not in product pages. That will add the brands you have added for your products.

    If the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have tested this URL:https://lerepaireduchef.fr/crepiere-professionnelle/ on Google SDTT and the brand value seems to show just fine. I have checked under Rank math > General Settings > WooCommerce and the Brand seems to be set to Brands.

    Here is the test URL: https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Flerepaireduchef.fr%2Fcrepiere-professionnelle%2F

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello Michael !

    According to you schéma.org are optimized or not ?

    Thank a lot for your help !

    I would like to Add SKU and GTIn in schéma.org !

    But all products has SKU and some products has not GTIN.

    I add your codes in my function file but I not add all sku and gtin as Alberto told me.

    These informations are filled in variable product. If you connect to my back office you will see.

    And I don’t would like to add all the ean and ugs by manual because it’s ever done

    Hi,

    1. We will add all GTIN & UGS as you have told me.

    Just one thing, as you can see in this test, there is no GTIN : https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Flerepaireduchef.fr%2Ffour-a-pizza-inox%2F

    Also we have fill the blank in the back office.

    2. Do you have tips to declare products in search console.

    Thanks in advance

    Hi,

    I’m sorry for all the ticket !

    But I can’t fill the blank of UGS in invetory because I have to use the same UGS in variation.

    I don’t know why it’s good with this product https://lerepaireduchef.fr/four-a-pizza-electrique-400/

    That’s why, we have to use the information of the default variation to schema.org.

    For example, for this URL : https://lerepaireduchef.fr/four-a-pizza-electrique-400/
    We have to use GTIN and UGS of this URL : https://lerepaireduchef.fr/four-a-pizza-electrique-400/?attribute_pa_chambre=chambre-four-1-pizza

    Thanks in advance

Viewing 15 replies - 1 through 15 (of 33 total)

The ticket ‘Product in search console’ is closed to new replies.