summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-06-19 13:52:22 +0800
committerEltrac <hi@guhub.cn>2025-06-19 13:52:22 +0800
commit2247b7adccd6a4a98b936ac536b4de5776205dc1 (patch)
treecbd1d589b791719558b8835b6a766165ab2b640b
parent5f3c233b8da6f3ddbf67d4fc1d9315d66ce62b1e (diff)
chore(umami): track like button event
-rw-r--r--layouts/partials/components/like-button.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/components/like-button.html b/layouts/partials/components/like-button.html
index 6a27e5b4..02c084b8 100644
--- a/layouts/partials/components/like-button.html
+++ b/layouts/partials/components/like-button.html
@@ -64,6 +64,8 @@
window.sendLike = function(pageId) {
if (localStorage.getItem("liked_" + pageId)) return;
+
+ umami.track('👍 Hit Like Button');
// 添加点击效果
btnEl.classList.add("clicked");