将schema.org(JSON-LD)产品对象添加到电子商务网站的收集页面吗?

时间:2019-05-23 07:15:13

标签: schema.org json-ld structured-data

每个电子商务网站都有收集页面,其中列出了一种或多种产品。我试图找出正确的结构化数据以添加到这些收集页面。我已经添加了CollectionPage对象:

{
        "@context" : "http://schema.org",
        "@type": "CollectionPage",
        "name": "Shopify Apps",
        "url": "https://sherpas.design/pages/shopify-apps",
        "description": "We build apps that function and feel natively Shopify",
        "image": "https://cdn.shopify.com/s/files/1/0085/8515/0560/files/logox2_500x500.png?v=1555661781"
    }

但是我想知道是否应该为收集页面上显示的每个产品添加一个产品对象?在语义上会正确吗?

1 个答案:

答案 0 :(得分:1)

这验证并符合Google的要求,即您应该创建一个仅包含产品页面URL的列表。增加使用CollectionPage的方式可能会减少获得丰富结果的机会。我希望确认它是否有效。

https://developers.google.com/search/docs/guides/mark-up-listings

<script type="application/ld+json">
{
  "@context" : "http://schema.org",
  "@type": "CollectionPage",
  "name": "Shopify Apps",
  "url": "https://sherpas.design/pages/shopify-apps",
  "description": "We build apps that function and feel natively Shopify",
  "image": "https://cdn.shopify.com/s/files/1/0085/8515/0560/files/logox2_500x500.png?v=1555661781",
  "mainEntity" : {
    "@type":"ItemList",
    "itemListElement":[
      {
        "@type":"ListItem",
        "position":1,
        "url":"http://example.com/coffee_cake.html"
      },
      {
        "@type":"ListItem",
        "position":2,
        "url":"http://example.com/apple_pie.html"
      },
      {
        "@type":"ListItem",
        "position":3,
        "url":"http://example.com/blueberry-pie.html"
      }
    ]
  }
}
</script>

相关问题