How do I install a visitor ID tag on Nuxt?
On Nuxt, your visitor identification tag goes in: nuxt.config.ts app.head.script OR useScript() composable in component. Note the plan gate: Nuxt 4.5.1+ with Nuxt Scripts module. The install itself takes minutes; the part that goes wrong on Nuxt is below.
Where the tag goes
- nuxt.config.ts app.head.script OR useScript() composable in component.
- Plan requirement: Nuxt 4.5.1+ with Nuxt Scripts module
- Paste your vendor’s tag snippet exactly as issued. Do not wrap it in extra script tags or reformat it.
- Publish or deploy, then verify (below) before trusting data.
What breaks visitor tracking on Nuxt?
Route changes in SSR mode may not fire pageview events; use Nuxt Scripts module for built-in performance optimization.
How do you verify the tag fires?
npm run dev, navigate between routes, check DevTools Network tab and console for script loads.
Then run through the labeled QA checklist before you rely on the numbers, and set expectations with the match-rate calculator — no vendor identifies every visitor.