Skip to content

✨ : GA4 연동 #17

Open
mangming2 wants to merge 5 commits into
mainfrom
Feat/add-ga
Open

✨ : GA4 연동 #17
mangming2 wants to merge 5 commits into
mainfrom
Feat/add-ga

Conversation

@mangming2
Copy link
Copy Markdown
Contributor

현재 개발 완료되어 적용가능한 부분만 추가 해 두었습니다

성능 모니터링

page_load_time: 페이지 로딩 시간
scroll_depth: 스크롤 깊이
time_on_page: 페이지 체류 시간

내비게이션 추적

category_select: 카테고리 선택 (지역/메뉴 종류 등)

핵심 유저 행동 추적
view_store_detail: 매장 상세 정보 클릭

유저 인터렉션
image_view: 매장 이미지 클릭

추가로 GA4 ID 받아서 적용하겠습니다 :)

@mangming2 mangming2 self-assigned this Feb 24, 2025
@mangming2 mangming2 requested a review from devcdd February 24, 2025 02:09
Copy link
Copy Markdown
Contributor

@devcdd devcdd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다 !!

Comment thread src/App.tsx Outdated
function App() {

useEffect(() => {
initializeGA('G-XXXXXXXXXX'); // 실제 GA4 측정 ID로 교체
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💊: env에서 가져오는 식으로 바꿔주시면 좋을 것 같아요 !

[key: string]: unknown;
}

export const useInteractionTracking = () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓: 코드가 엄청 깔끔하네요 .. 레퍼런스 같은 게 있으신건가요?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://kimyanglogging.tistory.com/3

이 글 이랑 gpt 도움 받아서 했습니다!
GA4처음 해보는거라 이렇게 하는게 맞나 싶네요...! id연동해서 제대로 찍히는거 보고 머지하는게 나을까요?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflict도 있어서 (천천히) 다음주에 id 연동 진행하면서 머지 진행하는 게 나을 것 같습니다 👍 코드 자체는 머지하셔도 문제 없을 것 같아요 !!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 mr도 그냥 컨플릭트 처리하고 머지 일단 해버릴까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants