Home / Market / vercel analytics

vercel analytics

Set up Vercel Analytics and Speed Insights for React/Vite projects

claude-command★ 347030 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- allowed-tools: Read, Write, Edit, Bash argument-hint: description: Set up Vercel Analytics and Speed Insights for React/Vite projects

---

Vercel Analytics Setup

Automatically configure Vercel Analytics and Speed Insights for your React/Vite project.

Usage: /vercel-analytics (no arguments needed)

What it does:

Process:

  1. Install Vercel Packages
   npm install @vercel/analytics @vercel/speed-insights
  1. Detect Main App File
  1. Add Analytics Components
  1. Create vercel.json Configuration
   {
     "rewrites": [
       { "source": "/(.*)", "destination": "/index.html" }
     ]
   }
  1. Verify Setup

Expected Outcome:

Next Steps:

  1. Deploy to Vercel: vercel deploy
  2. View analytics at: https://vercel.com/dashboard/analytics
  3. Check Speed Insights: https://vercel.com/dashboard/speed-insights

Note: Works with React, Vite, Create React App, and other SPA frameworks.