Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🧹 chore(analytics): remove unused PostHog component (#15131)

AmAzing-a22ea78460db
diff --git a/src/components/Analytics/Posthog.tsx b/src/components/Analytics/Posthog.tsx
deleted file mode 100644
index c13876550e2..00000000000
--- a/src/components/Analytics/Posthog.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-'use client';
-
-import posthog from 'posthog-js';
-import { memo, useEffect } from 'react';
-
-interface PostHogProps {
- debug: boolean;
- host: string;
- token?: string;
-}
-
-const PostHog = memo<PostHogProps>(({ token, host, debug }) => {
- useEffect(() => {
- if (!token) return;
-
- posthog.init(token, { api_host: host, debug });
- }, []);
-
- return null;
-});
-
-export default PostHog;