-
Notifications
You must be signed in to change notification settings - Fork 8
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
Plausible response is always a 202 #13
Comments
I'm no authority on this, but I do believe it's unnecessary. I set mine up with just the domain, no proxy, and it works just fine. |
Hey @thely, sorry for getting back to you so late. This is not really an issue caused by this module, but more generally a combination of proxying and For this setup to work, there is no need to have a self-hosted Plausible instance. The goal here is for you to configure any web-server, that is under your control, to forward the plausible requests, so common ad- and tracking-blockers won't detect them. This can really be any server, for example a Cloudflare Worker, a Nginx reverse proxy in front of your Nuxt app, or the server component of your Nuxt app itself. You can find some example proxy configurations in the Plausible docs. Let's say your app is hosted at Please let me know if anything is still unclear, or if there is an issue with this module. |
I'm not sure if this is more relevant here or over on plausible-tracker, but I'm having a hell of a time getting this module working properly.
I'd like to just set a proxy to go straight to
plausible.io/js/script.js
, and it seemed like this package was part of the road to get there, but the instructions provided by this module don't apply to my use case. I'm not self-hosting Plausible, so settingapiHost
to my domain will never work. Instead, I'm trying what seems like the right direction (though I have no idea), which is to set Plausible as normal, and set a proxy to go from my site to the Plausible API via nuxt-proxy. But no matter what I do, if I get anywhere close to right with either of these libraries, I'm only getting as far as 202 Accepted, and the traffic isn't registering on the dashboard.Here are my current settings:
nuxt.config.js
Is this unnecessary? Is there some way to use the
apiHost
property to proxy without self-hosting, or is there something else I should be doing?The text was updated successfully, but these errors were encountered: