VisitorLeadVisitorLead
Frameworks (Advanced)

SvelteKit

Install VisitorLead in SvelteKit's app.html.

Open src/app.html and add the script inside <head>:

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <script
      id="visitorleadjs"
      async
      src="https://ingest.visitorlead.tech/vl.js"
      data-code="YOUR_SITE_CODE"
    ></script>
    %sveltekit.head%
  </head>
  <body>
    <div>%sveltekit.body%</div>
  </body>
</html>

Verify

Run npm run dev and visit your site. VisitorLead → Sessions should record the session.

Official references

On this page