From b85b7bfa2dfa5523a7fb879eae594b03d331d09d Mon Sep 17 00:00:00 2001 From: Paulo Castro Date: Tue, 23 Jul 2019 12:15:20 +0100 Subject: [PATCH] Update mixpanel tracking Change-type: patch Signed-off-by: Paulo Castro --- lib/events.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/events.ts b/lib/events.ts index 415a9fd6..3bb62635 100644 --- a/lib/events.ts +++ b/lib/events.ts @@ -49,16 +49,19 @@ export function trackCommand(capitanoCli: Capitano.Cli) { username, }, }); - + // `command.signature.toString()` results in a string like, for example: + // "push " + // 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, }); }); })