From ad03bd274ce29d6c9498a973f590441f4d89b65e Mon Sep 17 00:00:00 2001 From: welpo Date: Wed, 31 Jan 2024 23:33:51 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=88=20chore(stats):=20prevent=20non-de?= =?UTF-8?q?mo=20sites=20from=20using=20demo=20GoatCounter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/partials/analytics.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/partials/analytics.html b/templates/partials/analytics.html index db84300..398287e 100644 --- a/templates/partials/analytics.html +++ b/templates/partials/analytics.html @@ -3,6 +3,8 @@ {% 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" %}