takt

Quickstart

Takt measures your site in three steps, in under two minutes. No account to set up in code, no cookie, no banner.

1. Paste the script

Add this line to the <head> of your site, replacing example.com with your domain.

<script defer src="https://cdn.jsdelivr.net/npm/@vskstudio/takt-core/dist/takt.js" data-domain="example.com"></script>

2. Check that data comes through

Open your site online (not on localhost — excluded by default), then the Network tab of your developer tools. You should see a POST request to /api/event on every page load.

On localhost, on a private IP, or with Do Not Track enabled, nothing is sent: that's the expected behavior. Test on a public domain or temporarily disable the guardrail (see Configuration).

You can also force a test event from the console:

window.takt('test_event')

3. Track your first event

Beyond page views (automatic), fire business events from your code:

// on a signup button click
window.takt('Signup', { props: { plan: 'pro' } })

Open your Takt dashboard: the page view and the Signup event appear in near real time.

What’s next