我的结构数据有什么问题?

时间:2015-09-26 10:28:54

标签: seo google-webmaster-tools rich-snippets google-rich-snippets

我们的丰富网页摘要突然消失了4个多月,GWT报告了一些错误,我纠正了所有内容,错误现在正在减少(仅剩下5个)。这是我的代码:

<section class="c-center" itemscope itemtype="http://schema.org/Product">
    <div>
        <h1><span itemprop="name">Product name</span> <span itemprop="brand" class="brand"><a href="/link-to-brand/">Brand of product</a></span></h1>
        <div id="reviews" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
            <div class="rating">
                <meta itemprop="ratingValue" content="4.8" />
                <meta itemprop="ratingCount" content="56" />
                <div class="fill" style="width:96%"></div>
                <div class="stars"></div>
            </div>
            <div class="rating-info">
                <a href="#ratings-reviews">Based on 56 reviews</a> - <a href="#">Write a review</a>
            </div>
        </div>
    </div>

    <div id="img">
        <img src="/link-to-image.jpg" alt="Img alt" itemprop="image" />
    </div>

    <div id="info">
        <meta itemprop="url" content="site.com/link-of-product/">
        <div id="price-container" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
            <meta itemprop="priceCurrency" content="EUR">
            <meta itemprop="gtin13" content="1234567899999">
            <span class="price" itemprop="price">19,95 €</span> <del>28,50 €</del> -
            <span class="stock"><link itemprop="availability" href="http://schema.org/InStock">Available</span>
        </div>
    </div>
</section>

这是我的问题:
1-有什么不对吗?
2-我在许多帖子中看到货币不应该在itemprop="price"中,但在谷歌示例中,它们确实包括它!我该怎么办?
我应该使用ratingCount还是reviewCount
4-某些产品有不同的尺寸和不同的价格,建议包含价格最低和价格最高的AggregateOffer

非常感谢

1 个答案:

答案 0 :(得分:1)

它是如何在视觉上出现的?

structured data linter显示了一个看起来不错且具有星级评分的典型代码段,并且Google的工具中没有错误。突出的两件事是:

  • url没有协议,设置为http://yoursite.com/page1
  • 价格应仅为数字,这可能会影响搜索结果,货币是一个单独的字段,因此不应嵌入价格中
  • 使用<meta>为您的价格设置一个完整的止损作为分隔符,而不是逗号,并将大值设置为1234567.89而不是1,234,567.89或1.234.567,89,但显示为正常情况
  来自http://schema.org/

price信息      

使用priceCurrency属性(使用ISO 4217代码,例如“USD”),而不是在值中包含含糊不清的符号,例如“$”。

     

使用'。' (Unicode'FULL STOP'(U + 002E))而不是','表示小数点。避免将这些符号用作可读性分隔符。

     

请注意,RDFa和Microdata语法都允许使用“content =”属性来发布简单的机器可读值以及更加人性化的格式。

     

使用0123456789(Unicode'DIGIT ZERO'(U + 0030)到'DIGIT NINE'(U + 0039))中的值,而不是表面上类似的Unicode符号。

google实际上在policies page

中提供了此示例
<span itemprop="priceCurrency" content="USD">$</span><span itemprop="price">119.99</</span>
  • 之前的报价,您可以在<del>结构化数据中包含已过期的报价,且priceValidUntil设置为过去的日期,当前价格也可以有到期日。

  • 考虑将itemCondition设置为http://schema.org/NewCondition

  • 图片网址 - 我注意到完整的网址起始路径而不是相对路径似乎是首选 - 您的/link-to-image.jpg被解释为http://example.com/link-to-image.jpg而不是http://site. com/link-to-image.jpg测试工具,我不确定从URL直接测试是否相同,但最好不要太过分了

  • 最后使用购物搜索工具,包括谷歌购物搜索畅销书,查看是否可以按价格,品牌,可用性等找到它。如果竞争对手网站首先出现,您甚至可以检查结构化数据测试人员使用他们的URL来查看您是否遗漏了任何内容