微格式特别是hreview-aggregate

时间:2013-10-01 20:21:56

标签: microformats rich-snippets

我有一个关于微格式的问题,更具体地说是hreview-aggregate。一位客户不久前实现了它们,但它们没有显示在SERP中,但谷歌丰富的片段测试工具显示它们完美运行。我看了一下代码,现在是

<div class="hreview-aggregate">
            <div class="rating-45 clearfix">
                <span class="rating" title="4.383 of 5 stars">4.383 of 5 stars</span>
                <a tabindex="0" href="https://www.example.com/category/" title="View all xxxx Reviews"> 
                <span class="count">View all xxxx Reviews</span> 
                </a>
            </div>
        </div>

我将其更改为包含class="average" class="best"以及其他一些他们缺失的跨度。

<div class="hreview-aggregate">
            <div class="rating-45 clearfix">
                <span class="rating" title="4.383 of 5 stars"><span class="average">4.383</span> of <span class="best">5</span> stars</span>
                <a tabindex="0" href="https://www.example.com/category/" title="View all xxxx Reviews"> 
                View all <span class="count">xxxx</span> Reviews 
                </a>
            </div>
        </div>

最新的代码最终是否会显示在SERP中?此外,页面只有评级但没有评论,我应该使用COUNT还是VOTES?

2 个答案:

答案 0 :(得分:0)

我怀疑Google Rich Snippet Tool是否会通过此功能。 hreview-aggregate规范(specification)声明需要指定正在审核的项目。

我也看到了丰富的代码片段工具说的是平均属性,但是如果使用 value 而不是,则规范没有提及它平均值您遵守规范,丰富的代码段工具会将其选中。你应该将数字四舍五入到一位小数。

如果网页不包含任何单独的评论,您确实应该使用投票而不是计数

答案 1 :(得分:0)

对于那些仍在使用hreview-aggregate的人来说,这是一个老问题。

结构或多或少如下:

<div class="hreview-aggregate">
<div class="item">
    <span class="fn">Item Name</span>
</div>
<div class="rating">
    <span class="average">3.5</span>
    <span class="best">5</span>
    <span class="count">15</span>
</div>

在你的代码中你应该有这样的东西:

<div class="hreview-aggregate">
<div class="item">
    <span class="fn">Item Name</span>
</div>
        <div class="rating-45 rating clearfix">
            <span title="4.383 of 5 stars"><span class="average">4.383</span> of <span class="best">5</span> stars</span>
            <a tabindex="0" href="https://www.example.com/category/" title="View all xxxx Reviews"> 
            View all <span class="count">10</span> Reviews 
            </a>
        </div>
    </div>

以便完全验证:https://search.google.com/structured-data/testing-tool

  

我应该使用COUNT还是VOTES?

来自microformat doc本身:http://microformats.org/wiki/hreview-aggregate

  

count ::此属性用于指定产品或服务的总评论数。

     

votes ::此属性用于指定对产品或服务进行评级的用户总数,从而对平均评分做出贡献。对于某些网站,投票数等于评论数,因此可以使用计数并忽略此属性。

在你的情况下,请看我的计数,因为我认为这最适合你。

如前所述,有几个因素可能会导致谷歌不显示它。

谷歌本身说:

  

当Google找到有效的评论或评分标记时,我们可能会展示一个丰富的代码段,其中包含来自评论或评分的星标和其他摘要信息。

关键字:MAY

https://developers.google.com/search/docs/data-types/reviews#review-snippets

根据我们经常做的经验,只需确保其格式正确并经过验证。