Prompt-Engineering-Guide/pages/_app.tsx

23 lines
550 B
TypeScript
Raw Normal View History

2023-03-17 07:48:51 +00:00
import type { AppProps } from 'next/app';
2023-03-17 08:28:10 +00:00
import Script from 'next/script';
2023-03-17 07:48:51 +00:00
import { Analytics } from '@vercel/analytics/react';
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
2023-03-17 08:28:10 +00:00
<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>
2023-03-17 07:48:51 +00:00
<Component {...pageProps} />
<Analytics />
</>
);
}
export default MyApp;