Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.The Metatag module allows you to automatically provide structured metadata, aka "meta tags", about a website. In the context of search engine optimization, when people refer to meta tags they are usually referring to the meta description tag and the meta keywords tag that may help improve the rankings and display of a site in search engine results. In addition, the module provides support for meta tags (Open Graph Protocol from Facebook, Twitter Cards from Twitter) that allow control of how content appears when shared on social networks.
This project is the offical successor of the Nodewords module.
Dependencies
Features
- Supports a large number of commonly used meta tags, including the page title, canonical URL, description, etc, and for Facebook's Open Graph, Twitter Cards and Dublin Core via included submodules.
- Global settings to control meta tags on all pages.
- Per entity and per entity bundle to control default meta tags for all items of a certain type, e.g. all nodes of a certain content type.
- Ability to override meta tags on each entity object, e.g. to override meta tags on an individual node.
- Full support for entity revisions and workflows based upon revision editing.
- Customize meta tags for custom pages built using Views using included submodules.
- Individual permissions for each meta tag can be added via the Metatag Advanced Permissions.
- Extendable and flexible API for defining new meta tags.
Resources
- Full documentation is available: Metatag for Drupal
- A blog post from markconroy on how to use tokens to use core's Media fields with Metatag.
- How to create custom meta tags in 2.1.0; excellent blog post by Naveen Valecha.
Recommended / related modules
Some modules are available that extend Metatag with additional or complimentary functionality. Many related modules are available from the Metatag ecosystem page and that is the best place to find them.
The following are a noteworthy additions to Metatag's main functionality:
- Context Metadata:
Allow assignment of meta tags based upon different system contexts, e.g. per
path. - ECA Metatag:
Use Event-Condition-Action rules to dynamically set meta tags. - Maxlength:
If this module is installed, meta tags that have a maximum length defined in
the settings will have that maximum length enforced; this may be disabled in
the settings if it proves to be problematic. - Metatag AI:
AI-powered metadata generation and suggestions. - Metatag Async Widget:
Provides an asynchronous widget for editing meta tags. - Metatag Page Heading:
Automatically generates meta tags using page headings. - Metatag Webform:
Adds meta tag support to Webform pages. - Real-time SEO for Drupal:
Uses the [YoastSEO.js library and service](https://yoast.com/) to provide
realtime feedback on the meta tags. - Token Custom:
Allows creation of custom tokens without writing code. - Token Modifier:
Modify or transform token output before being used in metadata. - Token OR:
Provides a means to output a second token if the first one is empty, which can
be very useful for complex content architectures.
The following modules make additional meta tags available:
- Metatag Cxense:
Adds support for the Cxense meta tags used by their DMP and Insight services. - Metatag Google Scholar:
Adds support for a number of meta tags used with the Google Scholar system. - Schema.org Metatag:
Extensive solution for adding schema.org / JSON-LD support to Metatag.
Credits
Maintained since 2012 by Damien McKenna; initial development (2010-2012) by Dave Reid.
Past sponsors
- Mediacurrent
- Lullabot
- Palantir
- Acquia
Project information
- Project categories: Search engine optimization (SEO)
335,703 sites report using this module
- Created by avpaderno on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.


