diff options
| author | Fuwn <[email protected]> | 2026-05-29 23:05:37 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-29 23:05:37 +0000 |
| commit | be151fd6f7e7860cc60bee67bab815c155e86fcd (patch) | |
| tree | 47dcfe80450479efe722f4b59c58f934d07f3618 /src/lib/Announcement.svelte | |
| parent | feat(lists): animate list-title count with NumberTicker (diff) | |
| download | due.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/Announcement.svelte')
| -rw-r--r-- | src/lib/Announcement.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Announcement.svelte b/src/lib/Announcement.svelte index 8bbdfe67..4338f8ff 100644 --- a/src/lib/Announcement.svelte +++ b/src/lib/Announcement.svelte @@ -47,7 +47,9 @@ const maxWidth = (input: string, max = 100) => { <Spacer /> - <button onclick={dismiss} class="dismiss">{dismissButton || 'Dismiss'}</button> + <button onclick={dismiss} class="dismiss" data-umami-event="Dismiss Announcement" + >{dismissButton || 'Dismiss'}</button + > </Popup> {/if} |