diff --git a/pages/_app.tsx b/pages/_app.tsx index 39428fe1..96bc90fa 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -58,7 +58,11 @@ const GoogleAnalytics: React.FC = () => { location.reload() } }, [isAnalyticsEnabled]) - return null + return isAnalyticsInitialized ? ( + + ) : null } const App = ({ @@ -68,27 +72,22 @@ const App = ({ emotionCache = clientSideEmotionCache }: AppProps & { emotionCache?: EmotionCache -}): ReactElement => { - return ( - <> - - - - - - - - - - - - - - - - ) -} +}): ReactElement => ( + <> + + + + + + + + + + + + + + +) export default App