diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 7bee6c352..75f03f241 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -2,6 +2,7 @@ import { Lato, Noto_Serif_JP } from 'next/font/google'; import localFont from 'next/font/local'; import { ReactNode, Suspense } from 'react'; +import { GoogleProvider } from 'app/context/google-provider'; import { SupportedLocale } from 'components/layout/navbar/language-control'; import { NextIntlClientProvider } from 'next-intl'; import { notFound } from 'next/navigation'; @@ -87,6 +88,8 @@ export default async function RootLayout({ notFound(); } + const shouldTrack = process.env.NODE_ENV === 'production'; + return (