Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨feat: support privacy-respecting analytics #193

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Conversation

welpo
Copy link
Owner

@welpo welpo commented Oct 4, 2023

This PR adds support for three privacy-preserving analytics services:

  • Plausible
  • Umami
  • Goatcounter

These are set up in the new [extra.analytics], like so:

[extra.analytics]
# Specify which analytics service you want to use.
# Supported options: ["goatcounter", "umami", "plausible"]
service = "umami"

# Unique identifier for tracking.
# For GoatCounter, this is the code you choose during signup.
# For Umami, this is the website ID.
# For Plausible, this is the domain name (e.g. "example.com").
# Note: Leave this field empty if you're self-hosting.
id = "yourID"

# Optional: Specify the URL for self-hosted analytics instances.
# For GoatCounter: Base URL like "https://stats.example.com"
# For Umami: Base URL like "https://umami.example.com"
# For Plausible: Base URL like "https://plausible.example.com"
# Leave this field empty if you're using the service's default hosting.
self_hosted_url = ""

Docs (Mastering tabi post + config and theme.toml) have been updated to reflect the new feature.

Testing

Only non-self-hosted setups have been tested.

Additional Context

This feature was inspired and discussed in Issue #172.

@welpo welpo added the enhancement New feature or request label Oct 4, 2023
@welpo welpo linked an issue Oct 4, 2023 that may be closed by this pull request
@welpo welpo merged commit 228f1ea into main Oct 4, 2023
1 check passed
@welpo welpo deleted the feat/analytics branch October 4, 2023 13:01
Smtbook pushed a commit to Smtbook/zola-theme-tabi that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Privacy-preserving web analytics
1 participant