Last updated on
31 January 2017

The Metatag module allows a site builder to automatically provide structured metadata, aka "meta tags", about the site and individual pages.

In the context of search engine optimization, providing an extensive set of meta tags may improve the site and page rankings, and may aid with achieving a more prominent display of the content within search engine results. They can also be used to tailor how content is displayed when shared on social networks.

The primary features include:

  • An administration interface to manage default meta tags.
  • D7: A set of advanced settings for fine tuning the module's functionality.
  • D7: Support for editorial workflow modules (Workbench Moderation, Revisioning) and internationalization modules (core, Entity Translation, Internationalization).
  • D8: Use of standard fields for entity support, allowing for translation and revisioning of meta tag values added for individual entities.
  • D7: Per-path control over meta tags using the "Metatag: Context" submodule (requires the Context module).
  • D7: Integration with the Views module allowing meta tags to be controlled for individual Views pages, with each display in the view able to have different meta tags, by using the "Metatag: Views" submodule.
  • D7: Integration with the Panels module allowing meta tags to be controlled for individual Panels pages, by using the "Metatag: Panels" submodule.
  • A large volume of meta tags available, including commonly used tags, Open Graph tags, Twitter Cards tags, Dublin Core tags, Google+ tags, App Links tags, site verification tags and more; all but the basic meta tags are kept in separate submodules.
  • D7: An API allowing for additional meta tags to be added, beyond what is provided by this module - see the included metatag.api.php for full details.
  • D8: A plugin interface allowing for additional meta tags to be easily added via custom modules.
  • D8: Integration with DrupalConsole to provide a quick method of generating new meta tags.

Intended workflow

The module uses tokens to automatically fill in values for different meta tags. Specific values may also be filled in.
The best ways of using Metatag are as follows:

  • Customize the global defaults, fill in the specific values and tokens that every page should have.
  • Override each of the other defaults, fill in specific values and tokens that each item should have by default. This allows all nodes to have different values than taxonomy terms.
  • Add more default configurations as necessary for different entity types and entity bundles, e.g. for different content types or different vocabularies.
  • D7: Individual entity objects (nodes, users, etc.) can be tailored as needed.
  • D8: To override the meta tags for individual entities, e.g. for individual nodes, add the "Metatag" field via the field settings for that entity or bundle type.