应使用review标记单条评论,aggregaterating标记整体评分统计;前者需嵌套在product下并含reviewrating、author、datepublished等必填字段,后者必须作为product的aggregaterating属性且含ratingvalue和reviewcount。

itemtype 应该用 Review 还是 AggregateRating?
itemtype 的选择取决于你要标记的是「单条用户评价」还是「整体评分统计」。
Review 表示某个人对某事物的具体评论(含文字、星级、时间、作者),适合每条评论卡片;
AggregateRating 表示聚合后的统计结果(如“4.7 分,共 128 条评价”),通常放在商品页顶部或摘要区。
- 单条评论必须用
@#@#@#@#@#@#@#@#@#@0,且需嵌套在@#@#@#@#@#@#@#@#@#@1或其他被评对象下 - 页面顶部的平均分不能只写
AggregateRating,必须作为Product的aggregateRating属性存在 - 混用会导致结构化数据校验失败(Google Rich Results Test 会报 missing field 错误)
怎么写合法的 Review itemtype 结构?
合法结构必须满足 Schema.org 定义的必填字段,否则搜索引擎可能忽略。核心是:用 itemscope + itemtype 包裹整条评论,关键属性用 itemprop 标注。
-
reviewRating必须是Rating类型,不能直接写数字;需嵌套ratingValue和bestRating -
author推荐用Person类型,name是必填项;别用cite元素——它语义是引用来源,不是作者 -
datePublished必须是 ISO 8601 格式(如2026-09-22),不能写“昨天”或“3天前” - 文字内容用
reviewBody,包裹在div或p中即可,无需额外itemscope
<div itemscope itemtype="https://www.php.cn/link/21b7e1c808c6a8b55d5309ea597c23b3">
<div itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating">
<meta itemprop="ratingValue" content="5">
<meta itemprop="bestRating" content="5">
</div>
<div itemprop="author" itemscope itemtype="https://schema.org/Person">
<span itemprop="name">李四</span>
</div>
<time datetime="2026-09-22" itemprop="datePublished">2026年9月22日</time><p itemprop="reviewBody">包装很用心,发货超快!</p>
</div>
AggregateRating 常见漏掉的 required 字段
AggregateRating 在 Google 搜索富媒体摘要中起决定性作用,但 80% 的页面因缺字段被降权。
-
ratingValue和reviewCount都是 required,缺一不可 -
bestRating虽为 recommended,但若你用 5 星制却没声明,Google 可能误判为 10 分制 -
itemReviewed必须指向一个有效的Product或Service,不能空着或写字符串 - 所有数值字段(
ratingValue,reviewCount,bestRating)必须是纯数字字符串,不能带单位或括号,比如"4.7"✅,"4.7分"❌
为什么 itemtype 放在 div 上却没被识别?
不是所有 itemscope 都能被解析,常见失效原因很具体:
-
itemtype的 URL 必须完整、准确,少一个斜杠(如@#@#@#@#@#@#@#@#@#@2)或协议不匹配(HTTP vs HTTPS)都会失败 - 父级
itemscope缺失:比如AggregateRating必须在Product内部,单独放 body 里无效 - 使用了
display: none或visibility: hidden的容器——Google 不索引不可见内容,即使结构正确 - 多个同级
itemscope共享 name 属性(如都叫rating),导致解析歧义
真正起作用的永远是「结构完整 + 字段齐全 + 可见可抓取」,而不是标签嵌得深不深。
前端入门到VUE实战笔记:立即使用
在学习笔记中,你将探索 前端 的入门与实战技巧!











