问题原文
原帖链接 · 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
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
