-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: (#598) 로그인 시 쿠키를 주고 받을 수 있도록 fetch 설정 변경 (#600) * cookie의 path를 /auth에서 /로 변경 및 RefreshToken TTL설정 (#610) * refactor: (#608) cookie의 path를 루트 경로로 지정 * refactor: (#608) refreshtoken을 redis에 저장할 때 ttl설정 * 구글 애널리틱스 작동을 위한 모듈 설치, 게시글 본문의 링크 클릭 가능하도록 구현 (#613) * fix: (#612) react-gtm-module을 react-ga4 로 대체, RouteChangeTracker 컴포넌트 추가 * feat: (#606) 게시글 작성 시 링크 넣기 기능 추가 * feat: (#606) 게시글 본문에 링크 있으면 a 태그로 인식되도록 구현 * chore: (#606) 공지사항 설명 수정 * chore: (#606) 불필요한 주석 삭제 * 로그인, 투표 통계, 회원정보 페이지 lazy import 적용 (#571) * feat: (#556) lazy import 설정 및 트리쉐이킹 설정 * feat: (#556) 로그인, 투표 통계, 회원정보 입력 페이지 lazy import 적용 * feat: (#556) 번들 이름 매번 바뀌도록 변경 및 수정되었던 코드 복구 * feat: (#556) Suspense 코드 복구 --------- Co-authored-by: jero_kang <[email protected]> * 게시글 작성 시 이미지 파일을 보낼 때 webp 로 압축하여 성능 개선 (#614) * feat: (#555) browser-image-compression 설치 및 본문 이미지 훅에 적용 * feat: (#555) 선택지 옵션 사진을 webp로 변환하도록 구현 --------- Co-authored-by: 최우창 <[email protected]> Co-authored-by: Jun-Hyeok Sin <[email protected]> Co-authored-by: jero_kang <[email protected]> Co-authored-by: jeomxon <[email protected]> Co-authored-by: aiaiaiai1 <[email protected]> Co-authored-by: chsua <[email protected]> Co-authored-by: lookh <[email protected]> Co-authored-by: 김영길/KIM YOUNG GIL <[email protected]> Co-authored-by: jero_kang <[email protected]> Co-authored-by: chsua <[email protected]>
- Loading branch information
1 parent
8f8184e
commit 5c72bc8
Showing
22 changed files
with
240 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* src/RouteChangeTracker.js */ | ||
import { useEffect, useState } from 'react'; | ||
import ReactGA from 'react-ga4'; | ||
import { useLocation } from 'react-router-dom'; | ||
|
||
export default function RouteChangeTracker() { | ||
const location = useLocation(); | ||
const [initialized, setInitialized] = useState(false); | ||
|
||
useEffect(() => { | ||
if (process.env.VOTOGETHER_GOOGLE_ANALYTICS_ID) { | ||
ReactGA.initialize(process.env.VOTOGETHER_GOOGLE_ANALYTICS_ID); | ||
setInitialized(true); | ||
} | ||
}, []); | ||
|
||
useEffect(() => { | ||
if (initialized) { | ||
ReactGA.set({ page: location.pathname }); | ||
ReactGA.send('pageview'); | ||
} | ||
}, [initialized, location]); | ||
|
||
return <></>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.