We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 758cab2 commit c73f329Copy full SHA for c73f329
1 file changed
pages/_app.tsx
@@ -1,8 +1,28 @@
1
import type { AppProps } from 'next/app'
2
+import Script from 'next/script'
3
+
4
import 'antd/dist/antd.css'
5
6
function MyApp({ Component, pageProps }: AppProps) {
- return <Component {...pageProps} />
7
+ return (
8
+ <>
9
+ <Component {...pageProps} />
10
+ <Script
11
+ src="https://www.googletagmanager.com/gtag/js?id=G-6GC4XK3S9Z"
12
+ strategy="afterInteractive"
13
+ />
14
+ <Script id="google-analytics" strategy="afterInteractive">
15
+ {`
16
+ window.dataLayer = window.dataLayer || [];
17
+ function gtag(){window.dataLayer.push(arguments);}
18
+ gtag('js', new Date());
19
20
+ gtag('config', 'G-6GC4XK3S9Z');
21
+ `}
22
+ </Script>
23
+ </>
24
25
+ )
26
}
27
28
export default MyApp
0 commit comments