---
title: "How to Configure the Schema.org Metatag Drupal Module"
description: "When it comes to search engine optimization (SEO), schema SEO is one of the most commonly overlooked steps. Part of that is because it can be a pain to do manually. This is why we recommend using a..."
url: https://www.inmotionhosting.com/support/edu/drupal/drupal-schema-module/
date: 2021-04-05
modified: 2023-09-13
author: "InMotion Hosting Contributor"
categories: ["Drupal"]
type: post
lang: en
---

# How to Configure the Schema.org Metatag Drupal Module

When it comes to [search engine optimization (SEO)](https://www.inmotionhosting.com/support/website/seo/seo-getting-started-guide/), schema SEO is one of the most commonly overlooked steps. Part of that is because it can be a pain to do manually. This is why we recommend using a Drupal schema module. There are many free online tools that can help you create one, but many either lack in-depth features or require you to create an account first.

A good Drupal schema module is like a well thought out [XML sitemap](https://www.inmotionhosting.com/support/edu/drupal/drupal-xml-sitemap/): 

- Doing it once will help you stand out from your competition in search engine results. 
- Doing it in Drupal means most of the work is done automatically so you can focus on something else.

Below we’ll cover:

- [What is a Schema?](#what)
- [Installing the Schema.org Metatag Drupal Module](#install)
- [Configuring Schema.org Metatag](#configure)
  - [Drupal Schema SEO Tips](#schema)

Ignite your online presence with cutting-edge [Drupal Website Hosting](https://www.inmotionhosting.com/drupal-hosting). Elevate speed, security, and reliability for a seamless website experience.

## What is a Schema?

On the surface level, a [**schema**](https://schema.org/) is a reserved section of notable info for a brand, person, or website** **among search engine results. Below is a screenshot of our schema displayed to the right of Google search results.

![InMotion schema in Google results](https://www.inmotionhosting.com/support/wp-content/uploads/2021/04/schema-google-imh-1024x406.png)

On a technical level, a schema includes relevant brand information in a code block within your website. There are three primary methods for doing this. *JSON LD* adds the data within the `head` element. *RDFa* and *Microdata* add this data directly within the code of the content. JSON LD duplicates data but is most commonly used because [Google *recommends* JSON LD](https://developers.google.com/search/docs/guides/intro-structured-data).

As stated above, you can manually code a schema within an HTML page or PHP header file. However, a Drupal schema module can save you valuable time. There are a few that achieve the same thing. There’s a Drupal module simply called [Schema](https://www.drupal.org/project/schema), but it hasn’t been updated in years. 

So we’re going to cover how to use the [**Schema.org Metatag** Drupal module](https://www.drupal.org/project/schema_metatag). Then, we’ll test our schema with [Google’s Structured Data Testing Tool](https://search.google.com/structured-data/testing-tool/).

This Drupal schema module does not provide all schema options.

## Installing the Schema.org Metatag Drupal Module

This is the easiest way to install the Drupal metadata module.

1. [Log into Drupal](https://www.inmotionhosting.com/support/edu/drupal/how-to-log-into-the-drupal-admin-dashboard/).
2. Install the [**Metatag**](https://www.inmotionhosting.com/support/edu/drupal/drupal-metatag/) module if you haven’t already.
3. [Install the Drupal schema module](https://www.inmotionhosting.com/support/edu/drupal/install-2/) using the [**Schema.org Metatag**](https://www.drupal.org/project/schema_metatag) download link.
4. Click **Enable newly added modules**.
5. Schema.org Metatag adds over a dozen options to your *Extend* list for different uses. Select the checkbox for *Schema.org Metatag* and the most applicable schema type(s) for you. You’ll likely want to start with *Schema.org Organization*, *Schema.org Person*, or *Schema.org Website*.
6. At the bottom, select **Install**.

![Schema types in Drupal schema module](https://www.inmotionhosting.com/support/wp-content/uploads/2021/04/drupal-schema-org-module-1024x543.png)

## Configuring Schema.org Metatag

1. After enabling applicable schema types, select **Configuration** > **Search and metadata** > **Metatag** from your navigation menu.
2. To add the schema to all Drupal pages, simply select the **Edit** button to the right of *Global *and skip to step 7. To add the schema to specific pages, select the Metatag [*Settings*](https://www.inmotionhosting.com/support/edu/drupal/drupal-metatag/#config) tab. 
3. Click the *Entity type / Group Mapping* options you want to add schemas in and check the *Schema.org* box. Select *Content: Article* and *Content: Basic Page* to start. 
4. Select **Save configuration** at the bottom.
5. Select the **Metatag defaults** tab at the top. 
6. Select the **Edit** button for an entity type you selected earlier.Try [downgrading your PHP version](https://www.inmotionhosting.com/support/website/how-to-change-the-php-version-your-account-uses/) if you receive the error “The website encountered an unexpected error. Please try again later.”
7. Scroll down to the schema section to get started.
8. Once you’re done, select **Save** at the bottom.

### Drupal Schema SEO Tips

- Use Drupal tokens to auto-fill certain fields in the Metatag *Global* section. View available tokens with the *Browse available tokens* link at the top of your Metatag editor page.
- Learn more about schema types from [Schema.org](https://schema.org/docs/schemas.html).
- Search around to find template [schemas for musicians](https://bandzoogle.com/blog/how-to-optimize-your-band-schema), small businesses, books, products, etc.
- Always test your schema with the [Google Structured Data Testing Tool](https://search.google.com/structured-data/testing-tool).

Learn more from our [Drupal Education Channel](https://www.inmotionhosting.com/support/edu/drupal/).
