Skip to content

Audiences is available in Beta on all plans

To start tracking visitors and page views with Audiences, use the following steps:

On the Vercel dashboard, select your Project and then click the Analytics tab. From there, select the Audiences tab, and click Enable from the dialog.

Note: Enabling Audiences will add new routes (scoped at /_vercel/insights/*) after your next deployment.

Using the package manager of your choice, add the @vercel/analytics package to your project:

npm install @vercel/analytics

Select your framework below to view instructions on using the @vercel/analytics component in your project.

The Analytics component is a wrapper around the tracking script, offering more seamless integration with Next.js.

If you are using the pages directory, add the following component to your main app file:

import { Analytics } from '@vercel/analytics/react';

function MyApp({ Component, pageProps }) {
  return (
      <Component {...pageProps} />
      <Analytics />

export default MyApp;

Once you have added your app, it's ready to be deployed to Vercel so that you can start to see data flowing in.