lytics

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

Add an appGive it a name and the domains it runs on.
Paste two linesInto the app's <head>. Pageviews start arriving straight away, including on single-page apps.
Tell it who is signed inOne call on sign-in, one on each page, and users and last logins appear.

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

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.