diff --git a/app/composables/useStatData.ts b/app/composables/useStatData.ts index 405e095..a2466b5 100644 --- a/app/composables/useStatData.ts +++ b/app/composables/useStatData.ts @@ -5,6 +5,16 @@ export function useStatData( // biome-ignore lint: can be any params: Record, ) { + watch( + () => Object.values(params).map((ref) => ref.value), + () => { + const unwrapped = Object.fromEntries( + Object.entries(params).map(([key, ref]) => [key, ref.value]), + ); + umTrackEvent("statsFilterChanged", unwrapped); + }, + ); + const url = computed(() => { if (isGlobalStats.value) { return "/api/stats/time/global";