Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
remove event filter for non-event pages
Francis Cao57eef5866b80
diff --git a/src/components/input/FilterEditForm.tsx b/src/components/input/FilterEditForm.tsxindex 9221e3a2a..87acc515f 100644--- a/src/components/input/FilterEditForm.tsx+++ b/src/components/input/FilterEditForm.tsx@@ -22,6 +22,7 @@ export function FilterEditForm({ websiteId, onChange, onClose }: FilterEditFormPconst [currentCohort, setCurrentCohort] = useState(cohort);const { isMobile } = useMobile();const excludeFilters = pathname.includes('/pixels') || pathname.includes('/links');+ const excludeEvent = !pathname.endsWith('/events');const handleReset = () => {setCurrentFilters([]);@@ -62,7 +63,11 @@ export function FilterEditForm({ websiteId, onChange, onClose }: FilterEditFormPvalue={currentFilters}onChange={setCurrentFilters}exclude={- excludeFilters ? ['path', 'title', 'hostname', 'distinctId', 'tag', 'event'] : []+ excludeFilters+ ? ['path', 'title', 'hostname', 'distinctId', 'tag', 'event']+ : excludeEvent+ ? ['event']+ : []}/></TabPanel>