Using Vercel Analytics
Answered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
Im trying to get analytics set up, but it says I need to install a package for it. I assume i have to bring the project to my computer to install it, but the project isnt own my computer or github. Is there a way for me to download my project, or can someone justy go over more how to set up analytics? Thanks!
Answered by Asian black bear
You need to add their Analytics component to your root layout, so you need to push code changes.
https://vercel.com/docs/analytics/quickstart#add-@vercel/analytics-to-your-project
https://vercel.com/docs/analytics/quickstart#add-@vercel/analytics-to-your-project
5 Replies
Asian black bear
You need to add their Analytics component to your root layout, so you need to push code changes.
https://vercel.com/docs/analytics/quickstart#add-@vercel/analytics-to-your-project
https://vercel.com/docs/analytics/quickstart#add-@vercel/analytics-to-your-project
Answer
Asiatic LionOP
But it says something about pnpm i -g vercel
What do i do with that?
What do i do with that?
Asian black bear
The Vercel CLI is necessary if you deploy manually instead of having deployments triggered by a push to a repo.
You literally need to follow the steps linked:
- Add @vercel/analytics to your project
- Add the Analytics component to your app
And then just deploy the app again.
- Add @vercel/analytics to your project
- Add the Analytics component to your app
And then just deploy the app again.
Asiatic LionOP
Alright thanks