mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 06:07:55 +00:00
Update mixpanel tracking
Change-type: patch Signed-off-by: Paulo Castro <paulo@balena.io>
This commit is contained in:
parent
5d91b2e830
commit
230a178228
@ -30,16 +30,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,
|
||||
resinUrl,
|
||||
platform: process.platform,
|
||||
command: capitanoCli,
|
||||
});
|
||||
});
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user