Web analytics and tags, in one
Visits, users and last logins for every app you run.
Add two lines to an app and lytics counts its visits, visitors, pageviews, signed-in users and logins. Tag clicks and form submits from here, without a deploy. Put query results from your own Postgres on the same dashboard, and show that dashboard inside another application.
The sample is a made-up app with illustrative numbers — no account, nothing to install.
Coming from Google Analytics? Switch from GA4 and Tag Manager — what maps across, and what does not.
What it does
Counts what matters
Visits, visitors and pageviews per day; top pages, referrers, devices and events; your signed-in users with when each last logged in and was last seen.
Event tracking plan builder — decide which events to send, get the calls and share the plan as Markdown. Free, no account.
Tags without a deploy
Turn a click on a CSS selector, a form submit or a visit to a path into a named event, from the dashboard. The tracking script picks it up within five minutes.
Add analytics to a Next.js App Router app — install once and track client navigation. Track your Next.js app.
Track button clicks and form submissions — a practical guide with sample HTML and tag settings.
Your database, charted
Connect a Postgres database with a read-only user, write a query, and show the result as a number, a table, columns or a line. Results refresh on a schedule you choose.
Build a Postgres signup dashboard — a step-by-step tutorial with sample SQL.
Dashboards inside your app
Make an embed link for an app's dashboard and put it in an iframe. It can only be shown on the sites you list, and you can revoke it at any time.
Embed a web analytics dashboard in your app — a practical guide, including who can read the link. Create your dashboard.
Live
See how many people are on an app right now and each event as it arrives.
Every lp-data.cloud app
Apps built on lp-data.cloud share the same user tables. Connect one's database and lytics adds its accounts, new sign-ups and sign-ins without you writing SQL.
How to start
The snippet
<script>window.lytics=window.lytics||function(){(lytics.q=lytics.q||[]).push(arguments)};</script>
<script defer src="https://lytics.lp-data.cloud/api/t/lyt_your_site_key.js"></script>Signed-in users and your own events
lytics('identify', user.id) // on every page, once signed in
lytics('login', user.id) // right after a successful sign-in
lytics('event', 'export_csv', { rows: 120 })What it will not do
- No cookies on your app, and nothing stored on your visitors' devices. A visitor is counted from a hash of the day, the app, the IP address and the browser. The day's secret is deleted after two days, so the hash cannot be traced back. The cost, stated on every dashboard: visitors are counted per day.How lytics counts visitors without cookies.
- No query strings. Only the path of each page is kept. Query strings are where reset tokens and email addresses end up, so they are dropped before anything is stored.
- No custom scripts in tags. A tag names a selector or a path and the event to send. lytics cannot be used to push code into the apps it tracks.
- No writes to your database. Every query runs inside a read-only transaction, as a single statement, with a timeout and a row limit. Passwords are encrypted at rest and never shown again.
Weighing it against GA4? The migration guide lists what does not carry over: campaign parameters, country data, revenue reports and historical data.
lytics is new, and the people building it read every piece of feedback. If something is missing for the way you work, the link at the bottom of every page goes straight to them.