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.
This commit is contained in:
parent
961fec9081
commit
5219b6be80
19 changed files with 512 additions and 150 deletions
|
@ -203,4 +203,29 @@ export enum Action {
|
|||
* Fires when a user starts to edit event (e.g. up arrow in compositor)
|
||||
*/
|
||||
EditEvent = "edit_event",
|
||||
|
||||
/**
|
||||
* The user accepted pseudonymous analytics (i.e. posthog) from the toast
|
||||
* Payload: none
|
||||
*/
|
||||
PseudonymousAnalyticsAccept = "pseudonymous_analytics_accept",
|
||||
|
||||
/**
|
||||
* The user rejected pseudonymous analytics (i.e. posthog) from the toast
|
||||
* Payload: none
|
||||
*/
|
||||
PseudonymousAnalyticsReject = "pseudonymous_analytics_reject",
|
||||
|
||||
/**
|
||||
* The user accepted anonymous analytics (i.e. matomo, pre-posthog) from the toast
|
||||
* (this action and its handler can be removed once posthog is rolled out)
|
||||
* Payload: none
|
||||
*/
|
||||
AnonymousAnalyticsAccept = "anonymous_analytics_accept",
|
||||
|
||||
/**
|
||||
* The user rejected anonymous analytics (i.e. matomo, pre-posthog) from the toast
|
||||
* Payload: none
|
||||
*/
|
||||
AnonymousAnalyticsReject = "anonymous_analytics_reject"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue