@vercel/speed-insights
automatically tracks web vitals and other performance metrics for your website.
This package does not track data in development mode.
It has 1st class integration with:
Framework | Package |
---|---|
Next.js | @vercel/speed-insights/next |
Nuxt | @vercel/speed-insights/nuxt |
Sveltekit | @vercel/speed-insights/sveltekit |
Remix | @vercel/speed-insights/remix |
React | @vercel/speed-insights/react |
Astro | @vercel/speed-insights/astro |
Vue | @vercel/speed-insights/vue |
It also supports other frameworks, vanilla JS and static websites.
Enable Vercel Speed Insights for a project in the Vercel Dashboard.
Add the @vercel/speed-insights
package to your project
Inject Speed Insights to your app
<SpeedInsights />
component to inject the script into your app.injectSpeedInsights()
function @vercel/speed-insights/sveltekit
in your top-level +layout.js/ts
file.inject
function add the tracking script to your app.Deploy your app to Vercel and see data flowing in.
Find more details about this package in our documentation.