Skip to content

Commit 7b8992e

Browse files
Remove Google Analytics specific code
1 parent 7841def commit 7b8992e

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

.env.sample

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
// Google Analytics measurement ID - not required
2-
NEXT_PUBLIC_GA_MEASUREMENT_ID = "G-XXXXXXXXXX"
31
// Google Tag Manager ID - not required
2+
// Used for Google Analytics and Adsense
43
NEXT_PUBLIC_GTM_ID = "GTM-XXXXXXXX"
5-
// Google Adsense publisher ID - not required
6-
NEXT_PUBLIC_ADSENSE_PUBLISHER_ID = "pub-XXXXXXXXXXXXXXXX"
74
// GitHub OAuth
85
GITHUB_ID = XXXXXXXXXXXXXXXXXXXX
96
GITHUB_SECRET = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

src/pages/_app.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import "bootstrap/dist/css/bootstrap.css";
55
import "bootstrap-icons/font/bootstrap-icons.css";
66
import "katex/dist/katex.min.css";
77
import "tippy.js/dist/tippy.css";
8-
import Adsense from "../components/Adsense";
9-
import Analytics from "../components/Analytics";
108
import ErrorBoundary from "../components/ErrorBoundary";
119
import { SessionProvider } from "next-auth/react";
1210
import { useRouter } from "next/router";
@@ -115,8 +113,8 @@ export default function AwesomeArcadeExtensions({
115113
options={{ showSpinner: false }}
116114
/>
117115
<GoogleTagManager id={process.env.NEXT_PUBLIC_GTM_ID!} />
118-
<Analytics />
119-
<Adsense />
116+
{/*<Analytics />*/}
117+
{/*<Adsense />*/}
120118
<GrowthBookProvider growthbook={growthbook}>
121119
<SessionProvider session={session}>
122120
<AnimatePresence

0 commit comments

Comments
 (0)