CleverCloud / clever-components

Collection of Web Components by Clever Cloud
https://www.clever-cloud.com/doc/clever-components/
Apache License 2.0
218 stars 19 forks source link

RFC: tracking user events #423

Open hsablonniere opened 2 years ago

hsablonniere commented 2 years ago

Context

Right now, our components are mostly used in the console. Our console tracks users with Matomo. Our tracking configuration is minimal (mostly used for browser/OS/device stats). We would like to get more insights on how the console and the components are used to improve our product. This means our components must trigger some kind of signals that can be caught and digested into an anlytics service such as Matomo.

Discussion

Here are examples how what we could have with the <cc-env-var-form> component (depending on the level of details we want):

Question A: How do we emit those events?

Details

Before going into the details of this discussion, we need to get more familiar with how custom events/actions work in Matomo (and similar tools).

hsablonniere commented 2 years ago

Question A: How do we emit those events?

I think we need only one DOM event so the setting in the console can be simple.