Microdata Tags

You can use these protocols to set microdata tags in your catalog feed file:

  • OpenGraph — Place the microdata in the header of your website.
  • Schema.org — Place the microdata across the product page where the products are located.
  • JSON-LD for Schema.org — Place the microdata within the script tag (see the example below).

Depending on the type of protocol you choose, the microdata needs to be in the right location on your website.

To test if your microdata tags are working, use this microdata debugger tool.

OpenGraph

See required tags for OpenGraph.

Example - OpenGraph

<meta property="og:title" content="Facebook T-Shirt">

<meta property="og:description" content="Unisex Facebook T-shirt, Small">

<meta property="og:url" content="https://example.org/facebook">

<meta property="og:image" content="https://example.org/facebook.jpg">

<meta property="product:brand" content="Facebook">

<meta property="product:availability" content="in stock">

<meta property="product:condition" content="new">

<meta property="product:price:amount" content="9.99">

<meta property="product:price:currency" content="USD">

<meta property="product:retailer_item_id" content="facebook_tshirt_001">

Schema.org

See required tags for Schema.org.

Example - Schema.org

curl \
    <div itemscope itemtype="http://schema.org/Store">
<div id="..." class="..." itemscope="" itemtype="http://schema.org/Product">
...
<meta itemprop="brand" content="facebook">
<meta itemprop="name" content="Facebook T-Shirt">
<meta itemprop="description" content="Unisex Facebook T-shirt, Small">
<meta itemprop="productID" content="facebook_tshirt_001">
<meta itemprop="url" content="https://example.org/facebook">
<meta itemprop="image" content="https://example.org/facebook.jpg">
...
<span itemprop="offers" itemscope itemtype="http://schema.org/Offer" itemref="schema-offer">
<link itemprop="availability" href="http://schema.org/InStock">
<link itemprop="itemCondition" href="http://schema.org/NewCondition">
<div class="..." itemprop="price"&gt;7.99&lt;/div>
<meta itemprop="priceCurrency" content="USD">
...
        </span>
        ...
       </div><div itemscope itemtype="">

JSON-LD for Schema.org

See required tags for JSON-LD for Schema.org.

Example — JSON-LD for Schema.org

<script type="application/ld+json">

       {
  
        "@context":"https://schema.org",
        "@type":"Product",
        "productID":"facebook_tshirt_001",
        "name":"Facebook T-Shirt",
        "description":"Unisex Facebook T-shirt, Small",
        "url":"https://example.org/facebook",
        "image": "https://example.org/facebook.jpg",
        "brand":"facebook",
        "offers":[
        {
        "@type":"Offer",
        "price":"7.99",
        "priceCurrency":"USD",
        "itemCondition":"https://schema.org/NewCondition",
        "availability":"https://schema.org/InStock"
        }
        ]
        <script>