Plausible 0 visitors wordpress #3819
Replies: 5 comments 3 replies
-
Plugin works fine for my self hosted sites. Silly question, but have you set the address in the self hosted tab? And of course have you checked incognito as by default logged in users aren't counted |
Beta Was this translation helpful? Give feedback.
-
Please share more information on your setup :) What versions do you use, configs, do you use any proxies, etc. |
Beta Was this translation helpful? Give feedback.
-
Hello, i wanted to say upfront that I'm not an native english speaker and very tired so there are going to be a lot of grammar and spelling mistakes in this and I'm very sorry about it. I hope everything is understandable. @rossdav70 @ruslandoga nginx: certbot: mail: plausible_db: plausible_events_db: plausible: volumes: networks: As you can see i have Nginx, plausible and certbot running as Dockers. I used Nginx as a reverse proxy and certbot as ssl certificate with the following config: server { location ~ /.well-known/acme-challenge/ { location / { This is basically my whole configuration. all server none public stuff like domains i just made some up. But they are in the format as above, so whenever there is a https:// before there is one in the config and if there isn't there isn't in the config. To describe the problem a bit further. Whenever i just write plausible.myplauserver.de in the wordpress plugin under self hosted it doesn't report it to my plausible interface. I then tried the normal code snippet i got from plausible which was
That did not work either. However i found something on with a similar problem, however they didn't have a wordpress site but a normal html site and they resolved it by rewriting the code snippet like this:
whenever I did this it worked with the code snippet. However I would rather get it to work with the actual wordpress plugin due though multiple reasons. A solution would be greatly appreciated. Thank you guys so much for helping. I got to be honest other that that plausible is amazing. |
Beta Was this translation helpful? Give feedback.
-
@LordPaulHD ... yes, I am running a Reverse Proxy. The thing is, when my config wasn't right I was only getting a 502 Bad Gateway. My nginx config is different to yours, but the fact you have the front end working suggests to me that it's ok, When I look at one of my sites that uses the plugin I see this. <script defer="" data-domain="mysite.com" data-api="https://analytics.mydomain.com/api/event" src="https://analytics.mydomain.com/js/plausible.outbound-links.tagged-events.js?ver=2.0.5" id="plausible"></script>As you can see the data-api is already added for me. Here are my screenshots from within the plugin. |
Beta Was this translation helpful? Give feedback.
-
@rossdav70
This makes the problem very obvious. data-domain is missing. However I have no glue how to fix that:) Any Ideas from your side? You are right it is just for convenience but I do like my convenience and I'm going to have to do this a lot more often and want it to be easily adjustable. |
Beta Was this translation helpful? Give feedback.
-
Hi, I just finished to set up a self hosted plausible server. I use nginx as an reverse proxy.
But when I use the official wordpress plugin to connect to my self hosted instance (plausible.myserver.de) and leave the rest of the configuration to standard, I don't get a visitors output.
I found somebody with a similar problem just he had a code snippet for a normal website. His solution was to add data-api="https://plausible.myserver.de/api/event" to the code snippet. I tried this and deactivated the plugin and it works.
However i would prefer to use the actual wordpress plugin. Is there a way I can make it work?
Thanks for answers
Paul
Beta Was this translation helpful? Give feedback.
All reactions