Prompt-Engineering-Guide/pages/_app.tsx

24 lines
572 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';
2023-04-13 08:16:21 +00:00
import './style.css';
2023-03-17 07:48:51 +00:00
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;