Add Antlytics to Sanity
Sanity is a headless CMS — it manages your content but your frontend is a separate application. The Antlytics snippet belongs in your frontend, not in Sanity Studio.
Follow the guide for your frontend framework:
- Next.js App Router — the most common Sanity frontend
- SvelteKit — another popular choice
- Astro — popular for content-heavy sites
- Plain HTML / vanilla JS — for simple frontends
Add the snippet to your root layout or app.html file so it runs on every page.
Need help?
Email support@antlytics.com with your site ID and page URL.
Something missing? Get in touch and we will update these docs.