Skip to content

Commit

Permalink
Add gtag for creating chat session
Browse files Browse the repository at this point in the history
  • Loading branch information
canmingir committed Oct 29, 2024
1 parent 14eaf24 commit 6bd166c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widgets/Chat/useChat.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Project from "../../lib/Project";
import expert from "../../http/expert";
import gtag from "../../gtag.js";
import { startTransition } from "react";
import { useNavigate } from "react-router-dom";
import { v4 as uuid } from "uuid";
Expand All @@ -19,6 +20,7 @@ const useChat = () => {
const navigate = useNavigate();

useEffect(() => {
gtag("event", "init_chat");
setChat(selectedChat);
}, [selectedChat]);

Expand Down

0 comments on commit 6bd166c

Please sign in to comment.