Fix #708: Add vercel analytics to our codegraphcontext.vercel.app website. - #1260
Merged
Shashankss1205 merged 3 commits intoJul 31, 2026
Conversation
…t.vercel.app webs Signed-off-by: nandanadileep <nandanadileep29@gmail.com>
|
@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. |
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
marked this pull request as ready for review
July 31, 2026 18:13
Shashankss1205
approved these changes
Jul 31, 2026
Shashankss1205
left a comment
Collaborator
There was a problem hiding this comment.
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.
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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #708
Replaced the plain
inject()call inmain.tsxwith the React<Analytics />component from@vercel/analytics/reactinApp.tsx, which properly integrates with React lifecycle and sets theframework: "react"property for Vercel Analytics.Local test infra unavailable in CI sandbox.
This change was prepared with AI assistance under human direction and review.