Skip to content

GA 직접 이벤트 트래킹 세팅#1060

Merged
suhyeon0111 merged 1 commit into
developfrom
chore/ga-setting
May 18, 2026
Merged

GA 직접 이벤트 트래킹 세팅#1060
suhyeon0111 merged 1 commit into
developfrom
chore/ga-setting

Conversation

@suhyeon0111
Copy link
Copy Markdown
Contributor

@suhyeon0111 suhyeon0111 commented May 18, 2026

Pull Request

관련 이슈

  • close #이슈번호

작업 내용

  • <GoogleAnalytics /><GoogleTagManager /> 가 동시 존재하게 될 시, 이벤트가 동시 수집되는 문제(이벤트 2배로 수집)가 있어 제거했으나 GA 직접 이벤트 트래킹 코드가 GA4로 반영이 되지 않는 문제가 있었습니다.
  • 알아보니 태그를 추가해야 해당 코드들이 반영이 될것이라고 추측되었고, GA4 사이트 설정에서 이벤트 수집 제외를 선택할 수 있다는것을 알게 되었습니다.
  • GA4 사이트에서 이벤트 집계가 2배가 되지 않도록 설정해두었으며 머지 된후 GA4에 반영되는지 확인이 필요합니다.

참고 사항

체크리스트

  • 기능이 정상 동작하는지 확인
  • 로컬 빌드/스토리북/테스트 통과
  • 불필요한 코드/주석 제거

@suhyeon0111 suhyeon0111 self-assigned this May 18, 2026
@suhyeon0111 suhyeon0111 added the 🧹 chore 의존성 업데이트, 환경 세팅, 빌드 설정 등 유지보수 작업 label May 18, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
finditem Ready Ready Preview, Comment May 18, 2026 4:24am

@auto-assign auto-assign Bot requested review from DevHyungJun and wlrnjs May 18, 2026 04:24
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

GA4 직접 이벤트 트래킹을 활성화하기 위해 레이아웃에 GoogleAnalytics 컴포넌트를 추가했습니다. 기존에 발생하던 이벤트 중복 수집 문제는 GA4 설정에서 이벤트 수집 제외 옵션을 통해 해결할 예정입니다.

Highlights

  • GA4 이벤트 트래킹 설정 추가: GoogleAnalytics 컴포넌트를 다시 도입하여 GA4 직접 이벤트 트래킹을 활성화했습니다.
  • 중복 이벤트 수집 문제 해결: GA4 사이트 설정을 통해 이벤트가 2배로 집계되는 문제를 방지하도록 구성했습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.


GA4 태그를 심고 나니 이벤트가 두 배로 뛰네 설정으로 다잡고 나면 데이터는 다시 평온해지리

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request integrates Google Analytics into the application's root layout by adding the GoogleAnalytics component alongside the existing GoogleTagManager. The reviewer identifies a performance and maintenance concern, noting that loading both scripts simultaneously is redundant and can negatively impact page loading metrics. It is recommended to consolidate tracking through GTM using dataLayer.push() or internal GTM configurations rather than loading the separate GA4 library.

Comment thread src/app/layout.tsx
@github-actions
Copy link
Copy Markdown

Jest Test Results

1 373 tests   1 373 ✅  1m 23s ⏱️
  247 suites      0 💤
    1 files        0 ❌

Results for commit e59f637.

@suhyeon0111 suhyeon0111 merged commit fb3a6cb into develop May 18, 2026
9 checks passed
@suhyeon0111 suhyeon0111 deleted the chore/ga-setting branch May 18, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧹 chore 의존성 업데이트, 환경 세팅, 빌드 설정 등 유지보수 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants