Vercel Analytics & Speed Insights

Monitor traffic and Core Web Vitals with Vercel Analytics and Speed Insights without configuration.

Vercel provides built-in analytics and real-user monitoring (RUM) for sites deployed on their platform. Boltdocs injects the required scripts automatically when you enable them in your configuration.

Configuration ReferenceLink

PropertyTypeDefaultDescription
analyticsbooleantrueEnables Vercel Web Analytics (page views, unique visitors).
speedInsightsbooleantrueEnables Vercel Speed Insights (Core Web Vitals, LCP, CLS, INP).

Minimal ExampleLink

ts
integrations: {
  analytics: {
    vercel: {
      analytics: true,
    },
  },
}

Both Enabled (Default)Link

ts
integrations: {
  analytics: {
    vercel: {
      analytics: true,
      speedInsights: true,
    },
  },
}

How It WorksLink

When enabled, Boltdocs injects two script fragments into the <head> of every page at build time:

  1. Vercel Analytics — <script defer src="/_vercel/insights/script.js">
  2. Speed Insights — <script defer src="/_vercel/speed-insights/script.js">

Vercel automatically handles the data collection pipeline on their edge network. No additional API keys or configuration required.


TroubleshootingLink

Scripts don't appear in developmentLink

This is expected. Both scripts are only injected in production builds. Run boltdocs build && boltdocs preview to test locally.

Data doesn't appear in the Vercel dashboardLink

  • Make sure your project is deployed to the Vercel production environment
  • Verify the scripts are present by viewing the page source of your deployed site
  • Wait up to 24 hours for data to appear in the dashboard
Last updated on October 18, 2026

Was this page helpful?