Library
Analytics guides and tools
Start with your framework, decide what to measure, then bring your numbers into the places your team works.
Guides
Add analytics to an Astro website
Install lytics on an Astro site: create an app, allow your domains, add the snippet to a shared layout with is:inline, and see your first pageview — with ordinary links and with Astro's ClientRouter.
Cookieless web analytics: how lytics counts visitors without cookies
How to count unique visitors without cookies or device storage: the daily salted hash lytics uses, its trade-offs, what is never collected, and what it does and does not change about consent.
Embed a web analytics dashboard in your app
A practical guide to embedding a read-only web analytics dashboard in an internal portal with an iframe: create the embed, size it for phones, and understand exactly who can read the link, how to review what it shows and how to revoke it.
Switch from Google Analytics 4 and Tag Manager to lytics
A cookieless alternative to GA4 and Google Tag Manager: install lytics side by side, map events, users and tags, and see exactly what does not carry over before you remove GA.
Add analytics to a Next.js App Router app
Install lytics once in a Next.js App Router root layout, track client navigation and a button event, and confirm your first pageview. Includes tested, copyable TypeScript files.
Build a Postgres signup dashboard
A step-by-step tutorial: chart daily signups and total accounts from your own Postgres database, with sample SQL, a least-privilege read-only user, UTC day buckets and the exact query shape lytics needs.
Track button clicks and form submissions with lytics
A practical guide to tracking signup-button clicks and form submissions with lytics tags: sample HTML with stable IDs and data attributes, the exact tag settings, path-prefix filters and the events to look for — no form values collected.
Free tool
Event tracking plan builder
A free event tracking-plan builder: start from a sample SaaS plan, edit the events, the questions they answer and when to send them, get checked lytics('event') calls and export the plan as Markdown. No account needed.