1. Home
  2. ChevronRightSEO & Robots
  3. ChevronRightVercel Analytics & Speed Insights

Vercel Analytics & Speed Insights

Monitor traffic and Core Web Vitals with zero-config Vercel Analytics and Speed Insights.

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 config.


Quick StartLink

Step 1: Enable analytics in boltdocs.config.tsLink

boltdocs.config.ts
export default defineConfig({
  integrations: {
    analytics: {
      vercel: {
        analytics: true,
        speedInsights: true,
      },
    },
  },
})

Step 2: Deploy to VercelLink

Both scripts are only injected in production builds (NODE_ENV === 'production'). They will not load during local development or preview deployments.


Configuration ReferenceLink

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

Minimal ExampleLink

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

Both Enabled (Default)Link

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

How It WorksLink

When enabled, Boltdocs injects two script snippets 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 are required.


TroubleshootingLink

Scripts not appearing in developmentLink

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

Data not showing in Vercel dashboardLink

  • Ensure your project is deployed on Vercel's production environment
  • Verify the scripts are present by checking the page source of your deployed site
  • Allow up to 24 hours for data to appear in the dashboard
Last updated on July 27, 2026

Was this page helpful?