How do I install a visitor ID tag on SvelteKit?

On SvelteKit, your visitor identification tag goes in: src/app.html <script> tag (with optional nonce='%sveltekit.nonce%' for CSP) OR component <script> tag with module context. The install itself takes minutes; the part that goes wrong on SvelteKit is below.

Where the tag goes

  1. src/app.html <script> tag (with optional nonce='%sveltekit.nonce%' for CSP) OR component <script> tag with module context.
  2. Paste your vendor’s tag snippet exactly as issued. Do not wrap it in extra script tags or reformat it.
  3. Publish or deploy, then verify (below) before trusting data.

What breaks visitor tracking on SvelteKit?

Multiple instance-level <script> tags can cause errors; wrap in 'if browser' check to avoid server-side execution.

How do you verify the tag fires?

npm run dev, open http://localhost:5173, check page source and DevTools for script execution.

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.

All platform install guides