6

Some structured data (namely price) of my page is rendered by JavaScript. According to fetching results in Webmaster tools Googlebot sees and renders it perfectly.

However the structured data tool only sees the HTTP response w/o any scripting applied.

Is it really so? Does Googlebot is more intelligent then structured data analysis and some workarounds like JSON-LD must be added?

  • 1
    Yes. The tool is likely not as sophisticated as googlebot. – closetnoc Mar 9 '16 at 14:55
3

Indeed, Googlebot is a kind of browser, which proceeds javascript - testing tool doesn't.

With JSON-LD, if loaded by javascript, you will achieve the same effect you get now: search console sees your structured data, testing tool doesn't.

To make testing tool gets your data, the data must be present in the source code at the moment of testing, independently like what, json-ld or microdata.

But if you are sure, that your structured data is error-free, so let it be implemented like it currently is. Just be sure, that your javascript, which makes structured data rendering:

a) doesn't triggered by any action, like click, scroll, onerror etc.

b) doesn't have long time gap after onload (sometime Googlebot will quit waiting and gets off).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.