Skip to content

feat: add Vercel Web Analytics for journal pageview tracking - #68

Merged
rz1989s merged 1 commit into
mainfrom
feat/vercel-web-analytics
Jun 10, 2026
Merged

feat: add Vercel Web Analytics for journal pageview tracking#68
rz1989s merged 1 commit into
mainfrom
feat/vercel-web-analytics

Conversation

@rz1989s

@rz1989s rz1989s commented Jun 10, 2026

Copy link
Copy Markdown
Member

Why

The content series (spec §11) lists journal pageviews as a leading metric, but rectorspace.com has zero pageview instrumentation — Week 1 + Week 2 article traffic is unmeasurable and unrecoverable. This lands before Week 3 (SIP Protocol) ships so the next flagship launches with data from day one.

What

  • @vercel/analytics dependency
  • <Analytics /> (from @vercel/analytics/next) in the root layout, after VersionFooter

Notes

  • Requires Web Analytics enabled on the Vercel project (dashboard → core → Analytics → Enable) — doing that alongside this PR; until enabled the injected script no-ops.
  • Cookieless/privacy-friendly by design — no consent banner needed, fits the de-Google posture.
  • No layout test added: the root layout has no existing test file (config-only component composition); coverage gate stays at 613/613 passing.

Verification

  • npm run test — 613/613 ✓
  • npx tsc --noEmit — clean ✓
  • npm run lint — 0 errors (2 pre-existing warnings, untouched) ✓
  • npm run build — green, all static/SSG pages prerender ✓

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
core Ready Ready Preview, Comment Jun 10, 2026 7:08am

@rz1989s
rz1989s merged commit dc5b20c into main Jun 10, 2026
3 checks passed
@rz1989s
rz1989s deleted the feat/vercel-web-analytics branch June 10, 2026 07:18
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