added identifying with umami anonymous ID

This commit is contained in:
George Powell
2026-02-03 23:43:03 -05:00
parent 2058149207
commit 4c82aa078b

View File

@@ -168,6 +168,9 @@
$effect(() => {
if (!browser) return;
anonymousId = getOrCreateAnonymousId();
if ((window as any).umami) {
(window as any).umami.identify(anonymousId);
}
const statsKey = `bibdle-stats-submitted-${dailyVerse.date}`;
statsSubmitted = localStorage.getItem(statsKey) === "true";
const chapterGuessKey = `bibdle-chapter-guess-${dailyVerse.reference}`;