mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Analytics | Add support for super properties and appPlatform
This commit is contained in:
@@ -94,6 +94,13 @@ import AnalyticsEvents
|
||||
|
||||
guard let session = session else { return }
|
||||
useAnalyticsSettings(from: session)
|
||||
self.client.updateSuperProperties(
|
||||
AnalyticsEvent.SuperProperties(
|
||||
appPlatform: .EI,
|
||||
cryptoSDK: .Rust,
|
||||
cryptoSDKVersion: session.crypto.version
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
/// Stops analytics tracking and calls `reset` to clear any IDs and event queues.
|
||||
@@ -148,6 +155,13 @@ import AnalyticsEvents
|
||||
switch result {
|
||||
case .success(let settings):
|
||||
self.identify(with: settings)
|
||||
self.client.updateSuperProperties(
|
||||
AnalyticsEvent.SuperProperties(
|
||||
appPlatform: .EI,
|
||||
cryptoSDK: .Rust,
|
||||
cryptoSDKVersion: session.crypto.version
|
||||
)
|
||||
)
|
||||
self.service = nil
|
||||
case .failure:
|
||||
MXLog.error("[Analytics] Failed to use analytics settings. Will continue to run without analytics ID.")
|
||||
@@ -242,7 +256,8 @@ extension Analytics {
|
||||
let userProperties = AnalyticsEvent.UserProperties(allChatsActiveFilter: allChatsActiveFilter?.analyticsName,
|
||||
ftueUseCaseSelection: ftueUseCase?.analyticsName,
|
||||
numFavouriteRooms: numFavouriteRooms,
|
||||
numSpaces: numSpaces)
|
||||
numSpaces: numSpaces,
|
||||
recoveryState: nil, verificationState: nil)
|
||||
client.updateUserProperties(userProperties)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user