Skip to content
Dashboard

Vercel Web Analytics is now generally available

Get detailed, first-party page views, traffic analytics, and custom events with Vercel Web Analytics.

Link to headingFirst-party Analytics for privacy-friendly tracking and less JS

Analytics unlocks a treasure trove of application data faster than it would take to write the JIRA ticket to set it up.
Michelle Bakels Co-organizer of React Miami

Link to headingFramework-defined analytics ingestion and reporting

import type { AppProps } from 'next/app';
import { Analytics } from '@vercel/analytics/react';
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<Component {...pageProps} />
<Analytics />
</>
);
}
export default MyApp;

If you are using the pages directory, add this component to your main app file.

Link to headingNow with Custom Event Tracking

import va from '@vercel/analytics';
function SignupButton() {
return (
<button
onClick={() => {
va.track('Signup', {
location: 'US'
});
};
>
Sign Up
</button>
);
};

This will track an event named Signup.