Drupal 8 SEO – Metatag module

By | August 11, 2019

[music] Hello and welcome. In this session we’re going to look at the of what is a meta-data. Meta-data is a set of data that describe and gives information about other data. Meta data is important for search engine in the optimisation. For example an article metadata describes who wrote it, what is it about, who are the audience, when it is done etc. Based on that search engine bring the search results to the user. Meta data gives more control to the author. The author can decide what a search engine displays about a page on the search results. W3C consortium has a set of meta data available. That is standard. There are other meta data groups, That constantly work to improve on it. One is called the Dublin core meta data scheme. The name Dublin of the capital of Ireland her and the Dublin he is not the capital of Ireland. It is a town in Ohaio, USA, that is where this name comes from. This Dublin core is also a very important meta data standard. Many government and universities use this a standard. I worked for the Australian government for many years and it uses AGLS meta data. AGLS means Australian Government Locator Service. It is used in all governmental organisations. AGLS is a way to discover discover digital objects across organisations. There are other organisations like a Facebook, twitter, Google they have their own subset of meta data. One is called the open graph protocol. It is a social graph meta data used by Facebook, that we can make use of it. These meta data used to integrate their website with their web applications. There are altogether 200-250 meta data schemes now widely used and accepted. You can pick and choose what you want. For Drupal there is a contributed module called metatag module that we can make use. We can install it and manage the meta data the way we want. Let us install metatag module on our site and configure it. The module is under project/metatag. Version 8 is now available. right click>copy>go to extend>install new module. Paste it. and install. Look for metadata. There are few of them. The top one is a must. The rest are optional. For our demonstration let us choose few. Dublin core, Face book, opengraph, twitter cards, Google Plus, whatever. There are few. I am just choosing few for demonstration purpose. and install. By the way there’s no need to choose them all. It is better only choose what you need. It says 7 modules has been enabled. Very good. Look us look at that. Configuration>Search and metadata>metatag. The metatags are applied on a hierarchical fashion. The global ones are applied first. The categies under it inherit the global ones. You can edit or add new metatags. For example Edit for global. Here you can modify the metatag any way you want. These are some of the ones we installed. under advanced>geographical position, location Canonical URL, means the preferred the URL .l so that it will eliminate duplicates. There are many other options available. In here you can see the page title, It can take the token the current page title and site name. If you want a change something, you can change it here. That will reflect on the entire website. Because it is the global one. You can chose to include any other token. Browse available tokens. You can select what is available from here. We’re not going to change anything at the moment. Let us edit a node and how the metatag look like there. go to content, let’s edit one of these pages. Drupal seo, install and config module. Click on it and edit. The metatag module should be here, somewhere. I can’t see it. It looks like it is not appearing on the edit menu in Drupal 8. It looks like we need to do something else! It could be design fault or a bug. Any way how do we get a meta tab here? Go to structure>and content time we just had a major said>content type. We will add a metatag field on the content type. For eg article>>manage field>add a field>select a field type, that is a metatag field type. The label is metatag cent continue safety settings who can are Save and continue. Save field settings. save it. Metatag field is now added. Let us go back to the site, and edit that page. Edit, now there’s a metatag tab. When you are editing this page, you can click on the metatag tab and add things you need. For example on this page you want node title the site name to appear. When we preview this page, we can see The title of the page and the site name. If you want change site name, go back to contend editing>and under metatag you can change something else. For example, Drupal learning. Save. Save and keep published. Have a look, you can see the page title, and an whatever the changed. That’s how you edit metatags. Whatever changes we make a on the pages is instant. For example look at the page source, You can see the title is Drupal 8 SEO | drupal learning. The metatag is applied straight away. As a mentioned earlier there are tons of metatags available. You only use what you need. But if you want to create your own, For example I want something specific to this discontent type, I can add. The type at the moment is only title and description defied. I can add another metatag. and select a type for an article. And you can type or add tokens or type something of your own. For example in the title I want a token, browse tokens, on the current page I want the title to go there, and that’s it. That is added. and save. That article content type overwrite what is on global. OK. That is how it works. Metadata is very important for search engine optimisation. and we should make use of it. Thank you for watching. Hello, If you like this tutorial please subscribe to this channel and share it with friends. Thank you.

4 thoughts on “Drupal 8 SEO – Metatag module

Leave a Reply

Your email address will not be published. Required fields are marked *