feat(analytics): make Umami DNT behavior configurable

This commit is contained in:
undecV 2025-06-15 19:21:28 +08:00
parent 23a1baf96c
commit fe4e9b6163
No known key found for this signature in database
GPG key ID: 0C736668A96CC1D2
4 changed files with 9 additions and 1 deletions

View file

@ -811,6 +811,8 @@ You can set them up in the `[extra.analytics]` section of your `config.toml`.
- For Umami: `"https://umami.example.com"`
- For Plausible: `"https://plausible.example.com"`
- `do_not_track`: (Umami only) Optional. When set to `true`, the generated tracking script will include the `data-do-not-track="true"` attribute, which disables tracking for users whose browsers send a "Do Not Track" (DNT) header.
An example configuration for non-self-hosted GoatCounter would look like this:
```toml