Vercel Speed Insights
Learn how to use Vercel Speed Insights for real-time performance monitoring.
The starter kit already renders Vercel Speed Insights from the root layout. Enable it in Vercel to collect performance measurements from real visits to your deployed application.
What is already configured
The repository includes @vercel/speed-insights and renders its Next.js component in app/layout.tsx:
import { SpeedInsights } from '@vercel/speed-insights/next';
// Inside the root layout body
<SpeedInsights />;No environment variable is required.
Enable Speed Insights
- Open your project in the Vercel dashboard.
- Select Speed Insights in the project sidebar.
- Enable Speed Insights.
- Deploy the application again.
- Visit several pages on the deployed application, then check the Speed Insights dashboard.
Expect real-user data Speed Insights is not a synthetic benchmark. Results appear as people use the deployed application, so a new or low-traffic project may take time to show a representative score.
Read the dashboard
Start with the page and device filters, then inspect the metrics that explain the experience:
- LCP measures how quickly the main content becomes visible.
- INP measures responsiveness across user interactions.
- CLS measures unexpected layout movement.
- FCP measures when the first content is painted.
- TTFB helps identify slow initial server responses.
Use field data to identify a slow page or device class. Reproduce the problem locally with browser performance tools before changing code.
Control usage
The default component sends all supported measurements. If usage becomes material, reduce the sample rate in the existing root-layout integration:
<SpeedInsights sampleRate={0.5} />A value of 0.5 samples approximately half of eligible page views. Keep the default while traffic is low so early measurements are not unnecessarily sparse.
Verify the integration
If no data appears:
- Confirm Speed Insights is enabled for the correct Vercel project.
- Confirm the latest deployment contains
<SpeedInsights />. - Visit the deployed application with tracking protection or ad blockers disabled.
- Check that a reverse proxy or Content Security Policy is not blocking Vercel's collection requests.
- Allow time for real visits to produce data.
See the Vercel Speed Insights quickstart for current provider setup details and the usage guide before changing the sample rate.