Open genox opened 1 year ago
Hi @genox! sorry for the late reply.
Are you sure TELEMETRY_PLAUSIBLE_HOST
is properly set in your production environment (server side)? The domain used is the one passed as customDomain
. The logic is pretty simple.
The env variable is properly set, I double checked.
Is there a fallback implemented in the plausible script that makes it use plausible.io if the self hosted hostname is unreachable?
There's no such fallback as far as I know.
Hi,
When I run my page locally it correctly uses the proxy and my self-hosted plausible registers events. However, once I deploy, no events register anymore.
Looking at the POST that is being fired I see that I get a response that I do not expect:
This looks like a misconfiguration and the request ends up on plausible.io, even though I have configured it as follows:
I checked that all env variables are available, which they are.
I use nextjs@latest in a pages dir setup. I tried running the production build locally to rule out PWA interference and it works fine, just not after being deployed.
In production, the page runs behind Traefik but since the initial request to the proxy api endpoint is working just fine, it has to be the server side request made by the proxy that goes to plausible.io instead of my self-hosted instance.
Here's the headers sent by the client to make that request (I removed the cookies):
Does anyone have a suggestion what I could try to find out what the issue is?