Skip to content

Commit eb867e4

Browse files
committed
Track bot name in send_message event
1 parent f01d4d5 commit eb867e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/hooks/use-chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function useChat(botId: BotId) {
2727

2828
const sendMessage = useCallback(
2929
async (input: string, image?: File) => {
30-
trackEvent('send_message', { botId, withImage: !!image })
30+
trackEvent('send_message', { botId, withImage: !!image, name: chatState.bot.name })
3131

3232
const botMessageId = uuid()
3333
setChatState((draft) => {

0 commit comments

Comments
 (0)