From af04cd20d7353738eeedb5f3d977dbb68daf2b81 Mon Sep 17 00:00:00 2001 From: Rocktim Saikia Date: Thu, 26 Dec 2024 10:21:45 +0530 Subject: [PATCH] Add gtag --- client/pages/_app.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/pages/_app.tsx b/client/pages/_app.tsx index 96694e4..50a2938 100644 --- a/client/pages/_app.tsx +++ b/client/pages/_app.tsx @@ -1,4 +1,4 @@ -import { GoogleAnalytics } from "@next/third-parties/google"; +import { GoogleTagManager, GoogleAnalytics } from "@next/third-parties/google"; import { Theme } from "@radix-ui/themes"; import "@radix-ui/themes/styles.css"; import Router from "next/router"; @@ -33,7 +33,12 @@ export default function MyApp({ Component, pageProps }) { > - {isProduction && } + {isProduction && ( + <> + + + + )} ); }