This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 832
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Analytics opt in for posthog (#6936)
* Add a new flag pseudonymousAnalyticsOptIn replacing analyticsOptIn, stored at account level, so people only need to opt in once. * Show a toast in login to users that have analyticsOptIn set but not yet pseudonymousAnalyticsOptIn prompting them confirm the new method is okay. Update the copy of the existing opt-in toast. Don't notify users that previously opted out. * Update the copy in settings * Add a new learn more dialog * Support a new config flag analyticsOwner which is used in these toasts when explaining which entity the data is sent to ("Help improve %(analyticsOwner)"). If unset, display brand. This allows deployments whose brand differs from the receiver of the analytics to explain the situation to their users (e.g. AcmeCorp badges their app, but explains the data is sent to Element, not them) * The new opt-in and flags are only used when posthog is configured; prior to that there are no changes to UX or tracking behaviour.
- Loading branch information
James Salter
authored
Dec 5, 2021
1 parent
961fec9
commit 5219b6b
Showing
19 changed files
with
511 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
Copyright 2021 The Matrix.org Foundation C.I.C. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
.mx_AnalyticsLearnMoreDialog { | ||
max-width: 500px; | ||
.mx_AnalyticsLearnMore_image_holder { | ||
background-image: url('$(res)/img/element-shiny.svg'); | ||
background-repeat: no-repeat; | ||
background-position: center top; | ||
height: 112px; | ||
padding: 20px 0px; | ||
} | ||
|
||
.mx_Dialog_content { | ||
margin-bottom: 0px; | ||
} | ||
|
||
.mx_AnalyticsLearnMore_copy { | ||
border-bottom: 1px solid $menu-border-color; | ||
padding-bottom: 20px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
a { | ||
color: $accent; | ||
text-decoration: none; | ||
} | ||
|
||
.mx_AnalyticsPolicyLink { | ||
display: inline-block; | ||
mask-image: url('$(res)/img/external-link.svg'); | ||
background-color: $accent; | ||
mask-repeat: no-repeat; | ||
mask-size: contain; | ||
width: 12px; | ||
height: 12px; | ||
margin-left: 3px; | ||
vertical-align: middle; | ||
} | ||
|
||
.mx_AnalyticsLearnMore_bullets { | ||
padding-left: 0px; | ||
} | ||
|
||
.mx_AnalyticsLearnMore_bullets li { | ||
background: url('$(res)/img/tick-circle.svg') no-repeat; | ||
list-style-type: none; | ||
padding: 2px 0px 20px 32px; | ||
vertical-align: middle; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.