How to Self-Host Plausible Analytics Guide

edited January 2021 in Technical

After much anticipation plausible.io released the option to self host their privacy-friendly analytics solution, a couple of months back. Plausible Cloud options

I have written up a cheeky guide https://cyberhost.uk/selfhost-plausible-analytics/ on how to set this up.

Could be another option to replace Google Analytics with ;) @AnthonySmith

Please let me know if you have any issues with the setup or want to suggest a change to the article.

Best Wishes,
CyberHost

Comments

  • InceptionHostingInceptionHosting Hosting ProviderOG

    Will have a look, cheers!

    Thanked by (1)PHP_Backend

    https://inceptionhosting.com
    Please do not use the PM system here for Inception Hosting support issues.

  • @cyberhost I love your blog design & content, saves me from anxiety :)

    Is there any plans for an article explaining how to do NFS Share mount via Wireguard?

  • edited January 2021

    Appreciate the love @icry (You can thank Ghost), I can understand the anxiety pain with some sites!

    I can take a look into a NFS Share mount via Wireguard :) , however would Syncthing meet your needs?

    Thanked by (1)icry
  • No, Syncthing won't do it. I need to use the HostHatch Deal I got, but every article I find about is failing at some point, mostly at file permissions issue

  • https://github.com/plausible/analytics
    What is that .ex stands for, which language the code is written?

  • @gks said:
    https://github.com/plausible/analytics
    What is that .ex stands for, which language the code is written?

    Elixir

  • edited January 2021

    @icry said:
    No, Syncthing won't do it. I need to use the HostHatch Deal I got, but every article I find about is failing at some point, mostly at file permissions issue

    I'd try chmod 777?

    Leave it with me, I'll take a look at writing an article up on it.

    Thanked by (1)icry
  • lentrolentro Hosting Provider

    Thoughts on that vs Matomo? (https://matomo.org/)

  • @cyberhost said: Leave it with me, I'll take a look at writing an article upon it.

    I love you already =) My NextCloud, NginxProxyManagerr and Bitwarden setup are based on your Guides :+1:

  • Didn't @Daniel just do a blog article about that?

  • @lentro said:
    Thoughts on that vs Matomo? (https://matomo.org/)

    Matomo > Google Analytics obviously, Matomo collect lots more data so I'd be sure to follow the guide here for GDPR.

    I currently use Plausible on cyberhost.uk to respect the privacy of the viewers and the fact I don't need all that data!

  • @icry said:

    @cyberhost said: Leave it with me, I'll take a look at writing an article upon it.

    I love you already =) My NextCloud, NginxProxyManagerr and Bitwarden setup are based on your Guides :+1:

    Thanks for the support :)

    Hope your backing it up!

    Feel free to message me any other article ideas :)

    Thanked by (1)icry
  • DanielDaniel OG
    edited January 2021

    For lightweight, self-hosted analytics, there's also https://umami.is/

    @skorous said:
    Didn't @Daniel just do a blog article about that?

    Yeah I recently wrote a post about sharing storage with NFS and WireGuard: https://d.sb/2020/12/nfs-howto

    @icry said: every article I find about is failing at some point, mostly at file permissions issue

    Make sure the files are owned by the same UID you're trying to use to read/write them. NFS only deals with user IDs by default, not usernames (unless you use idmap) and your user IDs may differ across machines. The id command can give you the UID and GID for a user, or you can just look in /etc/passwd directly. Grab the UID on the client side then use chown on the NFS server with the UID (eg. chown -R 1234:1234 .)

    If you want to create a new user adduser can take the UID and GID using the --uid and --gid options respectively, if you want to ensure the user has the same UID across all your servers. Alternatively you could use Kerberos for auth, but it's very tedious to get working properly.

    If you want root on your client to also essentially have root access on the server, you'll need to add the no_root_squash option to your export.

    Thanked by (2)cyberhost icry
  • Got NC with NFS working somehow using both guides & pulling hair realizing how dumb I'm in the process :D

    Thanked by (1)cyberhost
  • InceptionHostingInceptionHosting Hosting ProviderOG

    I am really liking the look of this tbh, I am about 90% sure I will switch to this for LES.

    Thanked by (2)icry cyberhost

    https://inceptionhosting.com
    Please do not use the PM system here for Inception Hosting support issues.

  • havochavoc OGContent Writer
    edited January 2021

    No cookies and fully compliant with GDPR, CCPA and PECR.

    Nice. As keen as I am on data protection & GDPR...that cookie banner law was one of the worst things to ever happen to humanity. Really should have been written in a way that doesn't require that no-value added annoyance.

Sign In or Register to comment.