Ad

JSON-LD Loaded With JavaScript Not Recognized?

in the documentation, it is stated that JSON-LD can also be integrated via Javascript.

Based on this info, I've built a script that does just that.

Several days have passed and based on the search console, the site has been crawled multiple times since then. But when I look at the console for structured data, I'm still told that there are none on the page.

From the test tool, I get the information that the data is available and error-free.

Must the crawl process have gone through several times before it is detected? Is it not possible despite the documentation?

Here an expamle of our company JSON-LD:

<script type="application/ld+json">
  {
    "@context":"http://schema.org",
    "@type":"Organization",
    "name":"Name of our organization",
    "url":"our url",
    "logo":"link to our logo",
    "description": "short description",
    "address":{
      "@type": "PostalAddress",
      "addressLocality":"City and country",
      "postalCode":"postalcode",
      "streetAddress":"street"
    },
    "email":"our main email",
    "telephone":"phonenumber",
    "faxNumber":"fax number",
    "sameAs":[
      "https://www.facebook.com/our",
      "https://twitter.com/our",
      "https://www.instagram.coonenumber",
    "faxNumber":"fax number",
    "sameAs":[
      "https://www.facebook.com/our",
      "https://twitter.com/our",
      "https://www.instagram.com/our"
    ]
  }
</script>
Ad

Answer

I've seen live rich snippets show before that report showed anything. Like most GSC reports, you have to wait. Also, the initial crawl is not rendered, that happens later, so expect another delay because of that.

Ad
source: stackoverflow.com
Ad