Skip to main content
The Klaritics Web SDK sends analytics events from the browser to your self-hosted Klaritics instance. Install it from npm for bundler-based projects, or load it with a script tag. Package: @deeptaai/klaritics-web-sdk · Version: 1.0.1

Requirements

You need a Project ID and a Server host from the Klaritics dashboard. Your project ID is on the Getting Started page.

Installation

Initialize the SDK

Call Klaritics.init once, before any other Klaritics call:

API reference

Common recipes

Log events

Track a page view

Identify a user and set properties

Get the device ID and control sessions

Single-page applications

Call logPageView from your existing route-change handler to record navigation between views. URL-based page tracking is configured from the Klaritics dashboard and needs no extra SDK setup.

Troubleshooting

Next steps

Verify your integration

Trigger test events, watch them land on the Getting Started page, and click Complete Setup.

Release notes

What changed in each Web SDK version.

Package: @deeptaai/klaritics-web-sdk · Version: 1.0.1 · Release notes