takt

Takt Documentation

Takt is lightweight, privacy-friendly web analytics: a script under one kilobyte, zero cookies, zero personal data. You paste one line into the <head> and measure your pages and events from your dashboard — no consent banner, no slowdown.

≤ 1 kB gzip

A single file, zero dependencies. Loaded with defer, it never blocks rendering.

Cookieless

No persistent identifier, no fingerprinting. Nothing to ask for in a consent banner.

SPA-ready

The initial pageview is automatic and client-side navigation (History API) is tracked with no config.

Do Not Track

Honors DNT, per-visitor opt-out, and excludes localhost / private IPs by default.

How it works

Three steps, from load to measurement. None require client-side logic: everything is computed at ingestion.

1. The script loads

The <script defer> tag fetches takt.js from the CDN. Meanwhile, a queue captures your first takt() calls — nothing is lost.

2. The pageview fires

On load, Takt sends a pageview (URL, referrer, screen). On a SPA, each History API navigation triggers a new one, automatically.

3. The dashboard aggregates

Ingestion receives a minimal payload, anonymizes it and aggregates it. You read visits, sources, pages and conversions in near real time.

A complete example

The bare minimum to measure a site and track a conversion:

<!-- In the <head> -->
<script defer src="https://cdn.jsdelivr.net/npm/@vskstudio/takt-core/dist/takt.js" data-domain="example.com"></script>
// Anywhere in your code, after a key action
takt('Signup', { props: { plan: 'pro' } })

The pageview already fired on its own; all that’s left is naming the events that matter to your business.

On a framework app, prefer the npm package and the dedicated wrappers: you keep typing, SSR and client navigation handled for you.

What you measure

Page views & navigation

URL, referrer, screen dimensions, entry/exit. SPA navigation is tracked with no manual call.

Events & goals

Your own named events (takt('...')), with free-form props, turned into goals and conversion funnels.

Server-side (S2S)

Payments, webhooks and background jobs emit events straight from your backend, via the PHP packages.

Choose your integration

The script

One tag to paste, your first event in two minutes. See the snippet →

JS wrappers

React, Vue, Svelte, Solid, Angular, Astro — component, hooks and action, all SSR-safe. See the wrappers →

PHP wrappers

Snippet rendering and S2S sending on the server, for PHP, Laravel and Symfony. See the packages →

Where to start

Takt isn't open source on the server side, but the integration snippet documented here is public: you can audit it line by line before embedding it.