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 */} +