From 32950328829b96c33c245feb89e5fb839928d6e6 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 17 Mar 2025 17:19:50 +0600 Subject: [PATCH] web/layout: don't load the plausible script when analytics are disabled addresses #1136 --- web/src/routes/+layout.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index 28f3fdfd..2f419223 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -67,7 +67,7 @@ {/if} - {#if env.PLAUSIBLE_ENABLED} + {#if browser && env.PLAUSIBLE_ENABLED && !$settings.privacy.disableAnalytics}