Skip to content

fix: 구글 애널리틱스 호출 함수 main.tsx에 추가#242

Merged
heeeeyong merged 1 commit intodevelopfrom
chore/minor-updates
Sep 13, 2025
Merged

fix: 구글 애널리틱스 호출 함수 main.tsx에 추가#242
heeeeyong merged 1 commit intodevelopfrom
chore/minor-updates

Conversation

@heeeeyong
Copy link
Collaborator

@heeeeyong heeeeyong commented Sep 13, 2025

#️⃣연관된 이슈

없음

📝작업 내용

구글 애널리틱스 초기호출 함수를 main.tsx의 Layout에 추가하여 도메인 루트페이지에서 초기에 1회 호출하도록 했습니다.

💬리뷰 요구사항

없음

Summary by CodeRabbit

  • Chores
    • 앱 로드 시 현재 페이지 경로 기준의 페이지뷰가 자동으로 기록되도록 분석 이벤트를 추가했습니다.
    • 기존 초기화 흐름을 변경하지 않아 사용자 경험과 성능에는 영향이 없습니다.
    • 개인정보 수집 범위의 변경은 없으며, 집계된 사용량 분석에만 활용됩니다.

@heeeeyong heeeeyong self-assigned this Sep 13, 2025
@heeeeyong heeeeyong added 🐞 BugFix Something isn't working 📃 Docs Improvements or additions to documentation labels Sep 13, 2025
@vercel
Copy link

vercel bot commented Sep 13, 2025

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

Project Deployment Preview Comments Updated (UTC)
thip Ready Ready Preview Comment Sep 13, 2025 2:36am

@coderabbitai
Copy link

coderabbitai bot commented Sep 13, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Google Analytics 연동을 확장했습니다. src/lib/ga.ts에 sendPageView(path: string)를 추가/내보내고, src/main.tsx에서 initGA() 이후 현재 URL의 pathname을 전달해 sendPageView()를 호출합니다.

Changes

Cohort / File(s) Summary
GA 페이지뷰 연동
src/main.tsx, src/lib/ga.ts
src/lib/ga.tssendPageView(path: string): void를 추가/export. src/main.tsx에서 GA 초기화(initGA()) 후 현재 location.pathname으로 sendPageView()를 호출하여 초기 페이지뷰를 전송.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant Browser as Browser
    participant App as main.tsx
    participant GA as lib/ga.ts

    Browser->>App: 애플리케이션 부트스트랩
    App->>GA: initGA()
    GA-->>App: 초기화 완료
    App->>GA: sendPageView(location.pathname)
    GA-->>App: 전송 완료
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

작은 발로 툭, 페이지 뷰를 보냈지
풀잎 사이 Wi‑Fi 타고 살짝 건너가네
GA에 토끼 발자국 한 점 찍고
봄바람처럼 가벼운 로그 남긴다
삐약! 아니, 깡총! 📈🐇

✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/minor-updates

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between a401d5f and 2ccd39d.

📒 Files selected for processing (1)
  • src/main.tsx (1 hunks)

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@heeeeyong heeeeyong merged commit 32b8ddd into develop Sep 13, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 BugFix Something isn't working 📃 Docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant