Rich Snippets Not Picking Up GTIN

#23215
  • Resolved Mary Aldoseri
    Rank Math free
    Content AI Starter

    Hi
    I have added GTIN to my products but it is not being picked up by Google, I know the reviews is because I don’t have any and I found a fix in your support for brand which worked but I cannot get rid of error for Global identidier(GTIN). Please can you help?

    • This topic was modified 4 years, 3 months ago by Mary Aldoseri.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Thank you for contacting Rank Math today.

    Would you mind sharing some more details in form of screenshots of how you have configured the gtin values on your products so that we can test further?
    You can upload the images to Google Drive or Dropbox and then share the links on the sensitive data section.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Mary Aldoseri
    Rank Math free
    Content AI Starter

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    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.

    Mary Aldoseri
    Rank Math free
    Content AI Starter

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi Mary,

    Thanks for the access.

    I have added the following code snippet to your theme’s functions.php file to grab the GTIN value from the GTIN for WooCommerce plugin and pass it to the product schema:

    /**
     * Filter to add GTIN to WC Products.
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    	global $product;
    	//$product = RankMath\Helper::get_product();
    	$gtin = $product->get_meta( '_wpm_gtin_code' );
        $entity['gtin12'] = $gtin;
        return $entity;
    });

    I hope this info helps. Thank you.

    Mary Aldoseri
    Rank Math free
    Content AI Starter

    Hi Michael,
    Many many thanks this plugin it is fantastic and truly appreciate your input. My Woocommerce products all now pass Google rich snippets test tool. Only warning is because I do not have reviews. Many many thanks for your help and this fantastic plugin. Happy holidays to all of you.
    Best
    Mary

    Mary Aldoseri
    Rank Math free
    Content AI Starter

    Hi Michael,
    My homepage is now showing 404, I have not been on site, kindly advise this asap as my site is now down home page only

    Mary Aldoseri
    Rank Math free
    Content AI Starter

    Problem solved, the page for some reson was off in wordpress settings where youset which static page you want, many thanks again for all the help.

    Hi Mary,

    Thanks for getting back to us.

    I am glad that all problems are now resolved 🙂

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Happy holidays to you too!

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

The ticket ‘Rich Snippets Not Picking Up GTIN’ is closed to new replies.