diff --git a/app/layout.tsx b/app/layout.tsx index 37a45a6a..98ba4b07 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 ab47ec8c..00000000 --- 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;