Skip to content

feat(analytics): Microsoft Clarity 연동을 추가한다 - #235

Merged
junye0l merged 1 commit into
mainfrom
feat/clarity
Sep 20, 2026
Merged

junye0l merged 1 commit into
mainfrom
feat/clarity

Conversation

@suhyeon0111

@suhyeon0111 suhyeon0111 commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

무엇을 구현했나

세션 레코딩·히트맵으로 사용자 이용 행태를 보기 위해 Microsoft Clarity 를 붙였습니다.

  • src/components/clarity.tsx (신규) — 기존 google-analytics.tsx 와 같은 얼개. next/script 로더 + NEXT_PUBLIC_CLARITY_ID 환경변수, NODE_ENV === "production" 에서만 동작(로컬 dev 클릭이 실지표에 섞이지 않게).
  • 로그인 사용자 최소 식별 — 브라우저 Supabase 세션(onAuthStateChange)으로 초기 로드·로그인·로그아웃을 한 구독에서 처리하여, 로그인 시 identify(user.id) 와 set("logged_in", "true") 태그만 붙입니다. email 등 개인정보는 세션 레코딩에 신원이 남지 않게 보내지 않습니다.
  • src/app/layout.tsx — 본문 뒤 <GoogleAnalytics /> 옆에 <Clarity /> 마운트.
  • src/app/privacy/page.tsx — 개인정보처리방침 반영: 분석 도구·수탁자·국외 이전 목록, 쿠키(_clck/_clsk)와 세션 레코딩 고지, 옵트아웃 안내.

참고사항

  • 새 npm 패키지 추가 없음 — 태그 로더 몇 줄을 직접 넣었습니다(AGENTS.md).

체크리스트

  • 로컬에서 lint / typecheck 통과 (pre-push typecheck 초록불)
  • 새 npm 패키지 추가 안 함
  • 1 PR = 1 목적 — 관련 없는 변경 안 섞음

🤖 Generated with Claude Code

세션 레코딩·히트맵으로 사용자 이용 행태를 보기 위해 Clarity 를 붙인다.
GA(google-analytics.tsx)와 같은 얼개 — next/script 로더 + NEXT_PUBLIC_CLARITY_ID
환경변수, 프로덕션에서만 동작(로컬 dev 클릭이 실지표에 섞이지 않게).

로그인 사용자는 최소한만 식별한다: user id 와 logged_in 태그. email 등
개인정보는 세션 레코딩에 신원이 남지 않게 보내지 않는다. 식별은 브라우저
Supabase 세션(onAuthStateChange)으로 초기 로드·로그인·로그아웃을 한 구독에서 처리.

개인정보처리방침에 Clarity 를 반영 — 분석 도구·수탁자·국외 이전 목록,
쿠키(_clck/_clsk)와 세션 레코딩 고지, 옵트아웃 안내.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 20, 2026

Copy link
Copy Markdown

Deployment failed for project dante-web with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: dante-web.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@junye0l
junye0l merged commit 96ad274 into main Sep 20, 2026
1 of 2 checks passed
@junye0l
junye0l deleted the feat/clarity branch September 20, 2026 12:56
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