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
Custom eventsRecord any action — clicks, signups, plays — with
servoki.track().
Form submissionsFire an event when a signup, contact or lead form is submitted.
Outbound links & downloadsMeasure clicks to external sites and file downloads.
Single-page appsCount route changes in React, Vue, Next.js and other SPAs.
Conversions & revenue
GoalsTurn page views and events into named conversions with revenue.
Ecommerce & revenueTrack purchases and attribute revenue to channels and campaigns.
Server-side
Server events (API)Confirm conversions from your backend — deduplicated, ad-blocker-proof.
Meta Conversions APIForward consented conversions to Meta with server-side hashing.
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.