File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // Google Analytics measurement ID - not required
2- NEXT_PUBLIC_GA_MEASUREMENT_ID = " G-XXXXXXXXXX"
3- // Google Adsense publisher ID - not required
4- NEXT_PUBLIC_ADSENSE_PUBLISHER_ID = " pub-XXXXXXXXXXXXXXXX"
1+ // Google Tag Manager ID - not required
2+ // Used for Google Analytics and Adsense
3+ NEXT_PUBLIC_GTM_ID = " GTM-XXXXXXXX"
54// GitHub OAuth
65GITHUB_ID = XXXXXXXXXXXXXXXXXXXX
76GITHUB_SECRET = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Original file line number Diff line number Diff line change 5050 "prepare" : " husky install"
5151 },
5252 "dependencies" : {
53+ "@codemirror/language" : " 6.0.0" ,
5354 "@growthbook/growthbook-react" : " ^1.1.0" ,
55+ "@magicul/next-google-tag-manager" : " ^2.0.0" ,
5456 "@popperjs/core" : " 2.11.8" ,
5557 "@tippyjs/react" : " ^4.2.6" ,
5658 "@types/bootstrap" : " ^5.2.10" ,
8789 "remark-parse" : " ^11.0.0" ,
8890 "remark-rehype" : " ^11.1.0" ,
8991 "sass" : " ^1.77.7" ,
92+ "scheduler" : " ^0.19.0" ,
9093 "tinacms" : " ^1.6.5" ,
9194 "tippy.js" : " ^6.3.7" ,
92- "unified" : " ^11.0.5" ,
93- "scheduler" : " ^0.19.0" ,
94- "@codemirror/language" : " 6.0.0"
95+ "unified" : " ^11.0.5"
9596 },
9697 "devDependencies" : {
9798 "@tinacms/cli" : " ^1.5.47" ,
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import "bootstrap/dist/css/bootstrap.css";
55import "bootstrap-icons/font/bootstrap-icons.css" ;
66import "katex/dist/katex.min.css" ;
77import "tippy.js/dist/tippy.css" ;
8- import Adsense from "../components/Adsense" ;
9- import Analytics from "../components/Analytics" ;
108import ErrorBoundary from "../components/ErrorBoundary" ;
119import { SessionProvider } from "next-auth/react" ;
1210import { useRouter } from "next/router" ;
@@ -15,6 +13,7 @@ import growthbook from "@/components/FeatureFlags";
1513import { AnimatePresence } from "framer-motion" ;
1614import { Theme } from "@/components/Navbar/ThemePicker/themePicker" ;
1715import { ACCENT_COLOR } from "@/themes/colors" ;
16+ import GoogleTagManager from "@magicul/next-google-tag-manager" ;
1817
1918export type BootstrapLibContextType = typeof import ( "bootstrap" ) | null ;
2019export const BootstrapLibContext =
@@ -113,8 +112,9 @@ export default function AwesomeArcadeExtensions({
113112 color = { ACCENT_COLOR [ nprogressTheme ] }
114113 options = { { showSpinner : false } }
115114 />
116- < Analytics />
117- < Adsense />
115+ < GoogleTagManager id = { process . env . NEXT_PUBLIC_GTM_ID ! } />
116+ { /*<Analytics />*/ }
117+ { /*<Adsense />*/ }
118118 < GrowthBookProvider growthbook = { growthbook } >
119119 < SessionProvider session = { session } >
120120 < AnimatePresence
Original file line number Diff line number Diff line change 11131113 dependencies :
11141114 " @lezer/common" " ^1.0.0"
11151115
1116+ " @magicul/next-google-tag-manager@^2.0.0 " :
1117+ version "2.0.0"
1118+ resolved "https://registry.yarnpkg.com/@magicul/next-google-tag-manager/-/next-google-tag-manager-2.0.0.tgz#04a77b506a4385f84cf637267984bd6f334f5ce0"
1119+ integrity sha512-NXp0iGxdcAZL9IkkWwh2GS3dE1qSn4hGxXADnvt1li4gAXyxJ9AEDTrgqMVXIDzkGTD7Q0n37BJoCZdmwIXE+g==
1120+
11161121" @monaco-editor/loader@^1.3.2 " :
11171122 version "1.4.0"
11181123 resolved "https://registry.yarnpkg.com/@monaco-editor/loader/-/loader-1.4.0.tgz#f08227057331ec890fa1e903912a5b711a2ad558"
You can’t perform that action at this time.
0 commit comments