Skip to content

Commit

Permalink
Restore google-tag for all users
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-md committed May 24, 2024
1 parent 1545287 commit 1e518a4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ const GoogleAnalytics: React.FC = () => {
location.reload()
}
}, [isAnalyticsEnabled])
return isAnalyticsInitialized ? (
<GoogleTagManager
gtmId={String(process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_TRACKING_ID)}
/>
) : null
return null
}

const App = ({
Expand All @@ -77,6 +73,9 @@ const App = ({
<Head>
<MetaTags path={router.asPath} />
</Head>
<GoogleTagManager
gtmId={String(process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_TRACKING_ID)}
/>
<CacheProvider value={emotionCache}>
<CssVarsProvider theme={cssVarsTheme}>
<CookieBannerContextProvider>
Expand Down

0 comments on commit 1e518a4

Please sign in to comment.