Skip to content

Commit a862fa6

Browse files
fixed bug
1 parent aedd77f commit a862fa6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/layouts/Layout.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,13 @@ const structuredData = {
5858
>
5959
<head>
6060
<!-- Google tag (gtag.js) -->
61-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZXC7NG6S55"></script>
62-
<script>
61+
<script is:inline src="https://www.googletagmanager.com/gtag/js?id=G-ZXC7NG6S55"></script>
62+
<script is:inline>
6363
window.dataLayer = window.dataLayer || [];
6464
function gtag() {
65-
dataLayer.push(arguments);
65+
window.dataLayer.push(arguments);
6666
}
6767
gtag("js", new Date());
68-
6968
gtag("config", "G-ZXC7NG6S55");
7069
</script>
7170
<meta charset="UTF-8" />

0 commit comments

Comments
 (0)