Improving SEO through Dynamically Generated JSON-LD

adamzimmermann

Structured data is an important tool that gives our content meaning and provides significant benefits to search engines. Unfortunately, the traditional way of applying it as attributes on HTML tags isn't easy to implement or maintain, especially across a large number of Drupal templates. Not to mention, it's difficult to know what you even need and where.

Thankfully, an easier alternative has emerged: JSON-LD. We will explore how JSON-LD is simpler to understand, implement, test, and validate. Also, if you are already working with JSON-LD and have seen your templates inherit a mess of JSON, we can fix that too!

During this session we cover how to easily and dynamically add JSON-LD markup to every page for global elements and individual entities with no additional templates, template alterations, or messy preprocess logic.

Attendees should have a basic knowledge of structured data along with some experience with writing custom modules for Drupal 8.

Session Track

UX/Content Strategy

Experience Level

Intermediate

Drupal Version