Setup Module

bash
npx nuxt module add schema-org
Generate an Agent Skill for this package using skilld:
npx skilld add nuxt-schema-org
This module requires SSR for automatic schema generation. For SPA/CSR apps, manually add schema:
useHead({
  script: [{
    type: 'application/ld+json',
    innerHTML: JSON.stringify(yourSchema)
  }]
})

Verifying Installation

After you've set up the module, you should be able to visit your home page and inspect the Schema.org. You'll find the <script type="application/ld+json"> tag with the default Schema.org nodes near the </body> tag.

This is generated by the defaults Schema.org and you can modify the output if it's not what you need.

You can debug this further in Nuxt DevTools under the Schema.org tab.

Next Steps

It's recommended to use this module with Nuxt Robots so that the non-indexable paths are automatically excluded from adding Schema.org.

Robots v5.7.1
8.4M
512
Tame the robots crawling and indexing your site with ease.

Other suggestions:

Did this page help you?