Schema.org structured data with Next.js and DatoCMS

We use schema.org for rich snippets on Google throughout our website, mainly FAQs, product reviews, and video. Now that we are migrating website to DatoCMS and NextJS, I need to take this into account as well.

Does anyone have any suggestions for handling/serving schema.org structured data from DatoCMS to NextJS pages?

I am planning to building two models in DatoCMS:

  • FAQ for handling FAQs data for schema.org
  • Reviews for handling product reviews
  • In the product and page model I would have relational links to the above FAQ and Reviews models

Some of my basic questions:

  1. Is it best to save Json-ld in the DatoCMS models and insert that directly to Header in Next.JS? Or would you advice to generate schema.org code directly in Next.JS and just fetch content and properties from DatoCMS?

  2. Any recommendation on NexJS or React package to handle schema.org on page? Maybe GitHub - garmeeh/next-seo: Next SEO is a plug in that makes managing your SEO easier in Next.js pr?

Thanks on the input.

Primoz

No-one is using schema.org on the website :slight_smile: ?