From 39b5a51aa2752d5b6d1484d91b147c09436536f2 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sun, 30 Oct 2022 12:01:54 +0800 Subject: [PATCH] [portal][fix] fix GA loading for products --- .../src/components/global/GoogleAnalytics.tsx | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/apps/portal/src/components/global/GoogleAnalytics.tsx b/apps/portal/src/components/global/GoogleAnalytics.tsx index 984935a6..1d7d4f75 100644 --- a/apps/portal/src/components/global/GoogleAnalytics.tsx +++ b/apps/portal/src/components/global/GoogleAnalytics.tsx @@ -1,5 +1,5 @@ +import Head from 'next/head'; import { useRouter } from 'next/router'; -import Script from 'next/script'; import { createContext, useContext, useEffect } from 'react'; type Context = Readonly<{ @@ -78,25 +78,26 @@ export default function GoogleAnalytics({ children, measurementID }: Props) { return ( {children} - {/* Global Site Tag (gtag.js) - Google Analytics */} -