From 1a1e3204eeed639171ef150076bb0b5a80fd734d Mon Sep 17 00:00:00 2001 From: Dries Augustyns Date: Tue, 10 Mar 2026 20:03:11 +0100 Subject: [PATCH] chore: Add web analytics --- apps/landing/src/pages/_app.tsx | 12 ++++++++---- apps/web/src/pages/_app.tsx | 9 +++++++++ apps/wiki/app/layout.tsx | 7 +++++++ 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/apps/landing/src/pages/_app.tsx b/apps/landing/src/pages/_app.tsx index ebae776..e1a8ca4 100644 --- a/apps/landing/src/pages/_app.tsx +++ b/apps/landing/src/pages/_app.tsx @@ -6,6 +6,7 @@ import {toast, Toaster} from 'sonner'; import {SWRConfig} from 'swr'; import {network} from '../lib/network'; import {DefaultSeo} from 'next-seo'; +import Script from 'next/script'; /** * Main app component @@ -15,10 +16,6 @@ import {DefaultSeo} from 'next-seo'; */ function App({Component, pageProps}: AppProps) { useEffect(() => { - if (typeof window === 'undefined') { - return; - } - const searchParams = new URLSearchParams(window.location.search); const message = searchParams.get('message'); @@ -68,6 +65,13 @@ export default function WithProviders(props: AppProps) { additionalMetaTags={[{property: 'title', content: 'Plunk | The Open-Source Email Platform'}]} /> +