From be151fd6f7e7860cc60bee67bab815c155e86fcd Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Fri, 29 May 2026 23:05:37 +0000
Subject: 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.
---
 src/lib/Notification/Notification.svelte | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/lib/Notification/Notification.svelte')

diff --git a/src/lib/Notification/Notification.svelte b/src/lib/Notification/Notification.svelte
index 1543f3b9..3c466b90 100644
--- a/src/lib/Notification/Notification.svelte
+++ b/src/lib/Notification/Notification.svelte
@@ -27,6 +27,7 @@ const remove = () => {
     id="notification-container"
     class={removed ? 'fade-out' : 'fade-in'}
     onclick={remove}
+    data-umami-event="Dismiss Notification"
     onkeydown={() => {
       return;
     }}
-- 
cgit v1.2.3

