文章丰富的卡片数据未显示在 Google 控制台中
Article rich cards data not show up in Google Console
我在公司博客上实现了 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…",
"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
说明所有网址都应指向同一网页。但正如我所看到的,所有 URL 实际上都指向同一个页面。
我已将网站提交到 Google 索引。我知道它已编入索引,因为我还实施了 AMP 并且它现在正在运行。
但是 Google 控制台中没有显示丰富的卡片。如何才能让我的富豪卡显示在 Google 控制台中?
如果您尝试获取轮播丰富的卡片,则您定义的内容存在一些问题。
第一个问题是您的页面是带有文章链接的摘要页面。您需要按照 摘要页面 + 多个完整详细信息页面 标题下的此处 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>
我在公司博客上实现了 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…",
"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
说明所有网址都应指向同一网页。但正如我所看到的,所有 URL 实际上都指向同一个页面。
我已将网站提交到 Google 索引。我知道它已编入索引,因为我还实施了 AMP 并且它现在正在运行。
但是 Google 控制台中没有显示丰富的卡片。如何才能让我的富豪卡显示在 Google 控制台中?
如果您尝试获取轮播丰富的卡片,则您定义的内容存在一些问题。
第一个问题是您的页面是带有文章链接的摘要页面。您需要按照 摘要页面 + 多个完整详细信息页面 标题下的此处 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>