Skip to main content
The Klaritics iOS SDK collects analytics from iOS apps and sends them to your self-hosted Klaritics instance. Add it with Swift Package Manager, then initialize it once from your app delegate. Package: github.com/deeptaai/klaritics-ios-sdk · Version: 1.0.0

Requirements

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

Add the package

1

Open Add Package Dependencies

In Xcode, choose File → Add Package Dependencies.
2

Add the Klaritics repository

Paste the repository URL:
3

Add the library to your target

In Choose Package Products, select the Klaritics library, choose your app target under Add to Target, and click Add Package.
Xcode resolves and downloads the dependency in the background.

Initialize the SDK

Import Klaritics and call Klaritics.setup(config) once, in application(_:didFinishLaunchingWithOptions:), before any other Klaritics call.
AppDelegate.swift

KlariticsConfig

The SDK does not initialize until both appId and host are provided.

API reference

All methods are called on Klaritics. Attributes are [String: Any] dictionaries.

Common recipes

Log an event

Identify a user and set properties

Track a screen

Troubleshooting

Next steps

Verify your integration

Send test events from your app and watch them land on the Getting Started page.

Release notes

What changed in each iOS SDK version.

Package: github.com/deeptaai/klaritics-ios-sdk · Version: 1.0.0 · Release notes