Reference
Vercel Web Analytics Troubleshooting
Learn how to troubleshoot common issues with Vercel Web Analytics.Table of Contents
Issue: If you are experiencing a situation where data is not visible in the analytics dashboard or a 404 error occurs while loading script.js
, it could be due to deploying the tracking code before enabling Web Analytics.
How to fix:
- Make sure that you have enabled Analytics in the dashboard.
- Re-deploy your app to Vercel.
- Promote your latest deployment to production. To do so, visit the project in your dashboard, and select the Deployments tab. From there, select the three dots to the right of the most recent deployment and select Promote to Production.
Issue: Web Analytics may not function when using a proxy, such as Cloudflare.
How to fix:
- Check your proxy configuration to make sure that all desired pages are correctly proxied to the deployment.
- Additionally, forward all requests to
/_vercel/insights/*
to the deployments to ensure proper functioning of Web Analytics through the proxy.
Last updated on November 24, 2024
Was this helpful?