大网数据广告活动
网站运营与故障问答

Can you have multiple schemas markups of the same type on one page?

· 52CE 我爱测

I'm a dev for an AEM site and we have an FAQ Component that generates schema markup JSON with "@type": "FAQPage" for Google. The issue is if the author adds two FAQ components to a single page there will be two schemas with the "…

问题原文

原帖链接 · jmona789 · CC BY-SA 4.0

I'm a dev for an AEM site and we have an FAQ Component that generates schema markup JSON with "@type": "FAQPage" for Google. The issue is if the author adds two FAQ components to a single page there will be two schemas with the "@type": "FAQPage" in two different script blocks on the same page. Is this allowed and best practice, or do I have to add something on the back end that will just generate one schema for all the FAQ components on a certain page?

已采纳解答

原帖链接 · Mike Ciffone · CC BY-SA 4.0

Unfortunately, no, FAQPage should only be defined once per page. This is because a single array object is expected.

Required Properties

MainEntity
Question - An array of Question elements which comprise the list of answered questions that this FAQPage is about. You must specify at least one valid Question item. A Question item includes both the question and answer.

So if you want your pages to be eligible for rich results on Search and/or Actions on Google Assistant, you're going to have to work out a solution that generates one schema.

Some other helpful guidelines:

  • The same FAQ content should not be used on multiple pages
  • FAQ rich snippets on mobile typically choose the first 3
  • Accordions are not a problem, and they won't be perceived as cloaking.
  • You can't add schema for content that doesn't exist on the page you're adding it to.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2022-06-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。