web-vitals icon indicating copy to clipboard operation
web-vitals copied to clipboard

Vercel analytics "Awaiting data"

Open madsh93 opened this issue 3 years ago • 7 comments

Hi

I am not sure the problem is this module, however Vercel refers to this module in their docs. My problem is, I have enabled Vercel analytics and for a few months I have been getting "Awaiting data".

image

Vercel docs state I don't have to add this module manually, however it does not seem to make it work. https://vercel.com/docs/analytics

Has anybody got Nuxt and Vercel analytics to work?

Edit: I have been in contact with the Vercel Support team, who tried re-enabling and re-deploying, with no success. They said it might be caused by having set Content Security Policy to disallow vitals.vercel-insights.com - which I have not.

madsh93 avatar May 21 '21 09:05 madsh93

In fact, I have the same problem so I confirm that there is something wrong with this package.

oritwoen avatar Jun 07 '21 10:06 oritwoen

I have the same problem here, some updates?

fabiovaz avatar Jul 29 '21 14:07 fabiovaz

Same as #25

iranagame avatar Aug 07 '21 19:08 iranagame

@iranagame I see. Thanks for your help. I see that your PR has been merged, but I still get same result. I've tried adding the module manually, but could It be that Vercel overrides with the old version?

madsh93 avatar Aug 09 '21 11:08 madsh93

I'm afraid this issue is not the same as #25 @iranagame! Vercel provider sends event within body not query. (BTW 0.1.7 released with few improvements)

@madsh93 Do you probably have a public URL I can check your deployment logs?

pi0 avatar Aug 12 '21 09:08 pi0

Hi @pi0 yes absolutely! Https://kassebil.dk Edit: thought you meant to the website. I'll post the logs as soon as I get to my PC

madsh93 avatar Aug 12 '21 10:08 madsh93

@pi0 Sorry for the wait!

I've looked into this issue again. With a minimal reproduction repository, I've located the issue to when you add GA ID. Not sure what happens, but this is definitely here the issue lies. For now I've removed this, and I receive data on Vercel again.

  googleAnalytics: {
    id: 'UA-XXXXXXXX-X'
  }

EDIT: Actually I am not sure this was it. It seemed to have fixed the issue on my main project on Vercel. However, I tested a raw installation of Nuxt and it also fails with Vercel Analytics, here's the repo: https://github.com/madsh93/vercel-analytics-nuxt

madsh93 avatar Sep 15 '21 11:09 madsh93

Sorry for the long wait! 😬 Is this still occurring for you?

danielroe avatar May 17 '23 16:05 danielroe

Not sure if this was fixed. But as I've replaced most of my code and no longer use Vercel Analytics I can't say if this is still an issue. I've closed it for now

madsh93 avatar May 21 '23 10:05 madsh93