schema markup not working

#178831
  • Resolved AA7
    Rank Math business
    Content AI Starter

    Good day,

    It seems that your plugin is not properly handling the schema markup of my WooCommerce products.

    I need this to set up my Facebook shop properly, the pixel sends data from my products to the Facebook shop.

    As you can see in the image at the bottom of the page, facebook’s tool indicates that some important aspects of the product are missing such as ID, price, and description.

    Can you provide me with an explanation why this data is not properly copied? I expected the Woocommerce Product schema type to accurately handle all of the information.

    I sincerely hope you can help me. Thanks in advance.

    null

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous
    Rank Math free

    Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. 


    I have checked this product on Google Rich data tool and found everything okay and unable to see the errors you mentioned in this ticket. You can see the result from here – https://search.google.com/test/rich-results?id=kSKf-b6T3-E2bieymYqM8Q

    I found some valid warnings there about rating, global identifiers, etc. Please try to look at these again, if still, the issue persists on the Google tool from your end, please record a screencast using tools like – loom

    If you require any further assistance don’t hesitate to get in touch. Thanks

    AA7
    Rank Math business
    Content AI Starter

    Hello Jaed,

    Thank you so much for your reply.
    I agree, the google rich data tool has access to all the data.

    It is the Facebook which is not able to read it though: https://business.facebook.com/ads/microdata/debug

    Could you please try the same product within the FB microdata tool and advise me on how to fix this?

    Hello,

    Thank you for the follow-up, and sorry for the delay.

    For the missing:id' and 'missing:price, you can use and modify this filter to give you direction on how to apply this:

    
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if ( isset( $data['Product'] ) ) {
            $data['product']['additionalProperty'] = ['@type' => 'PropertyValue', 
    		'propertyID'=> 'item_group_id', 
    		'value'=> 'fb_tshirts'];
        }
        return $data;
    }, 99, 2 );
    

    You only need to follow the markup guideline here: https://developers.facebook.com/docs/marketing-api/catalog/guides/microdata-tags#json-ld

    Your product’s title and description seem to be all capitalized. You can also check using this tool.

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    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.

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

The ticket ‘schema markup not working’ is closed to new replies.