mountbatt / plausible-viewer

Embeds plausibe.io Analytics and displays plausible.io or self-hosted plausible iFrames in WordPress.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plausible-viewer

Embeds plausibe.io Analytics and displays plausible.io or self-hosted plausible iFrames in WordPress.

Setup

Bildschirm­foto 2022-11-17 um 10 05 00

Dashboard

Bildschirm­foto 2022-11-17 um 02 40 59

Running

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.

Troubleshoot

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.

Selfhosting Plausible

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.

DigitalOcean Referral Badge

(Referral Link)

About

Embeds plausibe.io Analytics and displays plausible.io or self-hosted plausible iFrames in WordPress.

License:GNU General Public License v3.0


Languages

Language:PHP 99.7%Language:HTML 0.3%