Skip to content

Conversation

@caseBread
Copy link
Member

요약

  • ga이벤트를 gtm이 뺏어가고 있었음. gtm이 ga로 다시 보내면 상관이 없는데, ga로 보내고있지 않았음.
  • 이에 gtm 연동을 제거함.

구현 사항

  • [ ]
  • [ ]
  • [ ]
  • [ ]

📸 스크린샷

Need Review

  • ~ 부분 이렇게 구현했어요, 피드백 부탁해요!

Reference

📜 리뷰 규칙

Reviewer는 아래 P5 Rule을 참고하여 리뷰를 진행합니다.
P5 Rule을 통해 Reviewer는 Reviewee에게 리뷰의 의도를 보다 정확히 전달할 수 있습니다.

  • P1: 꼭 반영해주세요 (Comment)
  • P2: 적극적으로 고려해주세요 (Comment)
  • P3: 웬만하면 반영해 주세요 (Comment)
  • P4: 반영해도 좋고 넘어가도 좋습니다 (Approve)
  • P5: 그냥 사소한 의견입니다 (Approve)

@caseBread caseBread requested a review from dasosann January 26, 2026 05:41
@caseBread caseBread self-assigned this Jan 26, 2026
@vercel
Copy link

vercel bot commented Jan 26, 2026

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

Project Deployment Review Updated (UTC)
fe Ready Ready Preview, Comment Jan 26, 2026 5:41am

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @caseBread, 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!

이 PR은 Google Analytics 이벤트 추적의 정확성을 확보하기 위해 기존에 설정되어 있던 Google Tag Manager 연동을 제거하는 변경사항을 포함합니다. GTM이 GA 이벤트 수집을 방해하는 문제를 해결하여, 웹사이트의 데이터 분석 신뢰도를 높이는 것이 주된 목적입니다.

Highlights

  • Google Tag Manager (GTM) 연동 제거: Google Analytics (GA) 이벤트가 GTM으로 인해 누락되는 문제를 해결하기 위해 GTM 관련 코드(임포트 및 컴포넌트)를 제거했습니다. GTM이 GA로 이벤트를 제대로 전달하지 않아 발생한 문제였습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

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 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 counter productive. 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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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.

@caseBread caseBread merged commit 6c19e62 into main Jan 26, 2026
4 checks passed
@caseBread caseBread deleted the fix/event branch January 26, 2026 05:41
Copy link
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

안녕하세요. GA 이벤트 누락 문제를 해결하기 위해 GTM 연동을 제거하신 변경 사항을 잘 확인했습니다. GTM이 GA 이벤트를 제대로 전달하지 못하는 문제를 해결하기 위해 GTM 관련 코드를 제거하고 GA만 사용하도록 수정한 것은 적절한 조치로 보입니다. 코드 변경 자체는 명확하며, 한 가지 유지보수성 향상을 위한 제안을 리뷰 코멘트로 남겼습니다.

{process.env.NODE_ENV === 'production' && (
<>
<GoogleTagManager gtmId='GTM-PH2N3NWM' />
<GoogleAnalytics gaId='G-2EN8NDYR97' />
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

GA ID가 코드에 하드코딩되어 있습니다. 유지보수성을 높이기 위해 이 값을 환경 변수(process.env.NEXT_PUBLIC_GA_ID)로 추출하는 것을 권장합니다. 이렇게 하면 여러 환경에서 다른 ID를 사용하거나 코드를 변경하지 않고 ID를 쉽게 업데이트할 수 있습니다. 제안된 코드의 !는 환경 변수가 항상 존재한다고 가정합니다. 만약 값이 없을 수 있다면, 렌더링 전에 유효성 검사를 추가하는 것이 안전합니다.

Suggested change
<GoogleAnalytics gaId='G-2EN8NDYR97' />
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GA_ID!} />

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