Analytics (v5)
Get statistics from your iOS apps.
The Apps Panel SDK includes a module that sends analytics. You can log events ans views. The logs are sent when your app is being closed or goes to background.
Log events
StatsManager.shared.logEvent("event_name")
You can add a context to the events to add more information. Context type is [String: AnyCodable]
StatsManager.shared.logEvent("event_name", context: ["id": 123])
Log views
StatsManager.shared.logView("view_name")
StatsManager.shared.logView("view_name", context: ["admin": true])
Updated over 3 years ago