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.
1 parent e7138c5 commit fddcf17Copy full SHA for fddcf17
src/components/GoogleAnalytics.astro
@@ -1,11 +1,11 @@
1
---
2
-const GA_ID = import.meta.env.PUBLIC_GA_ID ?? 'G-1X5E9W6VJ2';
+const GA_ID = 'G-1X5E9W6VJ2';
3
4
{GA_ID && (
5
- <>
+ <>
6
<!-- Google tag (gtag.js) -->
7
- <script async src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`}></script>
8
- <script>
+ <script is:inline async src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`}></script>
+ <script is:inline>
9
{`window.dataLayer = window.dataLayer || [];
10
function gtag(){dataLayer.push(arguments);}
11
gtag('js', new Date());
0 commit comments