Mobile app version of vmapp.org
Login or Join
Samaraweera270

: If I dynamically add a robots meta tag (via JS) will Google and other search engines recognize it? I want to have a chunk of JS in the middle of my page insert a meta-robots element into

@Samaraweera270

Posted in: #Javascript #MetaRobots #WebCrawlers

I want to have a chunk of JS in the middle of my page insert a meta-robots element into the <head> based on some arbitrary condition.

Will Google and other search engines recognize this tag the same way as if I hardcoded the HTML into the <head> section?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

2 Comments

Sorted by latest first Latest Oldest Best

 

@Angie530

Per these tests by adding robots meta tag will work: searchengineland.com/tested-googlebot-crawls-javascript-heres-learned-220157 (Adam Audette on May 8, 2015 at 12:32 pm).

10% popularity Vote Up Vote Down


 

@Bryan171

No. Google may sometimes execute Javascript to determine content, but it's a very bad idea to rely on Javascript for your site to be crawled as you want it to be.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme