summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2024-12-12 13:21:45 +0800
committerEltrac <hi@guhub.cn>2024-12-12 13:21:45 +0800
commitd25fabaae23db521a4c0478d89d112614ab29ce8 (patch)
tree1871617aaf6f713c8aeef290c3d0bb8260c55d91
parent7fad06e3f7d79035391e2858db5e75c73af1ea95 (diff)
chore(web): switch to umami analytics
-rw-r--r--themes/yinyang/layouts/partials/scripts.html11
1 files changed, 4 insertions, 7 deletions
diff --git a/themes/yinyang/layouts/partials/scripts.html b/themes/yinyang/layouts/partials/scripts.html
index 1e6768bb..0624d766 100644
--- a/themes/yinyang/layouts/partials/scripts.html
+++ b/themes/yinyang/layouts/partials/scripts.html
@@ -1,8 +1,5 @@
-<!-- Vercel Analytics -->
-<script>
- window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
-</script>
-<script defer src="/_vercel/insights/script.js"></script>
+<!-- Umami -->
+<script defer src="https://cloud.umami.is/script.js" data-website-id="ae8c2619-56eb-4577-ac31-9dc6ea44bda7"></script>
<!-- Swup -->
<script src="https://unpkg.com/swup@4"></script>
@@ -11,6 +8,6 @@
const swup = new Swup();
swup.hooks.on('page:view', (visit) => {
- {{ partial "snippets/waline-init.html" . | safeJS }}
+ {{ partial "snippets/waline-init.html" . | safeJS }}
});
-</script> \ No newline at end of file
+</script>