From b6d7feccc1dd65ac5b6ca6a12f9f063711e8e6d6 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Sat, 12 Feb 2022 18:18:51 +0100 Subject: [PATCH] Fix google analytics loading --- pages/_app.tsx | 24 ------------------------ pages/_document.tsx | 41 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 25 deletions(-) diff --git a/pages/_app.tsx b/pages/_app.tsx index 2725229..c7e2542 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -15,8 +15,6 @@ import Footer from '../components/Footer'; import NProgress from 'nprogress'; import 'nprogress/nprogress.css'; -import { GOOGLE_ANALYTICS_KEY } from '../utils/gtag'; - NProgress.configure({ showSpinner: false }); const App = ({ Component, pageProps }: AppProps) => { @@ -38,28 +36,6 @@ const App = ({ Component, pageProps }: AppProps) => { return ( <> -