【问题标题】:Add schema.org (JSON-LD) product objects to collection pages for an e-commerce website?将 schema.org (JSON-LD) 产品对象添加到电子商务网站的集合页面?
【发布时间】:2019-10-09 17:09:19
【问题描述】:

每个电子商务网站都有列出一个或多个产品的集合页面。我试图找出正确的结构化数据以添加到这些集合页面。我已经添加了 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"
    }

但我想知道是否应该为出现在集合页面上的每个产品添加一个产品对象?这在语义上是否正确?

【问题讨论】:

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


    【解决方案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>

    【讨论】:

    • “添加使用 CollectionPage 的扭曲可能会降低获得丰富结果的机会”是什么意思。谢谢!
    • 您越偏离指南中的规定,Google 不支持您所做的事情的可能性就越大,即使它在技术上是正确的。
    • 您是说完全不添加 CollectionPage 属性可能是个好主意吗?
    • 我会说无论如何您都不会获得产品的轮播功能。我会保留 CollectionPage
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-24
    • 1970-01-01
    • 1970-01-01
    • 2013-06-09
    • 2010-09-27
    • 1970-01-01
    相关资源
    最近更新 更多