- Home
- Help center
- For developers
For developers
Send your own events from a site or an app, and the exact call formats.
- Counter calls — track, setTrackData, koLayer, ko_options Reference for the KO counter's browser API: the call shape, event envelope fields, the koLayer queue, counter options and debugging with ko_debug.
- The event dictionary — naming events and where to put the call How to name your custom events in KO, why differences between cases belong in the data rather than the name, and which fact to hang the call on so the numbers match reality.
- Custom events from a single-page app How to send user actions to KO from a React, Angular or Vue SPA: the wrapper, your first event, checking it with ko_debug, and turning the event into a metric.
- Custom events from a regular website How to send user actions to KO from a multi-page site: a plain script tag in the page template or in a site builder's code field, your first event, checking it, and turning it into a metric.
- Custom events from a static site How to send user actions to KO from a site built with Astro, Hugo, Next or Eleventy: the wrapper in the shared layout, page context computed at build time, checking the built files, and turning the event into a metric.