Skip to main content
Add the tag to src/app.html, inside <head> and before %sveltekit.head%, so it loads on every route:
src/app.html
  • No hydration wait. pagent can’t tell when SvelteKit has finished hydrating, so data-await-hydration has no effect here. Leave it out.
  • Check your variants: open each test’s preview link once and check that the variant stays after the page has finished loading and after you navigate.
  • Navigation between routes is tracked automatically.
See Frameworks for the shared rules and the Content Security Policy.

Check it worked

  1. Deploy, then open your site in a private browser window.
  2. Back in pagent, click Check connection in the install step.
  3. Open a test’s preview link and check that the variant shows and stays after the page has finished loading.