Skip to content

Commit d9de442

Browse files
committed
fix: using posthog aliases
1 parent 90a601d commit d9de442

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/services/telemetry/PostHogClient.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@ export class PostHogClient {
6262
if (exports) {
6363
this.pearaiId = await exports.pearAPI.getUserId()
6464
this.client.identify({
65-
distinctId: this.pearaiId,
65+
distinctId: this.vscMachineId,
6666
properties: {
67-
vscMachineId: this.vscMachineId
67+
pearAiId: this.pearaiId,
6868
}
69+
});
70+
this.client.alias({
71+
distinctId: this.vscMachineId,
72+
alias: this.pearaiId,
6973
})
7074
}
7175
} catch (error) {

0 commit comments

Comments
 (0)