From d2b9cdd3506162da99d89041688fb991e87aa6d0 Mon Sep 17 00:00:00 2001 From: Darius Cepulis Date: Mon, 20 Oct 2025 18:55:51 -0500 Subject: [PATCH] feat(website): add posthog analytics (#71) --- eslint.config.mjs | 1 + website/src/components/Posthog.astro | 7 +++++++ website/src/layouts/Base.astro | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 website/src/components/Posthog.astro diff --git a/eslint.config.mjs b/eslint.config.mjs index 16320fa5..97b5edb5 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -26,6 +26,7 @@ export default antfu( '**/.vercel/', '**/dist/', '**/styles/vjs.css', + 'website/src/components/Posthog.astro', ], plugins: { 'jsx-a11y': jsxA11y, diff --git a/website/src/components/Posthog.astro b/website/src/components/Posthog.astro new file mode 100644 index 00000000..cb5a9e67 --- /dev/null +++ b/website/src/components/Posthog.astro @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/website/src/layouts/Base.astro b/website/src/layouts/Base.astro index eb18b75b..fe9b94b3 100644 --- a/website/src/layouts/Base.astro +++ b/website/src/layouts/Base.astro @@ -6,6 +6,7 @@ import { SITE_TITLE } from '@/consts'; import '@/styles/globals.css'; import FooterEasterEgg from '@/components/FooterEasterEgg.astro'; +import Posthog from '@/components/Posthog.astro'; interface Props { title: string | string[]; @@ -63,6 +64,9 @@ const fullTitle = Array.isArray(title) {/* Whatever else */} + + {/* Analytics */} +