Skip to content

[www] - add Vercel Web Analytics - #192

Merged
ejkorol merged 1 commit into
mainfrom
www-vercel-analytics
Oct 28, 2026
Merged

ejkorol merged 1 commit into
mainfrom
www-vercel-analytics

Conversation

@ejkorol

@ejkorol ejkorol commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Mount from @vercel/analytics/next once in the root layout, outside the theme/nuqs providers, with default page-view behaviour and no custom events. It records only on Vercel deployments; dashboard enablement is a separate manual step.

Summary by CodeRabbit

  • New Features
    • Page views are now tracked for the website on Vercel deployments.

Mount <Analytics /> from @vercel/analytics/next once in the root layout,
outside the theme/nuqs providers, with default page-view behaviour and no
custom events. It records only on Vercel deployments; dashboard enablement
is a separate manual step.

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

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
benchmarks Ready Ready Preview Oct 28, 2026 8:48pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e9d34a22-1244-4b76-8d52-0580c5cff65e
Commits

Reviewing files that changed from the base of the PR and between 4acc10e and 2319906.

Files selected for processing: 3
  • apps/www/package.json
  • apps/www/src/app/layout.tsx
  • vlt-lock.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The www app adds @vercel/analytics and renders its Analytics component in the root layout for page-view tracking on Vercel deployments.

Changes: Vercel Analytics Integration

Layer / File(s) Summary
Add and render analytics
apps/www/package.json, vlt-lock.json, apps/www/src/app/layout.tsx
The app adds @vercel/analytics and records it in the lockfile. The root layout imports and renders Analytics after the theme, query-string, and tooltip providers.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: Minimal · up to 23199

The analytics integration is ready to merge with no identified blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: adding Vercel Web Analytics to the www application.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (2 skipped: 2 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​vercel/​analytics@​2.0.1991008393100

View full report

@ejkorol
ejkorol merged commit 0d78549 into main Oct 28, 2026
61 checks passed
@ejkorol
ejkorol deleted the www-vercel-analytics branch October 28, 2026 23:35

This branch was previously deployed

1 inactive deployment
Benchmark — 23199069 Deployed Oct 28, 2026 by ejkorol via Run Benchmarks (svelte, ci) #1381
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