Can JavaScript override an unfollow meta tag? Skip to main content
YUDHA SEO

follow us

Can JavaScript override an unfollow meta tag?

Suppose you are in a situation where you want Google to index certain pages, but you must use a template that uses the robots. txt "nofollow " meta tag. Can I use JavaScript to remove the tag when the page is fully represented for Google to index?


Using JavaScript can be a great way to overcome technical challenges, but it doesn't always work.

This question was recently published in the subreddit of TechSEO. John Mueller, a Senior trend analyst for webmaster Google, responded that Google will use the most restrictive configuration you have on the page, regardless of how it is included.

Using the "noindex " tag is almost the most restrictive condition you can apply to a page: it's literally telling Google to ignore the page. If a page has a "Noindex " in Static HTML, and JavaScript is used to delete it when the page is processed, Google will still see the "Noindex " and will comply with the request.

"Noindex" also overrides other metatags of robots. txt. For example, if you have a "noindex" + "index", then the "Noindex" will override the "index". In addition, if a page does not even have meta tags, and for some reason uses JavaScript to add a "noindex " tag, Google will accept the "NOINDEX " request.

The end result: JavaScript can be a very powerful solution for many limitations or requirements, but in the case of "NOINDEX " It just won't work to cancel the impact of a NOINDEX meta tag embedded in a template.

You Might Also Like:

Open Comment