Skip to content

Commit f4b61d6

Browse files
event nit
1 parent 6dbdcde commit f4b61d6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

packages/web/src/features/chat/actions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const createChat = async () => sew(() =>
112112

113113
return {
114114
id: chat.id,
115+
isAnonymous: isGuestUser,
115116
}
116117
})
117118
);

packages/web/src/features/chat/useCreateNewChatThread.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const useCreateNewChatThread = () => {
3939
return;
4040
}
4141

42-
captureEvent('wa_chat_thread_created', {});
42+
captureEvent('wa_chat_thread_created', { isAnonymous: response.isAnonymous });
4343

4444
setChatState({
4545
inputMessage,

packages/web/src/lib/posthogEvents.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ export type PosthogEventMap = {
150150
chatId: string,
151151
messageId: string,
152152
},
153-
wa_chat_thread_created: {},
153+
wa_chat_thread_created: {
154+
isAnonymous: boolean,
155+
},
154156
wa_chat_message_sent: {
155157
messageCount: number,
156158
},

0 commit comments

Comments
 (0)