Install
Add via Swift Package Manager
iOS SDK
A lightweight Swift SDK that captures every event, screen and session — then streams it into B2Metric IQ for funnels, retention and churn prediction.
Install with Swift Package Manager, initialize on launch, and log your first event.
Add via Swift Package Manager
Start the SDK as early as possible
Log a typed event in one line
One install captures the full picture — automatic baselines plus precise, typed events you control.
Capture how users interact with your app.
Log custom events with a single call. Attach typed properties — strings, numbers, booleans, dates — through AnyCodable for full context.
Sessions and lifecycle, instrumented for you.
App opens, sessions and lifecycle moments are captured out of the box — no manual instrumentation required to get a baseline of behavior.
See the path users take, screen by screen.
Record screen views to reconstruct navigation flows and feed funnel, retention and user-flow reports inside B2Metric IQ.
Measure delivery, opens and impact.
Attribute notification deliveries and opens to downstream behavior so campaign performance is measurable end to end.
Battery- and network-friendly by design.
Events are buffered and sent in batches on a configurable interval. Tune batchSize and flushInterval to balance freshness against efficiency.
Verify your integration in real time.
Switch logLevel to .debug to stream every event and network call to the console, then flip to .off for production builds.
Three parameters control everything. Send events instantly while debugging, then batch for battery and network efficiency in release builds.
From installation to troubleshooting — every page in the B2Metric Academy iOS guide.
Add the package, paste your API key, and watch events arrive in B2Metric IQ in real time.