mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-27 06:20:14 +00:00
Merge pull request #1362 from balena-io/mixpanel-args
Update mixpanel tracking
This commit is contained in:
commit
35732515ac
@ -49,16 +49,19 @@ export function trackCommand(capitanoCli: Capitano.Cli) {
|
||||
username,
|
||||
},
|
||||
});
|
||||
|
||||
// `command.signature.toString()` results in a string like, for example:
|
||||
// "push <applicationOrDevice>"
|
||||
// That's literally so: "applicationOrDevice" is NOT replaced with
|
||||
// the actual application ID or device ID. The purpose is find out the
|
||||
// most / least used command verbs, so we can focus our development
|
||||
// effort where it is most beneficial to end users.
|
||||
return mixpanel.track(`[CLI] ${command.signature.toString()}`, {
|
||||
distinct_id: username,
|
||||
argv: process.argv.join(' '),
|
||||
version: packageJSON.version,
|
||||
node: process.version,
|
||||
arch: process.arch,
|
||||
balenaUrl,
|
||||
balenaUrl, // e.g. 'balena-cloud.com' or 'balena-staging.com'
|
||||
platform: process.platform,
|
||||
command: capitanoCli,
|
||||
});
|
||||
});
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user