project_id and server_host, then start logging events and user properties. This page covers the concepts shared across all platforms and links to platform-specific setup guides.
Supported platforms
Web
Browser and SPA integration via npm or script tag.
Android
Gradle-based Android apps using Maven coordinates.
iOS
Swift and Objective-C apps via Swift Package Manager.
React Native
Cross-platform JS apps for iOS and Android.
Kotlin Multiplatform
Shared Kotlin code across Android, iOS, and other targets.
Flutter
Cross-platform Dart apps for iOS and Android.
Shared initialization
Every SDK requires two values to initialize:project_id: your Klaritics project identifier, found on the Getting Started page of the dashboardserver_host: the URL of your Klaritics instance, for examplehttps://analytics.yourcompany.com
API at a glance
The mobile SDKs share one method set, modeled on the Kotlin Multiplatform SDK. The Web SDK follows it where it can, and uses its own names for user and session properties and page views. A dash means the method isn’t available in that SDK.
Version history for every SDK is in SDK release notes.
Verify your integration
After you initialize the SDK in your app, send a few test events to confirm the setup end to end before you start building dashboards.1
Trigger a few events in your app
Run your app in a debug build and perform real actions that call
logAppEvent. Sign in, tap a button, open a screen, add an item to the cart. Aim for at least 5 to 10 events across a couple of user sessions.2
Watch events land on the Getting Started page
Open the Klaritics dashboard and go to Getting Started. Newly received events for your project appear here in near real time, along with the platform they came from and the attributes attached to them.
3
Click Complete Setup
Once Klaritics has received enough events from your app, the Complete Setup CTA on the Getting Started page becomes active. Click it to mark your integration as complete and unlock the full dashboard.
4
Build your first dashboard
With events flowing, head to Saved Dashboards to pin charts, funnels, and retention charts, or start from a template to get a working analytics view in minutes.
Event and attribute naming
When you log events and attributes from your application, use plain names that describe what happened in your product, for exampleadd_to_cart or product_clicked, with attributes like user_id or item.
For the full naming guidance, see Event and attribute naming.