【问题标题】:Schema - Star rating vanished from Google: “The review does not have a reviewed item with a name specified”架构 - 星级从谷歌消失:“评论没有指定名称的评论项目”
【发布时间】:2020-01-20 03:21:34
【问题描述】:

当我的网页出现在 Google 搜索结果中时,我对网页的视觉星级评分已经消失(直到最近才显示)。它曾经与页面一起显示。

我运行了结构化数据测试工具,得到了这个结果:

“评论没有指定名称的评论项目。”

AggregateRating1 ERROR0 WARNINGSexpand_less @type

AggregateRating ratingValue

5 个评论数

4 项评论

@类型

产品取消

“评论没有指定名称的评论项目”。

代码如下:

知道出了什么问题,或者任何人都可以正确编辑代码吗?我是编码和使用猜测的外行。

5 星 - 基于 4 条评论

【问题讨论】:

  • 代码:
    schema.org/AggregateRating"> 5 星 - 基于 4 评论
    schema.org/Product">

标签: json schema


【解决方案1】:

来了。但最好在产品架构下使用聚合评分。

<div itemscope itemtype="schema.org/AggregateRating">
<span itemprop="name">item name</span>
<span itemprop="ratingValue">5</span> stars - based on 
<span itemprop="reviewCount">4</span> reviews
<div itemprop="itemReviewed" itemscope itemtype="schema.org/Product"> 
<span itemprop="name">item name</span> 
</div> 
</div>

【讨论】:

  • 非常感谢,这似乎有所不同,但是,现在我收到“JSON-LD 语法错误:需要值、对象或数组”。正如我在其他评论中发布的图片
  • 除了 JSON 错误之外,星星再次出现在 Google 搜索结果中。谢谢。
【解决方案2】:

JSON-LD

语法错误:需要值、对象或数组。

    <p><script type="application/ld+json"><br />
{<br />
  "@context": "http://schema.org",<br />
  "@type": "LocalBusiness",<br />
  "url": "XXX",<br />
  "image": "XXX.jpg",<br />
  "name": "XXX",<br />
  "telephone": "XXX",<br />
  "priceRange": "Enquire",<br />
"address": {<br />
      "@type": "PostalAddress",<br />
      "streetAddress": "XXX",<br />
      "addressLocality": "XXX",<br />
      "addressRegion": "XXX",<br />
      "postalCode": "XXX"<br />
},<br />
  "contactPoint": {<br />
    "@type": "ContactPoint",<br />
    "telephone": "XXX",<br />
    "contactType": "Customer service",<br />
    "areaServed": ["XXX", "XXX"]<br />
  }<br />
}<br />
</script></p>
<div itemscope="" itemtype="schema.org/AggregateRating">
<span itemprop="name">XXX</span><br />
<span itemprop="ratingValue">5</span> stars &#8211; based on<br />
<span itemprop="reviewCount">4</span> reviews</p>
<div itemprop="itemReviewed" itemscope="" itemtype="schema.org/Product">
<span itemprop="name">XXX</span></div>
</div>

【讨论】:

  • 错误具体在这一行:

【解决方案3】:

为了修复它,我必须将它添加到我的 H1 标签中:

&lt;h1 itemprop="name"&gt;Text&lt;/h1&gt;

* 完整代码 *

<meta itemprop="name" content="item name" />
<meta itemprop="description" content="item description." />
<meta itemprop="datePublished" content="date added" />
<meta itemprop="url" content="url" />
<meta itemprop="image" content="thumb" />

<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
 <meta itemprop="bestRating" content="5" />
 <meta itemprop="worstRating" content="1" />
 <meta itemprop="ratingValue" content="rank" />
 <meta itemprop="ratingCount" content="rates" />
</div>

您可以看到它适用于上面的示例: Google Structured Data Success

这是一个没有上面例子的页面 Google Structured Data Faild

希望对你有帮助。

【讨论】:

  • 这似乎不起作用。尝试了多种变体,但仍然得到相同的错误。谢谢你的尝试,我很感激!
  • 嗨,很遗憾听到它对您不起作用,但我已经更新了我的答案以查看完整的代码以及它是如何成功运行的,并且错误已被删除。
  • 奇怪!我仍然得到相同的 JSON-LD 错误,与以前完全相同。新代码也有一个新错误:
    schema.org/AggregateRating"> (itemReviewed itemReviewed 字段的值是必需的。)我确信这是一个简单的修复,但奇怪的是持久的 JSON-LD 错误
【解决方案4】:

如果有的话,到目前为止,我最初的星级评论在 Google 搜索结果中消失的问题已得到解决(现在出现在 Google 搜索结果中!)但仍然收到“JSON-LD 语法错误:值、对象或预期数组。”来自分析仪。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-08-13
    • 2014-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-25
    • 2021-10-13
    相关资源
    最近更新 更多