Docs

Servoki developer docs

Everything beyond the basic page view. Pick a trigger and copy the code — every snippet is real, runnable, and uses the same lightweight tracker you already installed.

Not installed yet? Start with the install guide — one script tag and page views start flowing. Then come back here to track the things that matter.

Track events in the browser

Conversions & revenue

Server-side

The tracker API, in one place

After the script loads, it exposes a tiny global. Two methods, that's the whole surface:

// record an event (with optional properties)
window.servoki.track('signup');
window.servoki.track('purchase', { plan: 'pro', value: 49 });

// tie this browser to an id you control (for server-side stitching)
window.servoki.setVisitor('anon-abc123');

Page views fire automatically on load. Everything else is a track() call you place where the action happens. The tracker sets no cookies and respects Do Not Track.