diff --git a/apps/dashboard/next.config.ts b/apps/dashboard/next.config.ts
index cb495b753be..cdf880e3d9f 100644
--- a/apps/dashboard/next.config.ts
+++ b/apps/dashboard/next.config.ts
@@ -146,6 +146,18 @@ const baseNextConfig: NextConfig = {
},
async rewrites() {
return [
+ {
+ source: "/_ph/static/:path*",
+ destination: "https://us-assets.i.posthog.com/static/:path*",
+ },
+ {
+ source: "/_ph/:path*",
+ destination: "https://us.i.posthog.com/:path*",
+ },
+ {
+ source: "/_ph/decide",
+ destination: "https://us.i.posthog.com/decide",
+ },
{
source: "/thirdweb.eth",
destination: "/deployer.thirdweb.eth",
diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json
index 6cbd148d935..d653afc294c 100644
--- a/apps/dashboard/package.json
+++ b/apps/dashboard/package.json
@@ -62,7 +62,6 @@
"compare-versions": "^6.1.0",
"date-fns": "4.1.0",
"fast-xml-parser": "^5.2.5",
- "flat": "^6.0.1",
"framer-motion": "12.17.0",
"fuse.js": "7.1.0",
"input-otp": "^1.4.1",
@@ -77,7 +76,7 @@
"p-limit": "^6.2.0",
"papaparse": "^5.5.3",
"pluralize": "^8.0.0",
- "posthog-js": "1.67.1",
+ "posthog-js": "1.252.0",
"prettier": "3.5.3",
"qrcode": "^1.5.3",
"react": "19.1.0",
diff --git a/apps/dashboard/src/app/(app)/layout.tsx b/apps/dashboard/src/app/(app)/layout.tsx
index 179030a7dbe..5382bf4fc9d 100644
--- a/apps/dashboard/src/app/(app)/layout.tsx
+++ b/apps/dashboard/src/app/(app)/layout.tsx
@@ -1,9 +1,6 @@
import "../../global.css";
import { DashboardRouterTopProgressBar } from "@/lib/DashboardRouter";
import { cn } from "@/lib/utils";
-import { PHProvider } from "lib/posthog/Posthog";
-import { PosthogHeadSetup } from "lib/posthog/PosthogHeadSetup";
-import { PostHogPageView } from "lib/posthog/PosthogPageView";
import type { Metadata } from "next";
import PlausibleProvider from "next-plausible";
import { Inter } from "next/font/google";
@@ -61,26 +58,20 @@ export default function RootLayout({
customDomain="https://pl.thirdweb.com"
selfHosted
/>
-