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

8,679

Solution 1

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

Solution 2

JSON-LD should be included on the company home page for the company info. While you shouldn't use that on other pages, you should include JSON-LD on the other pages that provides the information on those pages.

  • Services pages should have rich snippets.
  • Menu pages should have rich snippets.
  • Product pages should have Schema as well.

The key is to place appropriate Schema on the pages that you wish to rank on the search engines. Every page's Schema should be different. If you have duplicate pages (pages that can be accessed with http or https, or pages with passed parameters, like example.com/page.php?a=1) make sure to include canonical references to the source page. This will cause search engines to view the pages the same and WILL effect analytics and ranking in a large way.

Solution 3

You can include multiple structured data objects on a page, as long as they describe user-visible page content. However, if you mark up one item in a list you must mark up all items; marking up just one category entity from all listed on the page is against our guidelines.

Examples: https://developers.google.com/search/docs/guides/sd-policies

Share:
8,679

Related videos on Youtube

KCCLEMO
Author by

KCCLEMO

Updated on September 18, 2022

Comments

  • KCCLEMO
    KCCLEMO over 1 year

    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>
    
    • unor
      unor almost 6 years
      What’s your motivation for adding it? Do you have a specific rich snippet in mind (if yes, which?), or do you ask about the best practice from a Linked Data perspective, no matter who the consumer of the data is?
  • KCCLEMO
    KCCLEMO almost 6 years
    Thank you! That helps a lot. I'll continue digging into that documentation and restructure the data on my site accordingly.
  • 00-BBB
    00-BBB over 4 years
    "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." How is this implemented? I can't find any info about it?
  • Tony McCreath
    Tony McCreath over 4 years
    It depends on the vocabulary you are using. In microdata its the itemid property, and in json-ld it's @id. If you use a common id whenever you reference something, then the systems can connect them as relating to the same thing.