Enable Vercel Analytics or Vercel Speed Insights

Learn how to enable Vercel Analytics and Speed Insights using simple environment variables and the Vercel dashboard.

Posted by@Sujal Vanjare
Published on @
Updated on @

What this feature does

Vercel Analytics shows traffic, visitor activity, and basic user behavior.

Speed Insights shows performance scores like LCP, CLS, and other web vitals.

Both features only work after the site is deployed on Vercel. They do not work in local development.


Step 1. Deploy your site on Vercel

If your site is not deployed, do that first. These features depend on the Vercel environment.


Step 2. Add environment variables

In your Vercel project settings, go to Environment Variables and add:

Plain Text
ENABLE_VERCEL_ANALYTICS=true
ENABLE_VERCEL_SPEED_INSIGHTS=true

You can set one of them to true and the other to false if you only want one tool. After adding the variables, redeploy the site.


Step 3. Enable inside the Vercel dashboard

After redeploying:

  1. 1.a.i.
    Open your Vercel project
  2. 2.b.ii.
    Go to the Analytics tab and click Enable
  3. 3.c.iii.
    Go to the Speed Insights tab and click Enable

Once you turn them on, Vercel will start collecting data.


Step 4. View your reports

After the site gets visitors, you will see:

  • Page visits
  • Referrals
  • Real time visitors
  • Route performance
  • Web vitals scores

Both dashboards update automatically.


Notes

  • Do not set these values in local development since they are only useful in production
  • You can enable only one or both
  • Data will take time to build, especially on new sites