文章丰富的卡片数据不会显示在Google控制台中

时间:2017-08-17 10:50:22

标签: google-webmaster-tools json-ld google-rich-snippets

我已经在公司博客上实施了NewsArticle富卡数据,如下所示:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "ItemList",
  "itemListElement": [
        {
          "@type": "ListItem",
          "position": "1",
          "item": {
            "@type": "Article",
            "headline": "Jak dodać menadżera do kanału YouTube?",
            "image": {
                "@type": "ImageObject",
                "url": "https://websoul.pl/blog/wp-content/uploads/2017/07/youtube_1500966468-728x728.png",
                "height": 728,
                "width": 728
              },
            "datePublished": "2017-07-25T08:08:24+00:00",
            "dateModified": "2017-08-11T08:40:52+00:00",
            "author": {
                "@type": "Person",
                "name": "Tomasz Smykowski"
              },
            "publisher": {
                "@type": "Organization",
                "name": "Websoul",
                "logo": {
                  "@type": "ImageObject",
                  "url": "https://websoul.pl/richpublishericon60x600.png",
                  "width": 600,
                  "height": 60
                  }
                },
            "description": "Jak dodać menadżera do kanału na YouTube? O tym jak dać innej osobie dostęp do kanału dowiesz się z tego artykułu. Czytaj dalej&#8230;",
            "url": "https://websoul.pl/blog/jak-dodac-menadzera-do-kanalu-youtube",  
            "name": "Jak dodać menadżera do kanału YouTube?"
            }
          }
        ,{
          "@type": "ListItem",
          "position": "1",
          "item": {
            "@type": "Article",
            "headline": "Jak zaakceptować dostęp do konta Facebook Ads i Google Adwords",
            "image": {
                "@type": "ImageObject",
                "url": "https://websoul.pl/blog/wp-conten.....

我使用Google验证码对其进行了验证,但我收到了错误消息:https://search.google.com/structured-data/testing-tool?hl=pl#url=https%3A%2F%2Fwebsoul.pl%2Fblog%2F

声明所有网址都应指向同一网页。但是我可以看到所有网址实际上都指向同一页面。

我已将该网站提交给Google索引。我知道它已被编入索引,因为我已经实现了AMP并且它现在正在工作。

但富卡不会出现在Google控制台中。该怎么做才能让我的富卡出现在Google控制台中?

1 个答案:

答案 0 :(得分:1)

如果您正在尝试获取旋转木马丰富的卡片,那么您定义的内容存在一些问题。

第一个问题是您的页面是一个摘要页面,其中包含指向文章的链接。您需要按照摘要页面+多个完整详细信息页面标题下的https://developers.google.com/search/docs/guides/mark-up-listings所述定义它们。

在摘要页面上,您需要将结构化数据定义为简化的ItemList。确保增加每个项目的位置。

<script type="application/ld+json">
{
  "@context":"http://schema.org",
  "@type":"ItemList",
  "itemListElement":[
    {
      "@type":"ListItem",
      "position":1,
      "url":"http://example.com/desserts/apple-pie"
    },
    {
      "@type":"ListItem",
      "position":2,
      "url":"http://example.com/desserts/cherry-pie"
    },
    {
      "@type":"ListItem",
      "position":3,
      "url":"http://example.com/desserts/blueberry-pie"
    }
  ]
}
</script>

在链接的文章页面上,您需要将结构化数据定义为文章。

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Article",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://google.com/article"
  },
  "headline": "Article headline",
  "image": {
    "@type": "ImageObject",
    "url": "https://google.com/thumbnail1.jpg",
    "height": 800,
    "width": 800
  },
  "datePublished": "2015-02-05T08:00:00+08:00",
  "dateModified": "2015-02-05T09:20:00+08:00",
  "author": {
    "@type": "Person",
    "name": "John Doe"
  },
   "publisher": {
    "@type": "Organization",
    "name": "Google",
    "logo": {
      "@type": "ImageObject",
      "url": "https://google.com/logo.jpg",
      "width": 600,
      "height": 60
    }
  },
  "description": "A most wonderful article"
}
</script>