A
A
Anton Peat2014-07-27 17:47:20
HTML
Anton Peat, 2014-07-27 17:47:20

Is what is printed via js indexed?

For all my sites, I wrote a js code - document.write(''), inside which is my personal social block with links to my other resources. As I create new sites, I can only edit one file, which is very convenient. But the question is: in Yandex webmaster there is such a thing as "external links to the site." Will the search engine add tags printed on my pages via JS to the list of these external links?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Pavlov, 2014-07-27
@lexxpavlov

Neither Google nor Yandex can index pages that are shown by javascript, at least not automatically.
But both Google and Yandex can be taught this .
In order for search engines to be able to index ajax pages, you need to prepare the site in a special way.
For example, you have a website www.example.com. And you make several pages loaded via ajax, for example, you have the following pages:

www.example.com/#!first
www.example.com/#!second
www.example.com/#!third

(important to add an exclamation point!)
After that, you need to prepare a script on the server that will produce the same content as the ajax version (otherwise there may be problems).
The following pages need to be made available
www.example.com/?_escaped_fragment_=first
www.example.com/?_escaped_fragment_=second
www.example.com/?_escaped_fragment_=third

And then the search engine will be able to index your site. And no one will execute your javascript, all of a sudden you are mining bitcoins there. (although there have been talks that Google executes scripts to check something there).
Here is an article about it in Google , but in Yandex .
Here's an article on how to set it all up.

A
Anton Peat, 2014-07-28
@id_aspin

As I said earlier, there is only a social block, so much fuss is not for me, and it’s pointless to be honest ... It’s easier to add and update this code on all these sites separately

Q
Quber, 2014-11-08
@Quber

Google is the developer of the Google Chrome browser. Do you think it has tools for parsing JS code?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question