Docs
Install

Svelte

One component in your root layout.

Packages are on their way to npm

Until @usejot/svelte is published, the script tag in app.html does the same job today.

npm install @usejot/svelte
src/routes/+layout.svelte
<script>
  import { JotWidget } from "@usejot/svelte";
</script>

<slot />
<JotWidget config={{ projectKey: "jot_pk_your_key" }} />

The component mounts the widget in onMount, so it never runs during SvelteKit's server render, and removes it when the layout unmounts.

Every script option is a key of config: trigger, edge, offset, environment, autostart.