Skip to content

Add Vercel Web Analytics - #3

Merged
byteayan merged 1 commit into
mainfrom
feat/vercel-analytics
Sep 16, 2026
Merged

byteayan merged 1 commit into
mainfrom
feat/vercel-analytics

Conversation

@byteayan

Copy link
Copy Markdown
Owner

Covers the code half of the Enable Web Analytics item on Vercel's production checklist.

Adds @vercel/analytics and mounts <Analytics /> next to <App /> in src/main.tsx. Vercel injects the tracking script only on its own deployments, so local dev and any other host are unaffected. It's cookieless and needs no consent banner.

This alone doesn't tick the box

Analytics also has to be switched on in the dashboard: Project → Analytics → Enable. Until then the component is inert. Merge order doesn't matter.

Verified

typecheck, lint, format:check and build all pass. Bundle impact is negligible — the script loads from Vercel's edge, not the app bundle.

🤖 Generated with Claude Code

Mounts the <Analytics /> component alongside <App />. Vercel injects the
script only on its own deployments, so local dev and any other host are
unaffected.

Web Analytics still has to be switched on in the Vercel dashboard
(Project > Analytics); until then this is inert.

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

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
wandr Ready Ready Preview Sep 16, 2026 10:33am UTC

@byteayan
byteayan merged commit 8980fb9 into main Sep 16, 2026
3 checks passed
@byteayan
byteayan deleted the feat/vercel-analytics branch September 16, 2026 10:33
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