Will Google accept combined JSON-LD and HTML metadata / microdata?

I have a situation where I can put 99% of my structured data in JSON-LD on my product pages. But the only way to get the UPC is to host it as microdata.

Will Google collect product data from JSON-LD and embedded microdata?

+3


source to share


2 answers


Probably yes.

  • Googles Structured Data Testing Tool works great if you are using JSON-LD and Microdata (and RDFa).

  • Google does not say otherwise ( they have done so in the past ), see their Structured Data Policy :

    Data can be embedded into your web page using any of three supported formats: JSON-LD, RDFa, and microdata.

  • Some of Googles' structured data features (currently) only document JSON-LD (like TV and videos ); for others Google recommends using RDFa / Microdata, for example their "About schema.org" :

    [...] Google recommends using JSON-LD for these functions. For the remaining types of Rich Snippets and Breadcrumbs, Google recommends using microdata or RDFa.

    It wouldn't make sense for Google to restrict authors not to use all features (using different syntaxes) in the same document.



However, you may not know for sure (their documentation is not always up to date and their rules may change every day.)

+8


source


Can be used both on one page. But it cannot divide information about one type of object into parts. For example: some product information in JSON-LD format and some in microdata format does not work.



Also two separate things mean two objects. While you can use @id in JSON-LD and itemid in microdata to point them as the same entity, the Google Structured Data Test Tool shows them as two entities.

0


source







All Articles