feat: add more plausible events

This commit is contained in:
Jacky Zhao
2023-02-05 11:34:39 -08:00
parent a73aca8ed9
commit 11959de11c
5 changed files with 63 additions and 22 deletions

View File

@ -64,6 +64,11 @@ function initPopover(baseURL, useContextualBacklinks) {
})
el.classList.add("visible")
plausible("Popover Hover", {
props: {
href: li.dataset.src
}
})
})
li.addEventListener("mouseout", () => {
el.classList.remove("visible")