element-web/src/dispatcher
James Salter 5219b6be80
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.
2021-12-06 09:39:33 +11:00
..
dispatch-actions Implement deep-linking for threads (matrix.to) (#7003) 2021-10-22 09:30:36 +01:00
payloads Make CallHandler more EventEmittery (#6704) 2021-11-30 18:09:13 +00:00
actions.ts Analytics opt in for posthog (#6936) 2021-12-06 09:39:33 +11:00
dispatcher.ts Auto-fix lint errors 2021-06-29 13:11:58 +01:00
payloads.ts Break out actions and payloads to their own files 2020-05-13 21:07:50 -06:00