Skip to content

Commit de6aad8

Browse files
committed
Add Google Analytics
1 parent 46a2050 commit de6aad8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pages/_app.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ function WebPerfSnippets({ Component, pageProps }) {
88
src="https://cdn.debugbear.com/BK73p0yToVVP.js"
99
strategy="afterInteractive"
1010
/>
11+
<Script src="https://www.googletagmanager.com/gtag/js?id=G-NNX9SYKEV2"></Script>
12+
<Script id="google-analytics">
13+
{`
14+
window.dataLayer = window.dataLayer || [];
15+
function gtag(){dataLayer.push(arguments)}
16+
gtag('js', new Date());
17+
18+
gtag('config', 'G-NNX9SYKEV2');
19+
`}
20+
</Script>
1121
</>
1222
);
1323
}

0 commit comments

Comments
 (0)