Skip to content

Commit

Permalink
♻️ Add distinctId to groupIdentify methods
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jan 3, 2025
1 parent 7c0d349 commit 5233c79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/telemetry/src/trackEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 5233c79

Please sign in to comment.