From 7c71d21bdca7449fedc0118c91b4cb5965925267 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sun, 27 Oct 2024 18:39:13 -0700 Subject: [PATCH] replace plausible with matomo --- config.toml | 3 --- templates/partials/analytics.html | 39 ++++++++++++------------------- 2 files changed, 15 insertions(+), 27 deletions(-) diff --git a/config.toml b/config.toml index b672c95..bda482f 100644 --- a/config.toml +++ b/config.toml @@ -226,9 +226,6 @@ allowed_domains = [ custom_subset = true [extra.analytics] -service = "plausible" -id = "softinio.com" -self_hosted_url = "https://wisdom.softinio.com" # Specify which analytics service you want to use. # Supported options: ["goatcounter", "umami", "plausible"] # service = "goatcounter" diff --git a/templates/partials/analytics.html b/templates/partials/analytics.html index 5f2cf25..77e209d 100644 --- a/templates/partials/analytics.html +++ b/templates/partials/analytics.html @@ -1,24 +1,15 @@ -{% set analytics_service = config.extra.analytics.service %} -{% set analytics_id = config.extra.analytics.id | default(value="") %} -{% set self_hosted_url = config.extra.analytics.self_hosted_url | default(value="") %} - -{% if analytics_service == "goatcounter" %} -{# Prevent non-demo sites from using the demo analytics account #} -{% if self_hosted_url == "https://tabi-stats.osc.garden" and config.base_url == "https://welpo.github.io/tabi" or -self_hosted_url != "https://tabi-stats.osc.garden" %} - -{% endif %} - -{% elif analytics_service == "umami" %} - - -{% elif analytics_service == "plausible" %} - - -{% endif %} + + +