我在Google的Rich Results Test上尝试了一大堆东西,遇到了这个问题。
<html>
<head>
<title>Test SEO</title>
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"Service",
"name":"ABC",
"aggregateRating":{
"@type":"AggregateRating",
"ratingValue":5,
"reviewCount":2
},
"review":[
{
"@type":"Review",
"name": "ABC",
"author": {
"@type": "Person",
"name": "David A"
},
"reviewBody":"Awesome",
"reviewRating":{
"@type":"Rating",
"ratingValue":5
}
},
{
"@type":"Review",
"name": "ABC",
"author": {
"@type": "Person",
"name": "David B"
},
"reviewBody":"Great",
"reviewRating":{
"@type":"Rating",
"ratingValue":5
}
}
]
}
</script>
</head>
<body>
</body>
</html>当我运行测试时,它返回3个错误,其中2个错误显示为Item does not support reviews,1个错误显示为Invalid object type for field 'itemReviewed'。
对于第一个错误,我不确定为什么会出现这个错误,因为我提供了review (https://developers.google.com/search/docs/advanced/structured-data/review-snippet#review-properties)的所有必需字段。
至于第二个错误,我认为我根据https://developers.google.com/search/docs/advanced/structured-data/review-snippet#aggregated-rating-type-definition提供了所有需要的字段,但仍然得到了那个错误。
我没有为这两个对象提供itemReviewed,因为文档指出它是否是嵌套的,可以省略它。
发布于 2021-10-21 16:35:00
所以我找到的最好的答案是:https://support.google.com/webmasters/thread/38450143/doubts-about-service-schema?hl=en
尽管Schema.org支持Service,但从外观上看,它并不是Google所支持的模式类型(https://developers.google.com/search/blog/2019/09/making-review-rich-results-more-helpful)的一部分。
作为参考,您可以从他们的文档中执行this is an example,如果您将@type从Product更改为Service,您将看到类似的错误弹出。
我猜这里的解决方案是从Service更新到Product,但考虑到GSC(谷歌搜索控制台)直到现在才发出警告,这有点奇怪……
https://stackoverflow.com/questions/69653110
复制相似问题