Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an analytics value of accept/decline of identity server terms. #4957

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Oct 5, 2021

Fixes #4955, this PR adds an analytics value of accept/decline of the identity server's terms. Depends on matrix-org/matrix-ios-kit#925.

In the context of this PR, a decline is being treated as dismissing without accepting, whether that's by tapping decline, cancel or swiping to dismiss.

@github-actions
Copy link

github-actions bot commented Oct 5, 2021

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/8AP6Sk

@@ -98,13 +100,36 @@ extension ServiceTermsModalCoordinatorBridgePresenter: ServiceTermsModalCoordina

func serviceTermsModalCoordinatorDidAccept(_ coordinator: ServiceTermsModalCoordinatorType) {
self.delegate?.serviceTermsModalCoordinatorBridgePresenterDelegateDidAccept(self)

if serviceType == MXServiceTypeIdentityService {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better if we put analytics inside Coordinator because BridgePresenters are only built for ObjC compatibility when we will remove the presenter we will loose the analytics.

@pixlwave
Copy link
Member Author

pixlwave commented Oct 8, 2021

As discussed I'll address this comment in #4709.

@pixlwave pixlwave merged commit 374ab8a into develop Oct 8, 2021
@pixlwave pixlwave deleted the doug/4955_contacts_permissions_analytics branch October 8, 2021 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an analytic to get a baseline to compare against #4709.
2 participants