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

Do I need JSON-LD on all pages or just the home page?

· 52CE 我爱测

Below is an example of the JSON-LD I've added to my home page (company name removed). My question, is it generally recommended that this be added to all pages of a site, or just the home page? <script type="application/ld+json" i…

问题原文

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

Below is an example of the JSON-LD I've added to my home page (company name removed).

My question, is it generally recommended that this be added to all pages of a site, or just the home page?

<script  type="application/ld+json" id="website-json-ld">
{
    "@context":"http://schema.org",
    "@type":"WebSite",
    "name":"Company Name, LLC.",
    "alternateName":"Best Company",
    "url":"https://www.company.com"
}
</script>
<script  type="application/ld+json" id="social-json-ld">
{
    "@context":"http://schema.org",
    "@type":"Organization",
    "name":"Company Name, LLC.",
    "url":"https://www.company.com",
    "sameAs":[
        "https://forum.company.com/",
        "https://www.facebook.com/company",
        "https://www.youtube.com/user/company",
        "https://www.instagram.com/company/",
        "https://twitter.com/company",
        "https://www.linkedin.com/company/company",
        "http://www.houzz.com/pro/company/company-llc",
        "https://plus.google.com/+company"
    ]
}
</script>

已采纳解答

原帖链接 · Tony McCreath · CC BY-SA 4.0

Google uses the phrase "Include the contact markup on one page in your official site" in relation to the Organization information you are adding.

https://developers.google.com/search/docs/guides/enhance-site

Typically you would add it to the home page or contact page. i.e. pages that talk about the organization.

Don't add it to pages on other subjects unless it is part of some other entity. I.e. the publisher of an article. Then, you only need to provide basic details including an id and url so that systems can connect the partial organization with your more detailed one on another page.

Google no longer seems to talk about the use of WebSite in that way. It used to help in mobile search results. I recall that they said only on the home page.

Another use for WebSite states "Implement the WebSite structured data element on the homepage for your site".

https://developers.google.com/search/docs/data-types/sitelinks-searchbox

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

资料来源与适用范围

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

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

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