diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 390d3c5..745f92b 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -3,8 +3,17 @@ import Toast from '$lib/components/Toast.svelte'; import 'tailwindcss/tailwind.css'; export let data; + + const enableAnalytics = process.env['ENABLE_ANALYTICS'] || 'false'; + const unamiKey = process.env['UNAMI_KEY'] || ''; + + {#if enableAnalytics === 'true' && unamiKey} + + {/if} + +