( PR4US.com | Press Release | 2018-10-18 13:30:43 )
London/UK â€“ 18th October 2018. Meta robots tags are something that youâ€™re almost inevitably going to come across if you work in SEO, but what are they, how do they work and how do they differ from the good old robots.txt? Letâ€™s find out.
What Is A Meta Robots Tag?
A meta robots tag is a snippet of code thatâ€™s placed in the header of your web page that tells search engines and other crawlers what they should do with the page. Should they crawl it and add it to their index? Should they follow links on the page? Should they display your snippet in search results in a certain way? You can control all of these with meta robots tags and, while there may be a bit more development resource required in certain content management systems, theyâ€™re generally more effective than robots.txt in a lot of regards. Iâ€™ll talk more about that later.
Typically speaking, a robots tag would look like this in your HTML source.
As you can see, itâ€™s comprised of two elements: the naming of the meta tag (robots, in this case â€“ meta tags have to declare their identity to work) and the directives invoked (the â€œcontentâ€ â€“ in this case, â€œnoindex, followâ€).
This is probably the most common meta robots tag that youâ€™ll come across and use; the meta robots noindex tag tells search engines that, while they can crawl the page, the noindex directive tells them that they should not add the page to their index. The other directive in the tag, the â€œfollowâ€ tells search engines that they should follow the links on the page. This is useful to know because even if the page isnâ€™t in the search engine index, it wonâ€™t be a black hole with the flow of your siteâ€™s authority â€“ any authority which the page has to pass to others, either on your site or off, will still be passed by using the â€œfollowâ€ directive.
If you wanted to completely void that page and not have any links on there followed, the tag would look like one of the following:
By adding the â€œnofollowâ€ attribute, you are telling search engines to not index the page, but also not to follow any links on that page, internal or external. The â€œnoneâ€ directive is effectively the same as combining noindex and nofollow, but itâ€™s not as commonly used. In general, we recommend â€œnoindex,followâ€ if you need to noindex a page.
What Other Meta Robots Tags Are There?
Now weâ€™ve covered the anatomy of the most common meta robots tag, letâ€™s take a look at some of the others:
â€¢ noimageindex: Tells the visiting crawler not to index any of the images on the page. Handy if youâ€™ve got some proprietary images that you donâ€™t want people finding on Google. Bear in mind that if someone links to an image, it can still be indexed.
â€¢ noarchive: This tag tells search engines not to show a cached version of the page.
â€¢ nosnippet: I genuinely canâ€™t think of a viable use case for this one, but it stops search engines showing a snippet in the search results and stops them caching the page. If you can think of a reason to use this, ping me on Twitter @ben_johnston80.
â€¢ noodp: This tag was used to stop search engines using your DMOZ directory listing instead of your meta title/ description in search results. However, since DMOZ shut down last year, this tag has been depreciated. You might still see it in the wild, and there are some SEO plugins out there that still incorporate it for some reason, but just know that since the death of DMOZ, this tag does nothing.
â€¢ noydir: Another one that isnâ€™t really of any use, but youâ€™re likely to see in the wild and some SEO plugins push through â€“ the noydir tag tells search engines not to show the snippet from the Yahoo! Directory. No search engines other than Yahoo! Use the Yahoo! Directory, and Iâ€™m not sure anyone has actually added their site to it since 2009, so itâ€™s a genuinely useless tag.
When Should You Use Meta Robots Tags?
There are a number of reasons to use the meta tags over robots.txt, but the main one is the opportunity to deploy them on a page-by-page basis and have them followed. They are typically more effective than robots.txt and robots.txt works best when itâ€™s used on a by-folder basis rather than a by-URL basis.
Essentially, if you need to exclude a specific page from the index, but want the links on that page to still be followed, or you have some images that you donâ€™t want indexed but you still want the pageâ€™s content indexed, this is when you would use a meta robots tag. Itâ€™s an excellent, dynamic way of managing your siteâ€™s indexation (and there are loads of other things that you can do with them, but thatâ€™s another post).
But hereâ€™s the challenge: itâ€™s really easy to add another line to your robots.txt file, but with some content management systems, itâ€™s not that easy to add a meta tag to a specific page. Donâ€™t worry, Google Tag Manager has you covered.
Adding Meta Robots Tags Through Google Tag Manager
If you have Google Tag Manager installed on your site to handle your tracking (and, seriously, why wouldnâ€™t you?), you can use it to inject your meta robots tags on a page by page basis, thus eliminating the development overhead. Hereâ€™s how.
Firstly, create a new Custom HTML tag, incorporating the following code:
Replace YOURDIRECTIVE1, YOURDIRECTIVE2 with what you want it to do (noindex, follow, for example) and if you want to remove one of the directives, thatâ€™s fine. The screenshot below will show you how to do this.
Now create a trigger and set it to only fire on the pages you want the meta robots tag to apply to, as seen below.
And there you go, thatâ€™s how you can inject your meta robots tags through Google Tag Manager. Pretty handy, right?
And Weâ€™re Done
Hopefully todayâ€™s post has given you a better understanding of what meta robots tags are, what youâ€™d use them for and how to use them.
ABOUT THE AUTHOR
Ben Johnston is the Head of SEO at ESV Digital
With ten yearsâ€™ digital agency experience, Ben is a copywriter, SEO specialist, Google Analytics expert and data analyst. He handles installations, tracking and analysis for UK clients and he heads up the SEO and Data Analytics business units. Ben loves bringing the breadth of his experience to clients in many different verticals and prides himself on being able to find the best solution to almost any problem, no matter the channel or issue.
ABOUT ESV DIGITAL
is a London-based Search Marketing Agency specialising in Paid Search, SEO, Data Analytics, Algorithmic Attribution and Online Branding.
The core mission of the company is to maximise the ROI and business growth for all their clients, no matter the service type, scope or size. They are international specialists with over 12 languages spoken in-house, across 10 offices in 8 countries and over 200 clients globally.
As part of the global ESV Group (an independent), they are pioneers and provide innovative technologies and the best practice methodologies.