Skip to content

Commit e1c8d10

Browse files
committed
2024.10.30: Re-enable google analytics. Astro-paper v4.7 updated.
1 parent 701d0dc commit e1c8d10

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/layouts/Layout.astro

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ const structuredData = {
136136

137137
<script is:inline src="/toggle-theme.js" async></script>
138138
</head>
139+
<!-- Google tag (gtag.js) -->
140+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-V66JPM85FQ"></script>
141+
<script>
142+
window.dataLayer = window.dataLayer || [];
143+
function gtag(){dataLayer.push(arguments);}
144+
gtag('js', new Date());
145+
146+
gtag('config', 'G-V66JPM85FQ');
147+
</script>
139148
<body>
140149
<slot />
141150
</body>

0 commit comments

Comments
 (0)