-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect referrer parameter in /api/send #2765
Comments
I am experiencing the same issue. I am also using Next.js. |
I'm facing a similar problem where the document.referrer is accurate, but the referrer passed in the /api/send request is incorrect, leading to the absence of the originating domain in the analytics data. My setup includes NodeJS v18.17.1 and NextJS v14.1.0. Has anyone found a workaround for this issue? |
Having the same problem, funnily enough, when I used a manually beautified version of the script.js it works properly. edit: I'm gonna try the source script as well https://github.com/umami-software/umami/blob/master/src/tracker/index.js I'm thinking there has to be some problem with the minification process edit2: ok, it's not a minification problem something seems to be happening with it seems to have the correct value up until it actually goes through this condition
and funnilly enough if you read edit3:
|
This should work as a temp fix https://gist.github.com/fxck/4f31c37eb9a6fbca09c39518c07e55e6 use at your own risk. |
i think i have the same issue |
@fxck Can you open a PR with your changes? |
it would be great, if this could be fixed in the next version |
@mikecao I could, but I didn't because I had to do some significant changes and hack around the way the script is initialized, including adding a little event queue. And I'm absolutely not sure that it won't break any other use cases. I would be the best if the person that wrote the script originally looked into my findings here and fixed it properly. |
This is now fixed in dev, 291c64f Will get a release out soon. |
Fixed in v2.13.2. |
@mikecao I'm running the 2.13.2 version but as you can see from the screenshot I'm still experiencing this bug. |
Describe the Bug
When redirecting from Google to a website, it was detected that the document. referrer was correct, but the referrer carried in the request sent by/API/send was incorrect, resulting in the source domain name being none in the monitoring data
Database
PostgreSQL
Relevant log output
No response
Which Umami version are you using? (if relevant)
2.11.3
Which browser are you using? (if relevant)
Chrome
How are you deploying your application? (if relevant)
NodeJS v: 18.19.1 - NextJS v:12.0.7
The text was updated successfully, but these errors were encountered: