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
commitdb4122f2547e13471f566524916001815dea43fe (patch)
treecbd1d589b791719558b8835b6a766165ab2b640b
parentd38fd7cdf7559c7aaba0c558594dfe4c1bc0dc12 (diff)
chore(umami): track like button event
Former-commit-id: 2247b7adccd6a4a98b936ac536b4de5776205dc1
-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");