Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema not showing up in Structured Data Tool #7

Open
axelferb opened this issue Nov 28, 2019 · 3 comments
Open

Schema not showing up in Structured Data Tool #7

axelferb opened this issue Nov 28, 2019 · 3 comments

Comments

@axelferb
Copy link

Would there be a reason why, when putting my webpage in the STD (https://search.google.com/structured-data/testing-tool/u/0/) that it would not detect schema on the site when using this method in react? What it actually prints on the page looks fine (see below).

Would this still be fine for SEO even though it does not find it in the structured data tool?

<script type="application/ld+json">
{"@context":"https://schema.org","@type":"FinancialService","legalName":"Sambla AS","name":"Sambla","logo":"https://s3-eu-west-1.amazonaws.com/tpd/logos/55152ede0000ff00057e5303/0x0.png","image":"https://s3-eu-west-1.amazonaws.com/tpd/logos/55152ede0000ff00057e5303/0x0.png","telephone":"33222970","url":"https://www.sambla.no","email":"kundeservice@sambla.no","address":{"@type":"PostalAddress","streetAddress":"Arbins gate 2","addressLocality":"Oslo","postalCode":"0253"},"openingHours":["Mo,Tu,Th 09:00-20:30","We 13:00-20:30","Fr 09:00-17:00"],"priceRange":"10000 - 500000"}
</script>
@Eyas
Copy link
Collaborator

Eyas commented Dec 2, 2019

According to https://developers.google.com/search/docs/guides/intro-structured-data#structured-data-format it should be fine:

Also, Google can read JSON-LD data when it is dynamically injected into the page's contents, such as by JavaScript code or embedded widgets in your content management system.

Note that you can get the Structured Data Testing Tool to work just fine if your setup implements server-side rendering for react.

@pavanshinde47
Copy link

If we don't use server side render... will it still work?

@Eyas
Copy link
Collaborator

Eyas commented Mar 23, 2020

Hi @pavanshinde47 see my above comment, this is specifically referring to the case where SSR is not enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants