-
+
@@ -75,7 +83,12 @@ export function Navbar(props: Props) {
@@ -122,7 +135,12 @@ export function Navbar(props: Props) {
))}
diff --git a/src/components/react/NewsletterCTA.tsx b/src/components/react/NewsletterCTA.tsx
index 2f97c41..09e4dea 100644
--- a/src/components/react/NewsletterCTA.tsx
+++ b/src/components/react/NewsletterCTA.tsx
@@ -26,6 +26,7 @@ export function NewsletterCTA({
const [done, setDone] = useState(false);
const onSubmit = (e: React.FormEvent) => {
+ window.posthog?.capture("newsletter_subscribed");
if (action) return; // let the real endpoint handle it
e.preventDefault();
if (!email) return;
@@ -52,7 +53,11 @@ export function NewsletterCTA({
{heading}
- {subheading &&
{subheading}
}
+ {subheading && (
+
+ {subheading}
+
+ )}
{done ? (
-
Thanks! Check your email client to confirm.
+
+ Thanks! Check your email client to confirm.
+
) : (
No spam — just occasional updates on open knowledge in Belgium.
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
index c7d8768..b7126bb 100644
--- a/src/layouts/BaseLayout.astro
+++ b/src/layouts/BaseLayout.astro
@@ -1,5 +1,6 @@
---
import "@/styles/global.css";
+import PostHog from "@/components/posthog.astro";
interface Props {
title?: string;
@@ -43,6 +44,8 @@ const canonical = new URL(Astro.url.pathname, Astro.site).toString();
+
+
+
+
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 9f42f0f..1fb64a6 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -161,3 +161,14 @@ const values = [
contactEmail={site.email}
/>
+
+
diff --git a/src/pages/stories/[slug].astro b/src/pages/stories/[slug].astro
index 11b89a6..a1edfd9 100644
--- a/src/pages/stories/[slug].astro
+++ b/src/pages/stories/[slug].astro
@@ -56,3 +56,14 @@ const d = story.data;
+
+