From 37921c6cce7aee26252b7d5cb125b124d2ba7a3b Mon Sep 17 00:00:00 2001 From: engboris Date: Fri, 12 Dec 2025 23:23:50 +0100 Subject: [PATCH] Use Umami instead of Google Analytics --- src/components/CookieBanner.astro | 82 ------------------------------- src/layouts/Layout.astro | 19 +------ src/pages/privacy.astro | 25 +++------- 3 files changed, 10 insertions(+), 116 deletions(-) delete mode 100644 src/components/CookieBanner.astro diff --git a/src/components/CookieBanner.astro b/src/components/CookieBanner.astro deleted file mode 100644 index 2406eef..0000000 --- a/src/components/CookieBanner.astro +++ /dev/null @@ -1,82 +0,0 @@ ---- -/** - * Privacy notice banner component. - * Displays a GDPR-compliant consent banner at the bottom of the page. - * Manages user consent for analytics via localStorage. - * - * Note: Analytics loading is handled separately in Layout.astro to avoid - * ad blockers blocking this script due to analytics-related keywords. - * - * Element IDs use generic names to avoid ad blocker filter lists that - * target common patterns like "cookie-banner" or "consent-notice". - */ ---- - - - - diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 3653689..f76e7a3 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -2,7 +2,6 @@ import "../styles/global.css"; import Navbar from "../components/Navbar.astro"; import Footer from "../components/Footer.astro"; -import CookieBanner from "../components/CookieBanner.astro"; import logo from "../assets/logo.svg"; import { SEO } from "astro-seo"; @@ -82,22 +81,8 @@ const seoConfig = {