diff --git a/bun.lockb b/bun.lockb
index 068b576..70b9ad3 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/package.json b/package.json
index 8fa000d..e16febc 100644
--- a/package.json
+++ b/package.json
@@ -37,6 +37,7 @@
"next": "^14.2.4",
"next-themes": "^0.3.0",
"postgres": "^3.4.4",
+ "posthog-js": "^1.154.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.51.5",
diff --git a/src/app/_analytics/provider.tsx b/src/app/_analytics/provider.tsx
new file mode 100644
index 0000000..13dcf18
--- /dev/null
+++ b/src/app/_analytics/provider.tsx
@@ -0,0 +1,38 @@
+"use client";
+import { useAuth, useUser } from "@clerk/nextjs";
+import posthog from "posthog-js";
+import { PostHogProvider } from "posthog-js/react";
+import { useEffect } from "react";
+
+if (typeof window !== "undefined") {
+ posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
+ api_host: "/ingest",
+ ui_host: "https://app.posthog.com",
+ });
+}
+
+export function CSPostHogProvider({ children }: { children: React.ReactNode }) {
+ return (
+