~repos /website
git clone https://pyrossh.dev/repos/website.git
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
3ec34e60
—
pyrossh 1 year ago
add gtag
- src/app.html +14 -0
src/app.html
CHANGED
|
@@ -5,10 +5,24 @@
|
|
|
5
5
|
<meta charset="utf-8" />
|
|
6
6
|
<link rel="icon" type="image/png" href="%sveltekit.assets%/favicon.png" />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<!-- Google Tag Manager -->
|
|
9
|
+
<script>(function (w, d, s, l, i) {
|
|
10
|
+
w[l] = w[l] || []; w[l].push({
|
|
11
|
+
'gtm.start':
|
|
12
|
+
new Date().getTime(), event: 'gtm.js'
|
|
13
|
+
}); var f = d.getElementsByTagName(s)[0],
|
|
14
|
+
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
|
|
15
|
+
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
|
|
16
|
+
})(window, document, 'script', 'dataLayer', 'GTM-MBM5S6QT');</script>
|
|
17
|
+
<!-- End Google Tag Manager -->
|
|
8
18
|
%unocss-svelte-scoped.global% %sveltekit.head%
|
|
9
19
|
</head>
|
|
10
20
|
|
|
11
21
|
<body data-sveltekit-preload-data="hover">
|
|
22
|
+
<!-- Google Tag Manager (noscript) -->
|
|
23
|
+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MBM5S6QT" height="0" width="0"
|
|
24
|
+
style="display:none;visibility:hidden"></iframe></noscript>
|
|
25
|
+
<!-- End Google Tag Manager (noscript) -->
|
|
12
26
|
<div style="display: contents">%sveltekit.body%</div>
|
|
13
27
|
</body>
|
|
14
28
|
|