Skip to content

feat: add Google Analytics tracking#81

Merged
vreshch merged 1 commit into
masterfrom
feature/google-analytics
May 15, 2026
Merged

feat: add Google Analytics tracking#81
vreshch merged 1 commit into
masterfrom
feature/google-analytics

Conversation

@vreshch

@vreshch vreshch commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds GA4 measurement (G-17SR60QPS0) via next/script
  • New component src/components/google-analytics.tsx, mounted in root layout
  • Gated on process.env.NODE_ENV === 'production' — dev/local builds don't report

Verification (self-checks)

  • npm run verify — tsc + lint + build + 31 tests all green

How to validate after merge

  • Open https://diffractwd.com on a fresh tab
  • Network: filter gtag/js — script should load
  • GA Realtime (analytics.google.com → diffractwd.com property → Realtime) should show 1 active user within ~30s

Adds GA4 measurement (G-17SR60QPS0) via next/script, mounted in root
layout. Gated on NODE_ENV === 'production' so dev/local builds don't
report.
@github-actions

github-actions Bot commented May 15, 2026

Copy link
Copy Markdown

🎉 PR Validation ✅ PASSED

Commit: 72f0595c4ef46857779742c40d6ce1099791cb11
Branch: feature/google-analytics

Checks:

  • ✅ Dependencies installed
  • ✅ Linting passed
  • ✅ Format check passed
  • ✅ Build successful
  • ✅ Docker build
  • ✅ E2E tests

Visual Changes: 5 of 20 screenshots changed

📸 downloads dark desktop — 100% changed
📸 downloads dark mobile — 100% changed
📸 downloads light desktop — 100% changed
📸 downloads light mobile — 100% changed
📸 home dark mobile — 1.222% changed
Before After Diff

Ready to merge!


🔗 View workflow run
⏰ Generated at: 2026-05-15T22:22:05.514Z

@vreshch vreshch marked this pull request as ready for review May 15, 2026 22:21
@vreshch vreshch merged commit 6ce9001 into master May 15, 2026
1 check passed
@vreshch vreshch deleted the feature/google-analytics branch May 15, 2026 22:22
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.

1 participant