Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fixed custom events filters for birdseye

Blue Mouse1231ec6f6102
diff --git a/app/pages/Project/View/components/MetricCards.tsx b/app/pages/Project/View/components/MetricCards.tsx
index 9087ed271..fd1ac9629 100644
--- a/app/pages/Project/View/components/MetricCards.tsx
+++ b/app/pages/Project/View/components/MetricCards.tsx
@@ -124,6 +124,22 @@ const MetricCards = ({ overall, overallCompare, activePeriodCompare }: IMetricCa
sdurChange = (overall.current?.sdur as number) - (overallCompare?.current?.sdur as number)
}
+ if (overall.customEVFilterApplied) {
+ return (
+ <div className='flex justify-center lg:justify-start gap-5 mb-5 flex-wrap'>
+ <MetricCard
+ label={t('project.events')}
+ value={overall.current?.all}
+ change={allChange}
+ type='percent'
+ goodChangeDirection='down'
+ valueMapper={(value, type) => `${type === 'badge' && value > 0 ? '+' : ''}${nFormatter(value, 1)}`}
+ />
+ </div>
+
+ )
+ }
+
return (
<div className='flex justify-center lg:justify-start gap-5 mb-5 flex-wrap'>
<MetricCard
diff --git a/app/redux/models/IProject.ts b/app/redux/models/IProject.ts
index 8b5d9e722..7ebae8b3f 100644
--- a/app/redux/models/IProject.ts
+++ b/app/redux/models/IProject.ts
@@ -12,6 +12,7 @@ export interface IOverallObject {
uniqueChange?: number
bounceRateChange?: number
sdurChange?: number
+ customEVFilterApplied?: boolean
}
export interface IOverall {