From 7b8992ee3d9a2ab54e44cd2871df62b1f1cb0c9e Mon Sep 17 00:00:00 2001 From: Cyrus Yiu Date: Fri, 12 Jul 2024 22:10:10 -0400 Subject: [PATCH] Remove Google Analytics specific code --- .env.sample | 5 +---- src/pages/_app.tsx | 6 ++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.env.sample b/.env.sample index c54d22b..ab39ce9 100644 --- a/.env.sample +++ b/.env.sample @@ -1,9 +1,6 @@ -// Google Analytics measurement ID - not required -NEXT_PUBLIC_GA_MEASUREMENT_ID = "G-XXXXXXXXXX" // Google Tag Manager ID - not required +// Used for Google Analytics and Adsense NEXT_PUBLIC_GTM_ID = "GTM-XXXXXXXX" -// Google Adsense publisher ID - not required -NEXT_PUBLIC_ADSENSE_PUBLISHER_ID = "pub-XXXXXXXXXXXXXXXX" // GitHub OAuth GITHUB_ID = XXXXXXXXXXXXXXXXXXXX GITHUB_SECRET = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 239cf0a..4a4f656 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -5,8 +5,6 @@ import "bootstrap/dist/css/bootstrap.css"; import "bootstrap-icons/font/bootstrap-icons.css"; import "katex/dist/katex.min.css"; import "tippy.js/dist/tippy.css"; -import Adsense from "../components/Adsense"; -import Analytics from "../components/Analytics"; import ErrorBoundary from "../components/ErrorBoundary"; import { SessionProvider } from "next-auth/react"; import { useRouter } from "next/router"; @@ -115,8 +113,8 @@ export default function AwesomeArcadeExtensions({ options={{ showSpinner: false }} /> - - + {/**/} + {/**/}