To start counting visitors and page views, follow these steps.
Start by installing @vercel/analytics in your existing project.
npm i @vercel/analytics
Import and use the <Analytics /> React component into your app's layout.
Add the Web Analytics script before </body> on each page (already on
index.html).
For full examples and further reference, please refer to our documentation ↗
Deploy your changes and visit the deployment to collect your page views.
If you don't see data after 30 seconds, please check for content blockers and try to navigate between pages on your site.
Or, install automatically with Vercel Agent (free).
Automatically generate a pull request with Web Analytics configured for your project — at no charge.