We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4542cb7 commit cbd7c57Copy full SHA for cbd7c57
2 files changed
src/analytics/google-analytics.js
src/layouts/Layout.astro
@@ -46,9 +46,18 @@ const isAbout = pageTitle === 'About';
46
}
47
</script>
48
<script
49
- is:inline
50
type='text/partytown'
51
- src='../analytics/google-analytics.js'></script>
+ async
+ src='https://www.googletagmanager.com/gtag/js?id=G-LF96D9G25P'></script>
52
+ <script type='text/partytown'>
53
+ window.dataLayer = window.dataLayer || [];
54
+ function gtag() {
55
+ dataLayer.push(arguments);
56
+ }
57
+ gtag('js', new Date());
58
+
59
+ gtag('config', 'G-LF96D9G25P');
60
+ </script>
61
</head>
62
<body class='flex min-h-screen flex-col pt-16 bg-white dark:bg-dark-bg'>
63
<Header pageTitle={pageTitle} />
0 commit comments