tchapgouv / tchap-web-v4

A Matrix web client for Tchap
https://www.tchap.gouv.fr/
Apache License 2.0
12 stars 5 forks source link

Study - Data analytics with posthog #1011

Open MarcWadai opened 4 months ago

MarcWadai commented 4 months ago

Check what needs to be added / implemented if we want to activate / have a posthog server to collect data.

For web config : https://github.com/element-hq/element-web/blob/develop/docs/config.md#analytics

odelcroi commented 4 months ago

Needs review from :

MarcWadai commented 3 months ago

On element side, implementation was done to send some analytics during UTD, which can be useful for us too. On frontend side, to activate the feature we need to add those 2 lines on the config file : "posthog": { "project_api_key": " "api_host": "" },

This is generate a prompt for a user asking if he agree or not to send some analytics : image

Et on retrouve dans les paramètres de vie privée : image

MarcWadai commented 2 months ago

Pour une uniformisations des events remonté par l'outil d'analytics, il y a cette doc matrix : https://github.com/matrix-org/matrix-analytics-events