# Install the tracking script in SvelteKit

Add the snippet to src/app.html so it loads on every page. SvelteKit's client-side navigation is tracked automatically.

Your snippet is in Settings → General of the website (the gear next to its name on the dashboard), with its id and domain filled in. The examples below use `YOUR_WEBSITE_ID` and `yourdomain.com`: replace them with yours.

`src/app.html`:

```html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <script
      defer
      supr-website-id="YOUR_WEBSITE_ID"
      supr-domain="yourdomain.com"
      src="https://supranalytics.app/js/script.js"
    ></script>
    %sveltekit.head%
  </head>
  <body data-sveltekit-preload-data="hover">
    <div style="display: contents">%sveltekit.body%</div>
  </body>
</html>
```

SvelteKit's client-side navigation is tracked automatically.

## Check it works

Open your website in a normal browser window, then the dashboard: the visit shows up within seconds, and the install card on a new website turns into the dashboard by itself. Nothing after a minute? See [Not seeing any data](https://supranalytics.app/docs/no-data.md).

---

This page on the web: https://supranalytics.app/docs/sveltekit
Every documentation page: https://supranalytics.app/docs.md
