How to fix missing schema webpage on Nuxt.js
Add WebPage schema markup to every page so search engines and AI answer engines can precisely understand and describe your content.
Steps for Nuxt.js
- Create a reusable composable `composables/useSchemaOrg.ts` that accepts page-level overrides and returns both a `WebPage` and `Organization` JSON-LD object, sourcing site-wide values (name, URL, logo) from `useRuntimeConfig` / `app.config.ts`.
- In `app.config.ts` (or `nuxt.config.ts` → `runtimeConfig.public`), add your site-wide Organisation fields: `siteName`, `siteUrl`, `logoUrl`, `socialProfiles[]` so they are available everywhere without hard-coding.
- In every page component (e.g. `pages/index.vue`, `pages/products/[slug].vue`), call `useSchemaOrg()` with page-specific values (`name`, `description`, `url`, `breadcrumb`, `dateModified`, etc.) and inject the result into `<head>` via Nuxt's `useHead()` composable as a `<script type='application/ld+json'>` tag.
- For dynamic routes (PDPs, PLPs, blog posts), forward the SSR-fetched product/collection data directly into `useSchemaOrg()` inside the same `<script setup>` block so the JSON-LD is rendered server-side and present in the initial HTML.
- Use Nuxt Devtools (or `curl` + `grep 'application/ld+json'`) to verify the tags appear in the SSR-rendered HTML, then validate the output with Google's Rich Results Test and Schema.org validator.
What is missing schema webpage?
Schema markup is a small block of invisible, structured code you add to a web page that tells search engines and AI systems exactly what the page is — its title, description, URL, and type. The `WebPage` schema type is the foundational label that says "this is a web page, here is its name, here is what it's about." Without it, search engines and AI tools have to guess this information by reading your page like a human would, which is less reliable. Think of it like a name tag for your page that any machine can instantly read.
Adding `WebPage` schema directly supports Answer Engine Optimization (AEO) — the emerging discipline of making your content eligible to be quoted or cited by AI assistants like Google's AI Overviews, ChatGPT, and Bing Copilot. AI systems rely heavily on structured data to identify authoritative, trustworthy sources to pull answers from; a missing `WebPage` schema means your pages are less likely to be chosen. It also strengthens your baseline for rich results eligibility and helps Google correctly index and understand every page on your site, which supports rankings and organic traffic. For ecommerce stores in particular, this can mean more product pages, category pages, and content pages surfacing in both traditional search results and AI-generated answers.
See the complete Missing schema webpage guide for every platform and the full background.
Not sure if your Nuxt.js store has this?
Run a free SEOLZ scan — we’ll find missing schema webpage and every other issue across your whole site.
Scan my site free