summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-28 11:34:33 +0800
committerEltrac <hi@guhub.cn>2025-09-28 11:34:33 +0800
commitff7b3dccd5761aa0461163809305d12f5ab181e8 (patch)
treea5d8ce62f3e2d7afe51725518a806e356b250718 /layouts/_partials/scripts
parent42d15f0e5e8698494fbcd0b5bf08299680a27101 (diff)
remove: umami web analytics integration
Stopped tracking visitors because I realized that: 1. It's no necessary for personal blogs to analyze user behaviors, 2. Checking pageviews on a daily basis really messed up my mental health. Former-commit-id: 99deb4bd1c115b5b11f3632ca57ccc4d41fb3ee9
Diffstat (limited to 'layouts/_partials/scripts')
-rw-r--r--layouts/_partials/scripts/action-menu-js.html4
-rw-r--r--layouts/_partials/scripts/aplayer-js.html3
2 files changed, 0 insertions, 7 deletions
diff --git a/layouts/_partials/scripts/action-menu-js.html b/layouts/_partials/scripts/action-menu-js.html
index e91b71f4..df1c498c 100644
--- a/layouts/_partials/scripts/action-menu-js.html
+++ b/layouts/_partials/scripts/action-menu-js.html
@@ -128,10 +128,6 @@ function initializeLikes(pageId) {
window.sendLike = async function(pageId) {
if (localStorage.getItem("liked_" + pageId)) return;
- if (window.location.hostname !== 'localhost' && typeof umami !== 'undefined') {
- umami.track('👍 Hit Like Button');
- }
-
try {
const response = await fetch("https://like.guhub.cn/like/" + pageId, { method: "POST" });
const data = await response.json();
diff --git a/layouts/_partials/scripts/aplayer-js.html b/layouts/_partials/scripts/aplayer-js.html
index 4d51ab63..e777b0c9 100644
--- a/layouts/_partials/scripts/aplayer-js.html
+++ b/layouts/_partials/scripts/aplayer-js.html
@@ -34,9 +34,6 @@ document.addEventListener("DOMContentLoaded", function () {
}]
});
- ap.on('play', () => umami?.track?.('🎵 Play music with aPlayer'));
- ap.on('ended', () => umami?.track?.('🎵 Played entiresong with aPlayer'));
-
obs.unobserve(el);
});
}