Search engine optimization (SEO) is often at the top of the to-do list when planning a site. There was a time when the <meta> tag had been considered one way to help your pages rise to the top of a search engine result. Although that is not always the case anymore, it can still be useful to meta tags available to search engines so they can use it if they choose. It’s important to use meta tags in Drupal for better SEO. In this tutorial, we’ll explore the Meta tags module, a fast and easy way to add metadata to your nodes, terms, and users. If you used the Nodewords module in Drupal 6, this is the best replacement in Drupal 7.
How To Use Meta Tags in Drupal For Better SEO
Step 1 – Enable The Modules
Let’s install the Meta tags module and see what else it can do. The Meta tags module requires you to install three modules:
You will see that the Meta Tags module comes with additional modules you can enable, depending on the needs of your site. In this tutorial, we are focusing on the default Meta Tags module.
Step 2 – Configure Meta Tags Module
The Meta Tags module comes already configured but you can make changes.
- Click on Configuration in the black admin menu bar.
- Click on Meta tags in the Search and Metadata box on the left side of the screen.
Notice there are four global settings. Click on each and observe what you get by default. All nodes, terms, and users will have the same configuration by default. But that doesn’t have to be the case.
Step 3 – Add a Default Meta Tag
Lets configure the meta tags for the Article content type.
- Click on Add a meta tag default.
- Selet Article from the Type dropdown.
- Enter the token [node:content-type:description] in the abstract field.
When you create an Article node from now on, the description of the Article content type will appear as such:
<meta name=”abstract” content=”Use articles for time-sensitive content like news, press releases or blog posts.” />
Step 4 – Notice The Inheritance
The Article content type is node, obviously, therefore it appears under the Node metatag. You may have noticed that the default tokens were included in the Article meta tag. That’s because they were inherited but that doesn’t mean you can’t provided something else.
For example, you could place the [node:summary] token in the abstract and the [node:content-type:description] in the Description, it’s up to you. Of course there are other tokens you can choose from (see the link “Browse available tokens” at the bottom of the token edit form). Let’s see what this does when we create a node:
Go to Add content and add an Article. Scroll down and click on the Meta tags tab. Notice your options. We can see the token we added to the Articles meta tag but notice we can also edit these fields. Your users can do the same if they have permission.
Do Users Have to Enter Meta Tag Data?
The answer is no. As we have demonstrated so far, the fields in the meta tag module can be populated using the data associated with the token. For example, if we return the Configuration > Meta tags and click edit for the Article meta tag, we can add the token for the tag field that comes with the Article content type. This will automatically include the terms your user inserts into the Tags field. For my example, we entered the term Drupal into the Tags field and now my meta tag reflects the same.
<meta name=”keywords” content=”Drupal” />
Terms and Users
The process is the same when setting up meta data for vocabulary terms and users. As you might have guessed, your users might have the ability to add vocabulary terms to the Tags field but they aren’t given the opportunity to add meta data for that term. This is something you will need to take into consideration when planning the user of meta data via the Meta Tags module.
The permissions for the Meta Tags module are simple. You can administer and you can edit if you have permission to edit the node, term, or user. Another thing to note is the edit feature is an all or nothing deal. You might want to give users access to edit their meta data but restrict their ability to edit the meta data when they create a node. At this time, the level of permission granularity does not appear to an option.
Which Provider who can Give You The Best and Recommended Drupal Hosting?
Happily, there are several reliable and recommended Web hosting out there that can help you get a handle on site speed and work to increase your Drupal web rank. We are here to recommend you HostForLIFE.eu. HostForLIFE.eu is Microsoft No #1 Recommended Windows and ASP.NET Hosting in European Continent. Their service is ranked the highest top #1 spot in several European countries, such as: Germany, Italy, Netherlands, France, Belgium, United Kingdom, Sweden, Finland, Switzerland and many top European countries.
HostForLIFE.eu provides excellent customer support, unlimited bandwidth and disk space which are sure to be high on many people’s priority list in searching of the best and recommended Drupal hosting. They guarantee to provide 99.9% uptime and fast hosting speed for all their customers to run sites stably and rapidly. Not only that, they currently operates world class data center in 9 popular places across the world. In addition, the data center, servers and network are under 24×7 monitoring carried out by a group of technicians. So, you don’t have to worry about the hosting speed, they ensure your Drupal website will run smoothly on their server. You can get started on a their best and recommended Drupal hosting plan for as little as €3.00 per month, which is a pretty good deal.