Skip to content

Fix #708: Add vercel analytics to our codegraphcontext.vercel.app website. - #1260

Merged
Shashankss1205 merged 3 commits into
CodeGraphContext:mainfrom
nandanadileep:agent/issue-708-add-vercel-analytics-to
Jul 31, 2026
Merged

Fix #708: Add vercel analytics to our codegraphcontext.vercel.app website.#1260
Shashankss1205 merged 3 commits into
CodeGraphContext:mainfrom
nandanadileep:agent/issue-708-add-vercel-analytics-to

Conversation

@nandanadileep

Copy link
Copy Markdown
Contributor

Fixes #708

Replaced the plain inject() call in main.tsx with the React <Analytics /> component from @vercel/analytics/react in App.tsx, which properly integrates with React lifecycle and sets the framework: "react" property for Vercel Analytics.

Local test infra unavailable in CI sandbox.


This change was prepared with AI assistance under human direction and review.

…t.vercel.app webs

Signed-off-by: nandanadileep <nandanadileep29@gmail.com>
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

@nandanadileep is attempting to deploy a commit to the shashankss1205's projects Team on Vercel.

A member of the Team first needs to authorize it.

Shashankss1205 and others added 2 commits July 31, 2026 23:41
The @vercel/analytics/react import collided with the hand-rolled Analytics
component and its loose window.va declaration, and the package's stricter
Window.va type rejected the 3-arg window.va('event', name, props) calls.
Drop the manual component/declaration (the official one already tracks SPA
route changes) and move the custom events to the supported track() API.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Shashankss1205
Shashankss1205 marked this pull request as ready for review July 31, 2026 18:13

@Shashankss1205 Shashankss1205 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and verified locally: merged onto current main, tsc error set identical to main (no new errors) and vite build green. I pushed a follow-up commit finishing the migration — removed the hand-rolled Analytics component and moved custom events to the track() API so the package types check out.

@Shashankss1205
Shashankss1205 merged commit 2582ecc into CodeGraphContext:main Jul 31, 2026
1 check failed
@github-project-automation github-project-automation Bot moved this from Backlog tasks to Done in CGC Progress Board Jul 31, 2026
@Shashankss1205

Copy link
Copy Markdown
Collaborator

Thanks @nandanadileep for this contribution — merged! 🎉 Vercel Analytics is now wired up the right way (#708). We'd love to have you contribute back again — feel free to pick up another open issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add vercel analytics to our codegraphcontext.vercel.app website.

2 participants