✨ : GA4 연동 #17
Open
mangming2 wants to merge 5 commits into
Open
Conversation
devcdd
reviewed
Feb 24, 2025
| function App() { | ||
|
|
||
| useEffect(() => { | ||
| initializeGA('G-XXXXXXXXXX'); // 실제 GA4 측정 ID로 교체 |
Contributor
There was a problem hiding this comment.
💊: env에서 가져오는 식으로 바꿔주시면 좋을 것 같아요 !
| [key: string]: unknown; | ||
| } | ||
|
|
||
| export const useInteractionTracking = () => { |
Contributor
There was a problem hiding this comment.
❓: 코드가 엄청 깔끔하네요 .. 레퍼런스 같은 게 있으신건가요?
Contributor
Author
There was a problem hiding this comment.
https://kimyanglogging.tistory.com/3
이 글 이랑 gpt 도움 받아서 했습니다!
GA4처음 해보는거라 이렇게 하는게 맞나 싶네요...! id연동해서 제대로 찍히는거 보고 머지하는게 나을까요?
Contributor
There was a problem hiding this comment.
Conflict도 있어서 (천천히) 다음주에 id 연동 진행하면서 머지 진행하는 게 나을 것 같습니다 👍 코드 자체는 머지하셔도 문제 없을 것 같아요 !!
Contributor
Author
There was a problem hiding this comment.
이 mr도 그냥 컨플릭트 처리하고 머지 일단 해버릴까요?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
현재 개발 완료되어 적용가능한 부분만 추가 해 두었습니다
성능 모니터링
page_load_time: 페이지 로딩 시간
scroll_depth: 스크롤 깊이
time_on_page: 페이지 체류 시간
내비게이션 추적
category_select: 카테고리 선택 (지역/메뉴 종류 등)
핵심 유저 행동 추적
view_store_detail: 매장 상세 정보 클릭
유저 인터렉션
image_view: 매장 이미지 클릭
추가로 GA4 ID 받아서 적용하겠습니다 :)