The meta robots tag and why it matters for SEO
The meta robots tag sits in the head section of an HTML page and gives search engines, especially Google, instructions. It controls whether the page (URL) in question should be indexed and whether the links found on it should be followed or not.
In search engine optimisation, the tag is used for index management, which controls whether a page can be found. A URL must be captured (indexed) by the search engine before searchers can find it. Pages that are not in the index cannot be found.
Other ways to manage indexing
With index management, you signal to the search engine whether a URL should be included in the index or not. Besides the meta robots tag, these also influence which URLs Google finds, indexes or shows in search results:
- the X-Robots-Tag HTTP header, for example for PDF files
- the canonical tag
- the XML sitemap as a pointer to important URLs
- robots.txt for crawling
- temporarily hiding URLs from search results in Google Search Console
For international websites, hreflang annotations also tell Google about the language and country versions of a page. They do not control indexing.
The idea behind index management is, firstly, that not all pages of a domain need to be found. For example, the shopping basket page of an online shop does not provide any value for a search query. This is a purely operational page in the checkout process that does not have any standalone content. Secondly, search engines capture pages through links. As a website operator, you do not always want a linked page to be indexed by the search engine.
Meta Robots: index/noindex
The tag looks like this:
<meta name="robots" content="index" />
or
<meta name="robots" content="noindex" />
In the first case, the tag indicates that the page should be included in the index and be findable. The second variant states exactly the opposite. Without any rule, Google may index a page and follow its links anyway, so you do not need to specify index or follow. What matters are the restrictive values such as noindex, nofollow, none (noindex and nofollow combined), nosnippet, max-snippet and max-image-preview. For files such as PDFs, set the same values in the X-Robots-Tag HTTP header. As mentioned earlier, the basket page could be set to “noindex”. For which other pages does this make sense?
- All pages behind a login such as “My Account”, “My Wishlist” etc.
- The results page of the site’s own search function: this page is empty (if no search has been initiated) and is therefore of no use to visitors. Since the search engine cannot trigger searches, no filled page is to be expected either. Internal search results pages can also create any number of URLs without content of their own, so they do not belong in the index.
Sometimes shop managers use filled search results pages for internal linking (e.g., when the corresponding category is missing). That is another reason to set this page to noindex, as even filled search results provide no value and can worsen crawling. - Pages with session IDs
- Filter pages (depending on the case, instead of “noindex”, a canonical pointing to the unfiltered category page or, if the filter pages should not be crawled at all, exclusion via robots.txt can also be suitable; the former URL Parameters tool in Google Search Console was retired in 2022)
A common mistake is forgetting to set noindex (for example during a relaunch). When the search engine then starts to index pages, the page types described above also get into the index. Often, these pages are excluded via robots.txt. However, since they are already in the index, this is pointless. If the meta robots tag on these pages is set to noindex at the same time, this has two consequences:
- Search results (snippets) are enriched by the search engine with the note that the page is excluded.
- Nevertheless, the pages do not disappear from the index.
The robots.txt file controls crawling. Whether a page drops out of the index is controlled by noindex, and Google only sees that if it is allowed to crawl the page. Our article on robots.txt has more on this.
Meta Robots: follow/nofollow
With follow or nofollow in the meta robots tag, you specify whether search engines should follow the links on a page. Google follows links by default, so you only need the restrictive value:
<meta name="robots" content="nofollow" />
For individual links, there is the rel="nofollow" attribute. Our article on nofollow and dofollow explains when each value makes sense and how Google treats such links today.
