Skip to content

All checks / AI search (GEO)

Critical metadata only in client-side JavaScript (useEffect, onMount or onMounted)

A critical-level ai search (geo) check, run on every pull request and every CLI run.

Critical geo-ssr-hydration

In SEOCode's checks since 13 Sep 2026


Why this matters.

Critical SEO metadata, page title, meta description, og:image, or canonical URL, is being set inside a useEffect hook (React), onMount (Svelte) or onMounted (Vue), or inside Nuxt's <ClientOnly>, meaning it only exists after JavaScript executes on the client. AI crawlers (and Googlebot's first pass) process the server-rendered HTML before executing JavaScript. Metadata that only appears post-hydration is invisible to these crawlers, resulting in missing or incorrect data in AI-generated summaries and search previews. This is a silent failure, the page renders correctly for human visitors but the metadata AI engines need for citation is never seen.

Runs on .jsx .tsx .svelte .vue · Critical checks fail the pull request status, so the change cannot merge until it is fixed.


How to resolve it.

Move critical metadata out of useEffect and into server-rendered output. In Next.js App Router, use the Metadata API (export const metadata = { title: '...', description: '...' } or export async function generateMetadata()). In Next.js Pages Router, use next/head at the top level of the component, not inside useEffect. In Remix, use the meta() export. In SvelteKit, put the tags in <svelte:head> in +page.svelte or +layout.svelte, not in onMount. In Nuxt, call useHead() or useSeoMeta() at the top of <script setup>, not in onMounted or inside <ClientOnly>. In Astro, set metadata in the Astro component frontmatter inside <head>. Never set document.title or append <meta> tags inside useEffect or onMount for content that search engines or AI crawlers need to read.

SEOCode writes this fix for you

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.




Where we wrote about this.

New in SEOCode: GEO Rule Suite

Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

Free for public repositories · no credit card