balena-io / balena-cli

The official balena CLI tool.
Apache License 2.0
452 stars 137 forks source link

[analytics] Start tracking `contract_repo_name` and `contract_repo_url` #2187

Open gelbal opened 3 years ago

gelbal commented 3 years ago

In order to improve our funnel analysis on Hub flows, we would like to start tracking contract_repo_name and contract_repo_url as event properties in the following CLI events (including all variants of these):

The value is coming from the contract field which is storing balena.yml file. To give an example, here's the balenaSound's application contract: https://github.com/balenalabs/balena-sound/blob/master/balena.yml We'd like to retrieve the field assets.repository.data.url with the value "https://github.com/balenalabs/balena-sound". Then we track the value as the event property named contract_repo_url. Additionally, we'd like track pathname of URL after domain name as a separate event property named contract_repo_name ("/balenalabs/balena-sound").

pdcastro commented 3 years ago

It sounds like this issue depends on #2183.