File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,18 @@ const PageTracker = () => {
5555 }
5656 // select-info 페이지에서 state로 분기
5757 else if ( pathname === "/select-info" && path === pathname ) {
58- if ( state === "fastFriend" && page === "빠른 대화 설정" ) {
59- trackPageView ( path , page ) ;
60- } else if ( state === "virtualFriend" && page === "친구 저장" ) {
61- trackPageView ( path , page ) ;
58+ if ( state . type === "fastFriend" ) {
59+ trackPageView ( path , "빠른 대화 설정" ) ;
60+ } else if ( state . type === "virtualFriend" ) {
61+ trackPageView ( path , "친구 저장" ) ;
62+ } else if ( state . type === "topicChat" ) {
63+ trackPageView ( path , "오픈채팅 - 내 정보 입력" ) ;
64+ }
65+ } else if ( pathname === "/chat" && path === pathname ) {
66+ if ( state . mode === "topicChat" ) {
67+ trackPageView ( path , "오픈채팅방" ) ;
68+ } else {
69+ trackPageView ( path , "채팅방" ) ;
6270 }
6371 }
6472 // 나머지 일반 path
Original file line number Diff line number Diff line change @@ -155,9 +155,10 @@ const SelectInfo = () => {
155155 // topicChat은 바로 채팅으로 이동
156156 trackClickEvent ( "오픈채팅 - 내 정보 입력" , "대화 시작하기" ) ;
157157 navigate ( "/chat" , {
158+ // FIXME: 추후 수정 필요 (오픈 채팅 기능)
158159 state : {
159160 mbti : "ENFP" , // 기본 MBTI 또는 선택된 MBTI
160- mode : "fastFriend " ,
161+ mode : "topicChat " ,
161162 id : Date . now ( ) . toString ( ) ,
162163 name,
163164 chatTitle,
You can’t perform that action at this time.
0 commit comments