Hello,
I apologize for the issue you are facing with the Global Identifier setting in Rank Math. To add a Global Identifier like GTIN, you need to ensure that you are looking in the correct section. Here’s how to find and configure the Global Identifier:
- Go to your WordPress Dashboard.
- Navigate to Rank Math SEO → General Settings → WooCommerce.
- Look for the Global Identifier section there.
If you still do not see the option, please ensure that you have the latest version of Rank Math installed, as this feature is available in the PRO version of the plugin.
Once you have configured the Global Identifier setting, you can then add GTIN codes to individual products by going to the product editor page and selecting the Inventory tab where the GTIN field will appear.
If you continue to experience difficulties, please reply to this ticket with your site URL, and a human agent from our support team will assist you further. Thank you for raising this concern!
Sources:
Adding GTIN, ISBN & MPN Schema to WooCommerce Products Using Rank Math » Rank Math
Adding GTIN, ISBN & MPN Schema to WooCommerce Products Using Rank Math » Rank Math
Is this option only available on pro? How do I set the Global Identifier on the free version?
Hello,
Yes, that feature is only available with Rank Math PRO.
However, if you are looking to change this in the Schema markup, here’s an example filter you can use and modify the GTIN:
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
$gtin = get_post_meta(get_queried_object_id(), 'custom-field-name', true);
$entity['gtin'] = $gtin;
return $entity;
});
Here’s how you can add this code:
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.