首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Schema在Google上的明星评分错误

使用Schema在Google上的明星评分错误
EN

Stack Overflow用户
提问于 2016-06-20 12:04:47
回答 1查看 374关注 0票数 1

我正在尝试在我的Google列表中执行“评论评级”模式。

我的“总分”结构如下:

代码语言:javascript
复制
<div class="span7" itemscope itemtype="http://schema.org/Place">
    <div class="stars" onclick="document.location.href='http://www.chambresdhotes.org/cgi-bin/links/review.cgi?ID=65995'" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
        <span class="badge badge-success">5 avis</span>
        <meta itemprop="bestRating" content="10" />
        <meta itemprop="worstRating" content="8" />
        <meta itemprop="ratingValue" content="9.2" />
        <meta itemprop="ratingCount" content="5" />
    </div>
</div>

然后,对于页面上的每一篇评论,我也有:

代码语言:javascript
复制
<div class="reviewBox" itemscope itemtype="http://schema.org/Review">
    <meta itemprop="author" content="Patrice" />
    <meta itemprop="itemreviewed" content="Les Collinades" />
    <div class="reviewRating" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
        <span class="link-rating"><span class="rating-5"></span></span>
        <meta itemprop="bestRating" content="5" />
        <meta itemprop="ratingValue" content="5" />
    </div>
</div>

在这里对Google工具执行模式检查时,这一切都会显示出来:

https://search.google.com/structured-data/testing-tool#url=http%3A%2F%2Fwww.chambresdhotes.org%2FDetailed%2F65995.html

评审的“总体”排名/数量等:

然后是...and,个人复习分数:

然而,当你来到这里的时候,它是错误的:

https://www.google.fr/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=site:www.chambresdhotes.org+Detailed%2F65995.html

我有点搞不懂它为什么要这么做。我遗漏了什么?

谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-06-20 12:10:17

看起来你已经填写了bestRatingworstRating,给你的企业带来了最好的和最差的评级。然而,这些都是用来定义最好的,可能的和最坏的评级。

以您的例子为例,我假设您的客户可以将您的业务打分在1到10之间,因此,bestRating必须是10,而worstRating必须是1

然后,您必须自己计算平均总体评级,并将其置于ratingValue下。

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

https://stackoverflow.com/questions/37922156

复制
相关文章

相似问题

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