Send the Signup analytics event (#6118)

* Implement the Signup event from AuthenticationViewController.

Use AuthenticationFlow instead of MXKAuthenticationType.
Create new AuthenticationType that aligns with AnalyticsEvent naming.
Add additional cases from AnalyticsEvents.
This commit is contained in:
Doug
2022-05-06 13:08:54 +01:00
committed by GitHub
parent 98363ca274
commit f2277cbd3d
21 changed files with 232 additions and 54 deletions
+7
View File
@@ -226,6 +226,13 @@ extension Analytics {
client.updateUserProperties(userProperties)
}
/// Track the registration of a new user.
/// - Parameter authenticationType: The type of authentication that was used.
func trackSignup(authenticationType: AnalyticsEvent.Signup.AuthenticationType) {
let event = AnalyticsEvent.Signup(authenticationType: authenticationType)
capture(event: event)
}
/// Track the presentation of a screen
/// - Parameters:
/// - screen: The screen that was shown.