diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-28 11:34:33 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-28 11:34:33 +0800 |
| commit | 99deb4bd1c115b5b11f3632ca57ccc4d41fb3ee9 (patch) | |
| tree | e2f80de07073e43f5a86da381fb1af2470455854 /layouts/_partials/scripts/action-menu-js.html | |
| parent | 13314f3fc50484c3c6c628627fe49053a8284599 (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.
Diffstat (limited to 'layouts/_partials/scripts/action-menu-js.html')
| -rw-r--r-- | layouts/_partials/scripts/action-menu-js.html | 4 |
1 files changed, 0 insertions, 4 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(); |
