diff --git a/packages/editor-ui/src/components/Telemetry.vue b/packages/editor-ui/src/components/Telemetry.vue index d8d788785d..801bf84935 100644 --- a/packages/editor-ui/src/components/Telemetry.vue +++ b/packages/editor-ui/src/components/Telemetry.vue @@ -43,6 +43,7 @@ export default mixins(externalHooks).extend({ instanceId: this.instanceId, userId: this.currentUserId, store: this.$store, + versionCli: this.$store.getters['settings/versionCli'], }, ); diff --git a/packages/editor-ui/src/plugins/telemetry/index.ts b/packages/editor-ui/src/plugins/telemetry/index.ts index 245c583cf7..51377ce678 100644 --- a/packages/editor-ui/src/plugins/telemetry/index.ts +++ b/packages/editor-ui/src/plugins/telemetry/index.ts @@ -48,10 +48,11 @@ export class Telemetry { init( telemetrySettings: ITelemetrySettings, - { instanceId, userId, store }: { + { instanceId, userId, store, versionCli }: { instanceId: string; userId?: string; store: Store; + versionCli: string }, ) { if (!telemetrySettings.enabled || !telemetrySettings.config || this.rudderStack) return; @@ -74,14 +75,14 @@ export class Telemetry { }, ); - this.identify(instanceId, userId); + this.identify(instanceId, userId, versionCli); this.flushPageEvents(); this.track('Session started', { session_id: store.getters.sessionId }); } - identify(instanceId: string, userId?: string) { - const traits = { instance_id: instanceId }; + identify(instanceId: string, userId?: string, versionCli?: string) { + const traits = { instance_id: instanceId, version_cli: versionCli }; if (userId) { this.rudderStack.identify(`${instanceId}#${userId}`, traits); }