From 9dffdd177c3abf08dcfb311a795262e022e36327 Mon Sep 17 00:00:00 2001 From: Michael Canova Date: Tue, 10 Feb 2026 22:13:56 -0500 Subject: [PATCH] [Cleanup] Removing Hotjar --- app/layout.tsx | 2 -- components/Hotjar.tsx | 33 --------------------------------- 2 files changed, 35 deletions(-) delete mode 100644 components/Hotjar.tsx diff --git a/app/layout.tsx b/app/layout.tsx index 37a45a6a6..98ba4b07f 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -7,7 +7,6 @@ import { authOptions } from './api/auth/[...nextauth]/auth.config'; import { SITE_CONFIG } from '@/lib/metadata'; import { GoogleAnalytics } from '@next/third-parties/google'; import { Analytics } from '@vercel/analytics/react'; -import Hotjar from '@/components/Hotjar'; import Clarity from '@/components/Clarity'; import { ClientProviders } from '@/components/providers/ClientProviders'; @@ -103,7 +102,6 @@ export default async function RootLayout({ {children} {process.env.GA_MEASUREMENT_ID && } - diff --git a/components/Hotjar.tsx b/components/Hotjar.tsx deleted file mode 100644 index ab47ec8c3..000000000 --- a/components/Hotjar.tsx +++ /dev/null @@ -1,33 +0,0 @@ -'use client'; - -import Script from 'next/script'; - -/** - * Hotjar analytics component for tracking user behavior, heatmaps, and session recordings. - * Only loads in production environment when NEXT_PUBLIC_HOTJAR_ID is configured. - */ -const Hotjar = () => { - const hotjarId = process.env.NEXT_PUBLIC_HOTJAR_ID; - const isProduction = process.env.NODE_ENV === 'production'; - - if (!isProduction || !hotjarId) { - return null; - } - - return ( - - ); -}; - -export default Hotjar;