ActionLab Analytics for Svelte / SvelteKit
Add privacy-first, AI-powered analytics to your Svelte / SvelteKit site in under 60 seconds. No cookies, no consent banners, no complex setup.
Installation Code
Svelte / SvelteKit
<!-- In your app.html or +layout.svelte -->
<svelte:head>
<script
src="https://cdn.actionlabanalytics.com/actionlab.js"
data-site="YOUR_SITE_ID"
defer
></script>
</svelte:head>Step-by-Step Setup
- 1
Open your src/app.html or src/routes/+layout.svelte file.
- 2
Add the ActionLab script in a <svelte:head> block or the <head> section.
- 3
Replace YOUR_SITE_ID with your actual site ID.
- 4
SvelteKit navigation is tracked automatically.
Why Use ActionLab with Svelte / SvelteKit
- Works with SvelteKit and standalone Svelte
- Automatic client-side navigation tracking
- Minimal footprint matches Svelte's philosophy
- No Svelte stores or actions needed
Frequently Asked Questions
Does ActionLab work with SvelteKit?
Yes. Add the script to your root layout or app.html. SvelteKit client-side navigation is detected and tracked automatically.