Pick by where the data is
| Method | Use it for | Key | Guide |
|---|---|---|---|
| Script tag | Page views, outbound clicks, engagement time and custom events from your pages. One line of HTML. | Site key | Website tag |
| npm packages | The same, bundled into a JavaScript, React or Vue app. | Site key | JavaScript, React and Vue |
| HTTP API and Node SDK | Events your backend knows about: sign-ups, purchases, jobs. Server-side page views. | Ingest key | Server and HTTP API |
| Access logs | Every request your web server already logs, including visitors who block scripts, bots and error pages. No change to your pages. | Ingest key | Logs and the agent |
Every method needs a site and its key first: see add a site and site key and ingest key on Getting started. The app’s set-up guide at app.knockstat.com/setup shows the same snippets with your keys filled in and checks live that the first events arrive.
Combining methods
A website usually pairs the tag (what people do on the page) with the log agent (every request, including bots, errors and visitors who block scripts). A product adds server events for sign-ups and purchases.
Stuck? Email [email protected].