Skip to content

Commit 278de6e

Browse files
committed
fix: google analytics
Signed-off-by: Adam Setch <[email protected]>
1 parent c9d28c3 commit 278de6e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/components/GoogleAnalytics.astro

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
2-
import { siteMetadata } from "~/constants";
2+
33
---
44

55
<!-- Google tag (gtag.js) -->
6-
<script
7-
async
8-
src=`https://www.googletagmanager.com/gtag/js?id=${siteMetadata.google.analytics}`
6+
<script async src=`https://www.googletagmanager.com/gtag/js?id=G-736BKHY5WS`
97
></script>
108
<script>
119
window.dataLayer = window.dataLayer || [];
@@ -14,5 +12,5 @@ import { siteMetadata } from "~/constants";
1412
}
1513
gtag("js", new Date());
1614

17-
gtag("config", siteMetadata.google.analytics);
15+
gtag("config", "G-736BKHY5WS");
1816
</script>

src/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const siteMetadata = {
1313
site: 'https://setchy.io',
1414
},
1515
google: {
16-
analytics: 'G-736BKHY5WS',
1716
siteVerification: '',
1817
},
1918
menuLinks: [

0 commit comments

Comments
 (0)