Closed lovkyndig closed 1 year ago
Hey @lovkyndig 🙂
Both proposed solutions are not recommend! Did you try to follow our instructions from the Nuxt documentation? https://vercel.com/docs/concepts/analytics/quickstart
Otherwise there is also a Nuxt community package that wraps @vercel/analytics
.
https://github.com/xanderbarkhatov/nuxt-vercel-analytics
Tanks for reply and the suggestion! I was following the instruction, it didn't work for me. I promise, I was working with this problem in many hours. I supose there is a reson for the package from the Nuxt community.
But thanks for telling me about the nuxt-vercel-analytics
-package!
I want to try it.
Fix:
Option 1
: Innode_modules/@vercel/analytics/analytics/dist/index.js
,Or better,
option 2
:Last step
In nuxt3 create the following
plugin
-file:~/plugins/vercel.client.ts
My GitHub-repo with this code is here: Eleison