this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

GA

alice bcb419a3 ed2d7767

+33 -4
+8 -1
src/app/alice/page.tsx
··· 1 + import GA from '@/utils/ga'; 2 + 1 3 export default function Home() { 2 - return <div>hi i&apos;m alice</div>; 4 + return ( 5 + <> 6 + <div>hi i&apos;m alice</div> 7 + <GA /> 8 + </> 9 + ); 3 10 }
+7 -3
src/app/page.tsx
··· 1 + import GA from '@/utils/ga'; 1 2 import Image from 'next/image'; 2 3 3 4 export default function Home() { 4 5 return ( 5 - <div className="main"> 6 - <Image src="/underconstruction.gif" width={459} height={51} alt="under construction" /> 7 - </div> 6 + <> 7 + <div className="main"> 8 + <Image src="/underconstruction.gif" width={459} height={51} alt="under construction" /> 9 + </div> 10 + <GA /> 11 + </> 8 12 ); 9 13 }
+18
src/utils/ga.tsx
··· 1 + import Script from 'next/script'; 2 + 3 + export default function GA() { 4 + return ( 5 + <> 6 + <Script src="https://www.googletagmanager.com/gtag/js?id=G-4J8EMRDXRH" strategy="afterInteractive" /> 7 + <Script id="google-analytics" strategy="afterInteractive"> 8 + {` 9 + window.dataLayer = window.dataLayer || []; 10 + function gtag(){window.dataLayer.push(arguments);} 11 + gtag('js', new Date()); 12 + 13 + gtag('config', 'G-4J8EMRDXRH'); 14 + `} 15 + </Script> 16 + </> 17 + ); 18 + }