vercel / analytics

Privacy-friendly, real-time traffic insights
https://vercel.com/analytics
Mozilla Public License 2.0
423 stars 26 forks source link

Getting 404 for `script.js` #1

Closed bogy0 closed 1 year ago

bogy0 commented 1 year ago

First of all, great work with the updates. Watching the conference was really inspiring. Of course, my first thing to do was to update one of my Next.js projects and try the new goodies.

At one point I decided to try out this new Analytics feature called Audiences, but after adding it to the project I am getting these errors in the console. Screenshot 2022-10-25 at 23 46 55

After some quick search in the vercel org I came across this repository where I found a reference for this va/script.js file. Screenshot 2022-10-25 at 23 50 22

Overall, the audiences feature is working, I am getting visitor data in the newly enabled dashboard page; the issue only is that the browser logging this error.

If you need further details, example codes, let me know, but what i did was basically follow your guide:

import { Analytics } from '@vercel/analytics/react';

import '../styles/globals.css'

const MyApp = ({Component, pageProps }) => {
  return (
      <>
        <Component {...pageProps} />
        <Analytics />
      </>
  );
}

export default MyApp
Dogtiti commented 1 year ago

@tobiaslins https://auto-agentgpt.com/

tobiaslins commented 1 year ago

@Dogtiti It seems like you've already collected data once with that domain but currently Web Analytics for that project is disabled. Head over to the Analytics tab for this project, enable it & redeploy to start collecting data again!

Dogtiti commented 1 year ago

ok,thanks

---Original--- From: "Tobias @.> Date: Tue, May 2, 2023 15:03 PM To: @.>; Cc: @.**@.>; Subject: Re: [vercel/analytics] Getting 404 for script.js (Issue #1)

@Dogtiti It seems like you've already collected data once with that domain but currently Web Analytics for that project is disabled. Head over to the Analytics tab for this project, enable it & redeploy to start collecting data again!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

reevosolutions commented 1 year ago

I think this happens when you integrate the analytics on your project without activating the analytics on Vercel

valdemardev01 commented 10 months ago

Found out that mby if you use adblock, that will stop the script.js from running.

rkreicbergs-sorsera commented 10 months ago

We also get 404 errors in Datadog, but not sure it's the same issue.

Can any of this be explained by ad blockers? IIUC, that could not explain it - it would simple not call /_vercel/insights/view at all and thus we'd not get any errors, no?

Can this be explained by a crawler or smth accessing /_vercel/insights/view directly? if I open it manually, just got the same type of error in DataDog. Can I enable some input validation for that page or something? If nothing else, we'll just ignore all those logs completely, which doesn't seem like the right approach.

oucar commented 5 months ago

I got the exact same error, in my environment my ad blocker was causing the issue. Disabling it solved the problem.

hiroshinishio commented 2 months ago

I am encountering this issue in my local not production

 GET /_vercel/insights/script.js 404 in 2826ms

How can I stop alerting?

ValdemarLarsen commented 2 months ago

I am encountering this issue in my local not production


 GET /_vercel/insights/script.js 404 in 2826ms

How can I stop alerting?

Disable adblock