首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Google Rich Results Test -项目不支持评论

Google Rich Results Test -项目不支持评论
EN

Stack Overflow用户
提问于 2021-10-20 21:15:41
回答 1查看 143关注 0票数 1

我在Google的Rich Results Test上尝试了一大堆东西,遇到了这个问题。

代码语言:javascript
复制
<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,因为文档指出它是否是嵌套的,可以省略它。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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,如果您将@typeProduct更改为Service,您将看到类似的错误弹出。

我猜这里的解决方案是从Service更新到Product,但考虑到GSC(谷歌搜索控制台)直到现在才发出警告,这有点奇怪……

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69653110

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档