aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Tools/ActivityHistory
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-29 23:05:37 +0000
committerFuwn <[email protected]>2026-05-29 23:05:37 +0000
commitbe151fd6f7e7860cc60bee67bab815c155e86fcd (patch)
tree47dcfe80450479efe722f4b59c58f934d07f3618 /src/lib/Tools/ActivityHistory
parentfeat(lists): animate list-title count with NumberTicker (diff)
downloaddue.moe-be151fd6f7e7860cc60bee67bab815c155e86fcd.tar.xz
due.moe-be151fd6f7e7860cc60bee67bab815c155e86fcd.zip
feat(analytics): track umami events across core actions
Add a guarded track() wrapper (src/lib/analytics.ts) so programmatic events no-op instead of throwing when umami is absent (localhost), lazily loaded, or ad-blocked. Instrument the core loop (progress increment, roulette, list filter, force refresh), the auth funnel (log in/out, command palette), settings toggles/selects at the wrapper level, sync/debug/feed actions, and tool/sharing actions.
Diffstat (limited to 'src/lib/Tools/ActivityHistory')
-rw-r--r--src/lib/Tools/ActivityHistory/Tool.svelte4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Tools/ActivityHistory/Tool.svelte b/src/lib/Tools/ActivityHistory/Tool.svelte
index 5e84db9e..df1613b9 100644
--- a/src/lib/Tools/ActivityHistory/Tool.svelte
+++ b/src/lib/Tools/ActivityHistory/Tool.svelte
@@ -94,7 +94,9 @@ const screenshot = async () => {
<Spacer />
{/if}
- <button onclick={screenshot}>Generate grid image</button>
+ <button onclick={screenshot} data-umami-event="Generate Activity History Image"
+ >Generate grid image</button
+ >
</div>
<Spacer />