草庐IT

seo - Google SERP 上缺少综合评论

coder 2024-02-29 原文

最近我在 Google SERP 上丢失了我的星级评论。我知道原因可能各不相同,但我要确保我没有在代码上犯错误:

   <div itemprop="aggregateRating" itemscope="" itemtype="http://schema.org/AggregateRating" style="text-align:right;">
         <b><span itemprop="ratingValue">5</span> on 
         <span itemprop="bestRating">5</span> based on <span itemprop="reviewCount">857</span> reviews</b>
   </div> 

Google 可以发布更新吗?

最佳答案

您在主帖中提供的代码片段:根据 Google SDTT 隔离无效.

评论没有指定评论项目

<div itemprop="aggregateRating" itemscope="" itemtype="http://schema.org/AggregateRating" style="text-align:right;">
  <b><span itemprop="ratingValue">5</span> on 
  <span itemprop="bestRating">5</span> based on <span itemprop="reviewCount">857</span> reviews</b>
</div>

这是通过添加 itemprop="itemreviewed"

解决的
<div itemprop="aggregateRating" itemscope="" itemtype="http://schema.org/AggregateRating" style="text-align:right;">
  <h3 itemprop="itemreviewed">Mario Bros service</h3>
  <b><span itemprop="ratingValue">5</span> of 
  <span itemprop="bestRating">5</span> based on <span itemprop="reviewCount">857</span> reviews</b>
</div>

Instances of AggregateRating may appear as values for the following properties

  • Brand
  • CreativeWork
  • Event
  • Offer
  • Organization
  • Place
  • Product
  • Service

Source - http://schema.org/AggregateRating


您在 comments 中的完整代码段(我已简化)正在使用组织架构 http://schema.org/Organization以及用于 Review 聚合的不同词汇表

<html itemscope itemtype="http://schema.org/Organization">
  <body>
    <div class="review">
      <div itemprop="review" itemscope itemtype="http://data-vocabulary.org/Review-aggregate">
        <img itemprop="rating" src="#" alt="173 recensioni" />
        <span itemprop="count">173 recensioni</span>
      </div>
    </div>
  </body>
</html>

其中有多个错误。


有效的方式是:

使用 data-vocabulary.org

<html itemscope itemtype="http://schema.org/Organization">
  <body>
    <div>
      <h1 itemprop="name">Mario Bros</h1>
      <div itemscope itemtype="http://data-vocabulary.org/Review-aggregate">
        <h3 itemprop="itemreviewed">Mario Bros service</h3>
        <p>
          <span itemprop="rating" itemscope itemtype="http://data-vocabulary.org/Rating">
            <em itemprop="average">5</em> out of <em itemprop="best"> 5 </em>
          </span>
          <b>based on</b>
          <!-- How many people rated this item? -->
          <em itemprop="votes">173</em> ratings.
        </p>
        <p>
          <!-- How many people reviewed this item? -->
          <em itemprop="count">45 </em> user reviews.
        </p>
      </div>
    </div>
   </body>
</html>

使用 schema.org

<html itemscope itemtype="http://schema.org/Organization">
  <body>
    <div>
      <h1 itemprop="name">Mario Bros</h1>
        <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
          <em itemprop="ratingValue">5</em> out of <em itemprop="bestRating">5</em> based on <em itemprop="ratingCount">24</em> user ratings.
        </div>
    </div>
   </body>
</html>

您还在评论中提到它们是产品:

products such as curtains, roll-up, etc

这是 Google's example from the Products data type :

<div itemscope itemtype="http://schema.org/Product">
  <img itemprop="image" src="dell-30in-lcd.jpg" />
  <span itemprop="name">Dell UltraSharp 30" LCD Monitor</span>
  <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
    <span itemprop="ratingValue">87</span>
    out of <span itemprop="bestRating">100</span>
    based on <span itemprop="ratingCount">24</span> user ratings
  </div>
</div>

根据您的标准修改为:

<html itemscope itemtype="http://schema.org/Organization">
  <body>
    <div>
      <h1 itemprop="name">Mario Bros</h1>
        <div itemscope itemtype="http://schema.org/Product">
          <img itemprop="image" src="curtains.jpg" />
          <span itemprop="name">Acme brand Curtains</span>   
          <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
            <em itemprop="ratingValue">5</em> out of <em itemprop="bestRating">5</em> based on <em itemprop="ratingCount">173</em> reviews.
          </div>
        </div>
    </div>
   </body>
</html>

进一步增强:

<html itemscope itemtype="http://schema.org/Organization">
  <body>
    <div>
      <h1 itemprop="name">Mario Bros</h1>
        <div itemscope itemtype="http://schema.org/Product">
          <span itemprop="brand">Acme brand</span>
          <img itemprop="image" src="curtains.jpg" />
          <span itemprop="name">Acme brand Curtains</span>   
          <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
            <em itemprop="ratingValue">5</em> out of <em itemprop="bestRating">5</em> based on <em itemprop="ratingCount">173</em> reviews.
          </div>
          <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
            <!--price is 1000, a number, with locale-specific thousands separator and decimal mark, and the € character is marked up with the machine-readable code "EUR" -->
            <span itemprop="priceCurrency" content="EUR">€</span>
            <span itemprop="price" content="1000.00">1,000.00</span>
            <link itemprop="availability" href="http://schema.org/InStock" />
            <span>In stock</span>
          </div>              
        </div>
    </div>
   </body>
</html>

关于seo - Google SERP 上缺少综合评论,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40817831/

有关seo - Google SERP 上缺少综合评论的更多相关文章

  1. ruby-on-rails - 简单的 Ruby on Rails 问题——如何将评论附加到用户和文章? - 2

    我意识到这可能是一个非常基本的问题,但我现在已经花了几天时间回过头来解决这个问题,但出于某种原因,Google就是没有帮助我。(我认为部分问题在于我是一个初学者,我不知道该问什么......)我也看过O'Reilly的RubyCookbook和RailsAPI,但我仍然停留在这个问题上.我找到了一些关于多态关系的信息,但它似乎不是我需要的(尽管如果我错了请告诉我)。我正在尝试调整MichaelHartl'stutorial创建一个包含用户、文章和评论的博客应用程序(不使用脚手架)。我希望评论既属于用户又属于文章。我的主要问题是:我不知道如何将当前文章的ID放入评论Controller。

  2. ruby - .gemrc 评论? - 2

    这是一个基本问题.gemrc文件中是否允许注释?如果是,你会怎么做?我这里查了没用docs.rubygems.org/read/chapter/11 最佳答案 文档说:Theconfigfileitselfisin’’’YAML’’’format.这意味着您可以拥有commentsstartingwith#,例如:#Ilikedocsrdoc:--inline-source--line-numbers 关于ruby-.gemrc评论?,我们在StackOverflow上找到一个类似的问题

  3. ruby-on-rails - 如果特定语言环境中缺少翻译,如何配置 i18n 以使用 en 语言环境? - 2

    如果特定语言环境中缺少翻译,如何配置i18n以使用en语言环境翻译?当前已插入翻译缺失消息。我正在使用RoR3.1。 最佳答案 找到相似的question这里是答案:#application.rb#railswillfallbacktoconfig.i18n.default_localetranslationconfig.i18n.fallbacks=true#railswillfallbacktoen,nomatterwhatissetasconfig.i18n.default_localeconfig.i18n.fallback

  4. ruby - 用一个 #!在 Ubuntu 中运行的 ruby​​ 中评论 - 2

    我是编程新手,正在尝试遵循使用#!用ruby评论。我一直收到消息:bash:matz.rb:找不到命令我正在使用这个评论:#!/usr/bin/envruby我试过有和没有后面的空格!以及有和没有环境。当我使用$哪个rubyruby在:/usr/bin/ruby我还进入了操作系统,将所有用户对文件matz.rb的权限更改为rwx,但没有任何效果。是我做错了什么还是我的系统设置不正确? 最佳答案 /usr/bin/env部分没问题。运行时需要为bash提供matz.rb的路径。如果您在matz.rb所在的目录中,请键入“./matz.

  5. ruby - 评论限制 - 2

    在ruby​​1.9中,放宽了行结束位置的条件,因此我们现在可以用句号开始一行来显示方法调用。当我们混淆了链式和非链式方法,并希望显示下一个非链式方法的开始位置时,这很方便。如果没有这个新功能,我们能做的最好的可能就是使用缩进:method1(args1).method2(args2).method3(args3)method4(args4).method5(args5).method6(args6)或插入一个空行。但这很不方便,因为我们必须注意缩进,同时,不要忘记在每个方法调用之后加上链中最后一个方法调用之后的句点。正因为如此,我制造了很多错误,要么有一个额外的周期,要么有一个缺失的

  6. Ruby 缺少常量表达式优化? - 2

    我希望Ruby的解析器会进行这种微不足道的优化,但似乎并没有(谈到YARV实现,Ruby1.9.x、2.0.0):require'benchmark'deffib1a,b=0,1whileb由于这两种方法除了在第二种方法中使用预定义常量而不是常量表达式外是相同的,因此Ruby解释器似乎在每个循环中一次又一次地计算幂常数。是否有一些Material说明为什么Ruby根本不进行这种基本优化或只在某些特定情况下进行? 最佳答案 很抱歉给出了另一个答案,但我不想删除或编辑我之前的答案,因为它下面有有趣的讨论。正如JörgWMittag所说,

  7. ruby - ruby 中是否有针对 ISO 8601 的综合库/模块? - 2

    是否已经实现了ISO8601的所有日期、时间、持续时间和间隔使用情况?ruby标准?我的意思是类似于类的东西,您可以在其中设置和获取详细信息,例如年、月、日、星期几、星期、小时、分钟、is_duration?、has_recurrence?等等也可以设置并导出到字符串? 最佳答案 require'time'time=Time.iso8601Time.now.iso8601#iso8601stringtime.year#=>Yearofthedatetime.month#=>Monthofthedate(1to12)time.day#

  8. ruby-on-rails - 如何在 Rails 中正确呈现嵌套评论? - 2

    我试图让嵌套评论在Rails5应用程序中正常工作,但遇到了很多困难。我正在构建一个问答网站,我有一个Acomment模型,其中有属于答案的评论,还有属于其他评论的评论:classAcomment我想显示所有评论,然后显示所有对评论的回复,以及对回复的回复等。但是我不知道如何使嵌套正常工作。在我看来,在每个循环中,我正在渲染_comment.html.erb部分:"comment",:object=>comment%>然后,在我的_comment.html.erb局部中,我显示评论、回复链接,然后呈现评论回复的局部:comment,:answer_id=>comment.answer)i

  9. ruby-on-rails - 子域 + ActionView::Template::Error(缺少要链接的主机!) - 2

    我已经解决了标题中描述的错误的众多解决方案。ActionView::Template::Error(缺少要链接的主机!请提供:host参数,设置default_url_options[:host],或将:only_path设置为true):但是,该项目还修改了url_for函数以使用子域,如本railscast所示:http://railscasts.com/episodes/221-subdomains-in-rails-3因此,这个错误的传统答案,例如在我的环境设置中设置变量似乎不是解决方案。这里有一些其他的提示:这是一个全新的设置,我刚刚克隆了一个项目并安装了ruby​​、rai

  10. Ruby:评论是代币吗? - 2

    我刚刚在这里(http://ruby.runpaint.org/programs#lexical)读到评论是标记。我从未将评论视为标记,因为它们要么是注释,要么是用于后处理器。评论真的是标记还是这个来源有误? 最佳答案 是的,它们应该是标记,但稍后会被解析器忽略。如果您使用如下所示的文件执行ruby--dumpparsetreefoo.rb#thisisacomment1+1#anothercomment这是你会得到的:#@NODE_SCOPE(line:3)#+-nd_tbl:(empty)#+-nd_args:#|(nullno

随机推荐