feat: google analytics

This commit is contained in:
TrèsAbhi committed 2024-03-18 10:02:09 -05:00
1 parent 191d6133b2
commit 3ca2dece3e
4 files changed
+24 -16

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
export function Analytics() {
return (
<>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-98NTMRHRP9"
/>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-98NTMRHRP9');
`,
}}
/>
</>
);
}