How to implement Rich Snippets
Structured data has become a very important component of SEO. You can use the Schema.org Metatag module (https://www.drupal.org/project/schema_metatag) to add Schema.org structured data as JSON LD on your Drupal website. Schema.org Metatag has a dependency on the Metatag
module (as the name implies). This module is a must-have on all Drupal websites that care about their SEO.
Google has a tool – Rich Results Test – to help you validate your pages: https://search.google.com/test/rich-results.
- Install the
Schema.org Metatag
module as usual. - Choose which Schema.org objects you want to add to your pages.
- I'm going to implement Schema.org Product for a Drupal Commerce store. Navigate to
/admin/config/search/metatag/settings
and activate Schema.org: Product for the Commerce Product entity: