We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b69bf41 + 5f92d89 commit c2c73b5Copy full SHA for c2c73b5
pages/_document.js
@@ -11,23 +11,6 @@ class MyDocument extends Document {
11
rel="stylesheet"
12
href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css"
13
/>
14
- {/* Global Site Tag (gtag.js) - Google Analytics */}
15
- <script
16
- async
17
- src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}`}
18
- />
19
20
- dangerouslySetInnerHTML={{
21
- __html: `
22
- window.dataLayer = window.dataLayer || [];
23
- function gtag(){dataLayer.push(arguments);}
24
- gtag('js', new Date());
25
- gtag('config', '${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}', {
26
- page_path: window.location.pathname,
27
- });
28
- `,
29
- }}
30
31
</Head>
32
<body>
33
<SkipNavLink />
0 commit comments