1# Plausible {#module-services-plausible}
2
3[Plausible](https://plausible.io/) is a privacy-friendly alternative to
4Google analytics.
5
6## Basic Usage {#module-services-plausible-basic-usage}
7
8At first, a secret key is needed to be generated. This can be done with e.g.
9```ShellSession
10$ openssl rand -base64 64
11```
12
13After that, `plausible` can be deployed like this:
14```nix
15{
16 services.plausible = {
17 enable = true;
18 server = {
19 baseUrl = "http://analytics.example.org";
20 # secretKeybaseFile is a path to the file which contains the secret generated
21 # with openssl as described above.
22 secretKeybaseFile = "/run/secrets/plausible-secret-key-base";
23 };
24 };
25}
26```