~repos /website
git clone https://pyrossh.dev/repos/website.git
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
99ea8477
—
pyrossh 1 year ago
add GA
- src/app.html +8 -14
src/app.html
CHANGED
|
@@ -2,27 +2,21 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
|
|
4
4
|
<head>
|
|
5
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-L1TPX7RGP2"></script>
|
|
6
|
+
<script>
|
|
7
|
+
window.dataLayer = window.dataLayer || [];
|
|
8
|
+
function gtag() { dataLayer.push(arguments); }
|
|
9
|
+
gtag('js', new Date());
|
|
10
|
+
|
|
11
|
+
gtag('config', 'G-L1TPX7RGP2');
|
|
12
|
+
</script>
|
|
5
13
|
<meta charset="utf-8" />
|
|
6
14
|
<link rel="icon" type="image/png" href="%sveltekit.assets%/favicon.png" />
|
|
7
15
|
<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 -->
|
|
18
16
|
%unocss-svelte-scoped.global% %sveltekit.head%
|
|
19
17
|
</head>
|
|
20
18
|
|
|
21
19
|
<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) -->
|
|
26
20
|
<div style="display: contents">%sveltekit.body%</div>
|
|
27
21
|
</body>
|
|
28
22
|
|