Embeds plausibe.io Analytics and displays plausible.io or self-hosted plausible iFrames in WordPress.
Note that logged in administrators are not counted by the plugin. So you need to open a private window in your browser to see if your tracking is working.
If you have problems viewing the reports in WordPress, it may be that your (self-hosted) Plausible instance does not allow embedding the repots as iFrame in other websites. Its based on the Same-Origin_-Policy of X-Frame-Options (Look in your browsers Dev-Tools Console for error messages)
For this you have to enter the following in the /etc/nginx/sites-available/plausible.conf
configuration:
location / {
...
proxy_hide_header X-Frame-Options;
...
}
and restart your nginx-server.
I recommend running your own Plausible instance as a Droplet at DigitalOcean. My instance runs for $6/month and works great. You can choose the closest serverlocation (also in Europe) to be nice with the GDPR/DSGVO.
(Referral Link)