Hi all, I’m running the tailwind-css-starterblog and am not able to implement the web analytics. I added the “yarn add @vercel/analytics” ; it is in my package.json.
I imported “import { Analytics } from ‘@vercel/analytics/react’” in my layout.tsx
adjusted the body to
When you first deploy with the Analytics component it can take a few minutes for the first events to show up. You can also check manually in the browser’s network dev tools for requests being sent to /_vercel/insights/view - do you see these requests being made?
If so, we can tell that it’s at least sending events properly. If not, it might be a client issue. Let me know and we can try to narrow down the issue further.
To check if Vercel Analytics is working properly, open your browser’s developer tools (F12), go to the Network tab, filter for “insights” or “/_vercel/insights”, and look for requests to “/_vercel/insights/view” with successful status codes (200 or 204)