From 5233c794e0bc88d6594c5f6a28751a8ea0160702 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 3 Jan 2025 15:27:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Add=20distinctId=20to=20gr?= =?UTF-8?q?oupIdentify=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/telemetry/src/trackEvents.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/telemetry/src/trackEvents.ts b/packages/telemetry/src/trackEvents.ts index 2b05eb11e7e..c09128502a0 100644 --- a/packages/telemetry/src/trackEvents.ts +++ b/packages/telemetry/src/trackEvents.ts @@ -33,12 +33,14 @@ export const trackEvents = async (events: TelemetryEvent[]) => { event.name === "Subscription updated" ) client.groupIdentify({ + distinctId: event.userId, groupType: "workspace", groupKey: event.workspaceId, properties: event.data, }); if (event.name === "Typebot created" || event.name === "Typebot published") client.groupIdentify({ + distinctId: event.userId, groupType: "typebot", groupKey: event.typebotId, properties: { name: event.data.name },