Answer the question
In order to leave comments, you need to log in
Does Yandex support dynamically added json-ld?
Any documentation provides an example of injecting json-ld into the page's source code. I see a number of problems with this:
<script type="application/ld+json">{json-ld}</script>
<link href="path_to/json_ld_file" type="application/ld+json">
const xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
const script = document.createElement('script');
script.type = 'application/ld+json';
script.innerText = xhr.response;
document.head.appendChild(script);
}
};
xhr.send();
Answer the question
In order to leave comments, you need to log in
No. Yandex does not support json-ld in the search engine (only in mail), so it makes no sense to think about adding it dynamically on the site pages.
That. I continue to use the microdata format on the pages, and I use the dynamically added json-ld to pass additional parameters to Google.
Write to Webmaster's technical support, they will answer you in detail. And if you also post the answer of technical support here, you will get a plus sign from the community as a karma)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question