Google Search Console中Schema.org代码片段问题:需指定offers等字段
解决方案
问题核心在于你通过makesOffer关联了Offer实体,Google对Product类型的富片段展示要求必须包含offers、review或aggregateRating中的至少一项——哪怕你的Product嵌套在Offer里,也会触发这个校验规则。
方案1:直接关联产品(无需触发富片段校验)
如果你的需求只是将产品与组织关联,不需要展示产品的富片段,可以跳过Offer层级,直接用Organization的product属性关联Product:
{ "@context": "https://schema.org", "@type": "Organization", "name": "Org Name", "product": [ { "@type": "Product", "name": "Product Name", "brand": "Product Brand", "image": "https://images.com/demo.png" } ] }
方案2:保留“提供”关系并满足校验
如果必须体现“组织提供该产品”的关系,又不想添加价格、评论等信息,可以给Offer补充以下属性来满足Google的校验要求:
- 给
availability设置为"https://schema.org/NotAvailable"或"https://schema.org/OutOfStock",明确产品当前不可购买 - 可选:添加
free: true表示产品免费,或者在priceSpecification中设置price: 0
调整后的代码示例:
{ "@context": "https://schema.org", "@type": "Organization", "name": "Org Name", "makesOffer": [ { "@type": "Offer", "availability": "https://schema.org/NotAvailable", "free": true, "itemOffered": { "@type": "Product", "name": "Product Name", "brand": "Product Brand", "image": "https://images.com/demo.png" } } ] }
核心逻辑:如果触发了Google对Product富片段的检测,就必须满足它的字段要求;如果只是做实体关联,直接用product属性更简洁,不会触发富片段校验规则。
内容的提问来源于stack exchange,提问作者BBM
相关产品推荐
相关产品推荐

