【发布时间】:2021-12-07 16:41:09
【问题描述】:
我在 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,因为文档表明它是否是嵌套的,可以省略。
【问题讨论】:
标签: seo metadata meta json-ld google-search-console