feat(analytics): make Umami DNT behavior configurable (#536)

Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
undecV 2025-06-17 04:42:13 +08:00 committed by GitHub
parent 23a1baf96c
commit 9b115904d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 16 additions and 4 deletions

View file

@ -1,7 +1,7 @@
+++
title = "Mastering tabi Settings: A Comprehensive Guide"
date = 2023-09-18
updated = 2025-06-08
updated = 2025-06-16
description = "Discover the many ways you can customise your tabi site."
[taxonomies]
@ -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" header.
An example configuration for non-self-hosted GoatCounter would look like this:
```toml