Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSON-LD microdata for a product with multiple variants for Facebook Catalogs

I have searched and searched, and I cannot find an example of JSON-LD Schema microdata that will cause my Facebook Catalog to recognize all variants of a product that has multiple variants (a t-shirt, for example). So far, I've tried these methods of implementing variants:

  • ProductGroup with an array of Products (inside the "hasVariant" ProductGroup property)
  • Product with an array of Offers
  • An array of Products

With all of these approaches, I've only managed to get Facebook to recognize one single product. Does anybody know how to compose Facebook JSON-LD microdata for a product with multiple variants or where I could find an example of this? Thank you!

like image 792
Heinz Avatar asked Oct 08 '20 18:10

Heinz


People also ask

What is facebook microdata?

When using the Pixel Helper Tool, you may notice a new field called “Microdata” that triggers when the pixel loads on the site (see below). This is essentially allowing Facebook to gain way more information in terms of what users are doing on your site, what they're looking at, and how well your site is performing.

What is the difference between Microdata and JSON LD?

There are two widely used formats for structured data: microdata and JSON-LD. With JSON-LD, a JavaScript object is inserted into the HTML of your page to define data, whereas microdata uses HTML tags and attributes to define data.

How do I add a Microdata product to my catalog?

Before you can successfully add a product to your catalog, you first need to add required tags that include information about the product ("microdata") on its product page. See required and optional tags for OpenGraph.

What types of catalogs can I create using the Facebook pixel?

Currently, only ecommerce catalogs can be created, leveraging the Facebook pixel. See required tags for Schema.org. Example - Schema.org See required tags for JSON-LD for Schema.org.

How do I add products to my pixel-based catalog?

Pixel-based catalogs use activity from your pixel to add products to your catalog. Before you can successfully add a product to your catalog, you first need to add required tags that include information about the product ("microdata") on its product page. See required and optional tags for OpenGraph.

What is microdata in HTML?

Microdata is an HTML specification used to nest metadata within existing content on webpages. Microdata uses a supporting vocabulary to describe an item and name-value pairs to assign values to its properties. You can use microdata tags on your website to provide information about your products using a standardized format.


Video Answer


1 Answers

Facing same issue, Google tool is able to parse variants but Facebook tool is not able to do so. Data is in json.

like image 91
kb0000 Avatar answered Oct 22 '22 09:10

kb0000