Prompt-Engineering-Guide/ko-pages/_app.tsx
Sungjoo(Dennis) Hwang 435fd5bdf9
Create _app.tsx
2023-04-06 06:31:55 +09:00

24 lines
551 B
TypeScript

import type { AppProps } from 'next/app';
import Script from 'next/script';
import { Analytics } from '@vercel/analytics/react';
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-ST7R3WQ353"/>
<Script>{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-ST7R3WQ353');
`}
</Script>
<Component {...pageProps} />
<Analytics />
</>
);
}
export default MyApp;