Skip to content

Commit 746ba00

Browse files
committed
fix: google analytics
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 980be65 commit 746ba00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/GoogleAnalytics.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const GTAG_SRC = `https://www.googletagmanager.com/gtag/js?id=${GTAG_ID}`;
77

88
<!-- Google tag (gtag.js) -->
99
<script async src={GTAG_SRC}></script>
10-
<script>
10+
<script define:vars={{ GTAG_ID }}>
1111
window.dataLayer = window.dataLayer || [];
1212
function gtag() {
1313
// biome-ignore lint/complexity/noArguments: keep arguments object as per gtag.js spec

0 commit comments

Comments
 (0)