Imagine you’re playing a game of hide-and-seek with your friends. You can choose to either hide in plain sight or disappear completely. You can also choose to leave clues that lead your friends to other hiding spots or keep those connections secret. The meta robots tag gives you a similar kind of control over how search engines interact with your web pages.
What is the Meta Robots Tag?
The meta robots tag is a snippet of code that sits in the <head> section of your HTML. It gives specific instructions to search engine crawlers about how to handle that particular page. Think of it as a personalized note to Google, Bing, and other search engines.
The Two Main Directives
The meta robots tag uses two main directives to control search engine behavior:
- index/noindex: This tells search engines whether or not to include the page in their index. An indexed page can show up in search results, while a noindexed page is hidden from view.
- follow/nofollow: This tells search engines whether or not to follow the links on the page. If you choose “follow,” search engines will crawl and potentially index the linked pages. If you choose “nofollow,” search engines will ignore those links.
Visualizing the Directives
Think of your website as a network of interconnected rooms. Each room is a web page, and the doorways are links.
- index, follow: The door is wide open, and search engines can enter the room (index) and explore the connected rooms (follow links).
- noindex, follow: The door is closed, but there’s a sign pointing to other rooms. Search engines can’t enter this room (noindex) but will follow the signs to other rooms (follow links).
- index, nofollow: The door is open, but all the doorways inside are blocked. Search engines can enter this room (index) but can’t explore any further (nofollow links).
- noindex, nofollow: The door is locked, and there are no signs. Search engines can’t enter this room (noindex) or find any connected rooms (nofollow links).
How to Use the Meta Robots Tag
The meta robots tag is placed within the <head> section of your HTML like this:
HTML
<meta name=”robots” content=”index, follow”>
You can change the content attribute to any combination of the directives:
- index, follow (default)
- noindex, follow
- index, nofollow
- noindex, nofollow
When to Use Each Directive
- index, follow: Use this for most of your pages that you want to be visible in search results.
- noindex, follow: Use this for pages that you don’t want to appear in search results but still want search engines to discover linked pages, such as “Thank You” pages or internal search result pages.
- index, nofollow: Use this for pages that you want to be visible in search results but don’t want to pass link authority to the linked pages, such as pages with user-generated content or affiliate links.
- noindex, nofollow: Use this for pages that you want to completely hide from search engines, such as admin pages, staging sites, or pages with sensitive information.
Important Notes
- The meta robots tag only provides instructions. Search engines can choose to ignore them in some cases.
- Always check the rendered HTML to ensure the meta robots tag is present and correct. JavaScript can sometimes modify or remove the tag.
- You can use Google Search Console to check the indexing status of your pages and troubleshoot any issues.
Conclusion
The meta robots tag is a valuable tool for fine-tuning how search engines interact with your web pages. By understanding its directives and how to use them effectively, you can control which pages are indexed, how link authority is passed, and ultimately improve your website’s SEO performance. Remember to use the meta robots tag strategically and test your implementation to ensure it’s working as intended.
Is your website lost in the search results? Don’t let technical SEO challenges hold you back. Olibro’s team of SEO experts can help you navigate the complexities of robots.txt, meta tags, redirects, and more. Get in touch to find out how we can improve your website’s visibility and achieve your online goals. See our full range of SEO services here.