Skip to content
SEWWA

Schema guides Platform

How to add schema to Gatsby

Category: framework

Plugins and apps

Manual implementation

Inject `<script type="application/ld+json">` via Helmet in layouts or `onRenderBody`; source fields from GraphQL queries.

Troubleshooting

Overview

Gatsby's build-time GraphQL is ideal for JSON-LD: each template query can assemble Article, Product, or LocalBusiness nodes from CMS data.

Keep JSON-LD generation in SSR/build paths, not browser-only effects, so crawlers see complete graphs.

Try the free Schema Generator →