Skip to content

feat: add Vercel Analytics - #3

Merged
trmquang93 merged 1 commit into
mainfrom
feat/add-vercel-analytics
Mar 15, 2026
Merged

trmquang93 merged 1 commit into
mainfrom
feat/add-vercel-analytics

Conversation

@trmquang93

Copy link
Copy Markdown
Collaborator

Summary

  • Install @vercel/analytics package
  • Import and render <Analytics /> once at the App level in src/App.jsx
  • Refactor route branching to a unified return so the analytics component is mounted once across all routes (landing, editor, docs)

Test plan

  • Run npm run dev and verify no console errors
  • Navigate between landing (/), editor (#/editor), and docs (#/docs) — analytics component should persist across hash-based route changes
  • Run npm run build and confirm production build completes without errors
  • After deploying to Vercel, verify page views appear in the Vercel Analytics dashboard

Install @vercel/analytics and render <Analytics /> once at the App level
so all routes (landing, editor, docs) are tracked without duplicating
the component across early-return branches.
@vercel

vercel Bot commented Mar 15, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
flow-forge Ready Ready Preview, Comment Mar 15, 2026 7:48am

@trmquang93
trmquang93 merged commit 51fe9b1 into main Mar 15, 2026
2 checks passed
@trmquang93
trmquang93 deleted the feat/add-vercel-analytics branch March 15, 2026 07:50

This branch was successfully deployed

1 active deployment
Preview — be2c9e83 Deployed Mar 15, 2026 by vercel[bot]
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