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!

fix: Use proper table name for all period date diff calculation

Blue Mouse1967c7d75c8f
diff --git a/backend/apps/cloud/src/analytics/analytics.service.ts b/backend/apps/cloud/src/analytics/analytics.service.ts
index f3a443d20..f71c917d5 100644
--- a/backend/apps/cloud/src/analytics/analytics.service.ts
+++ b/backend/apps/cloud/src/analytics/analytics.service.ts
@@ -1947,7 +1947,7 @@ export class AnalyticsService {
const allTimeChartBucket = TimeBucketType.MONTH
const { diff: allDiff } = await this.calculateTimeBucketForAllTime(
pid,
- 'analytics',
+ customEVFilterApplied ? 'customEV' : 'analytics',
)
const { groupFrom: allFrom, groupTo: allTo } = this.getGroupFromTo(
undefined,
diff --git a/backend/apps/community/src/analytics/analytics.service.ts b/backend/apps/community/src/analytics/analytics.service.ts
index 8c10b44c5..7df80951c 100644
--- a/backend/apps/community/src/analytics/analytics.service.ts
+++ b/backend/apps/community/src/analytics/analytics.service.ts
@@ -1628,7 +1628,7 @@ export class AnalyticsService {
const allTimeChartBucket = TimeBucketType.MONTH
const { diff: allDiff } = await this.calculateTimeBucketForAllTime(
pid,
- 'analytics',
+ customEVFilterApplied ? 'customEV' : 'analytics',
)
const { groupFrom: allFrom, groupTo: allTo } = this.getGroupFromTo(
undefined,