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!

more generous timebucket limits

Blue Mouse4db3f9808de8
diff --git a/backend/apps/cloud/src/analytics/analytics.service.ts b/backend/apps/cloud/src/analytics/analytics.service.ts
index 5d491c144..2592fd715 100644
--- a/backend/apps/cloud/src/analytics/analytics.service.ts
+++ b/backend/apps/cloud/src/analytics/analytics.service.ts
@@ -142,7 +142,7 @@ const timeBucketToDays = [
lt: 28,
tb: [TimeBucketType.DAY, TimeBucketType.MONTH],
}, // 4 weeks
- { lt: 366, tb: [TimeBucketType.MONTH] }, // 12 months
+ { lt: 366, tb: [TimeBucketType.DAY, TimeBucketType.MONTH] }, // 12 months
{ lt: 732, tb: [TimeBucketType.MONTH] }, // 24 months
{ lt: 1464, tb: [TimeBucketType.MONTH, TimeBucketType.YEAR] }, // 48 months
{ lt: 99999, tb: [TimeBucketType.YEAR] },
diff --git a/backend/apps/community/src/analytics/analytics.service.ts b/backend/apps/community/src/analytics/analytics.service.ts
index e43c82560..80a145127 100644
--- a/backend/apps/community/src/analytics/analytics.service.ts
+++ b/backend/apps/community/src/analytics/analytics.service.ts
@@ -134,7 +134,7 @@ const timeBucketToDays = [
lt: 28,
tb: [TimeBucketType.DAY, TimeBucketType.MONTH],
}, // 4 weeks
- { lt: 366, tb: [TimeBucketType.MONTH] }, // 12 months
+ { lt: 366, tb: [TimeBucketType.DAY, TimeBucketType.MONTH] }, // 12 months
{ lt: 732, tb: [TimeBucketType.MONTH] }, // 24 months
{ lt: 1464, tb: [TimeBucketType.MONTH, TimeBucketType.YEAR] }, // 48 months
{ lt: 99999, tb: [TimeBucketType.YEAR] },
diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.ts
index adf4264a0..7ea5f1993 100644
--- a/web/app/lib/constants/index.ts
+++ b/web/app/lib/constants/index.ts
@@ -106,13 +106,13 @@ export const tbPeriodPairs = (
{
label: t('project.lastXMonths', { amount: 3 }),
period: '3M',
- tbs: ['month'],
+ tbs: ['day', 'month'],
countDays: 90,
},
{
label: t('project.lastXMonths', { amount: 12 }),
period: '12M',
- tbs: ['month'],
+ tbs: ['day', 'month'],
countDays: 365,
},
{
@@ -264,7 +264,7 @@ export const timeBucketToDays: {
{ lt: 1, tb: ['hour'] }, // 1 days
{ lt: 7, tb: ['hour', 'day'] }, // 7 days
{ lt: 28, tb: ['day'] }, // 4 weeks
- { lt: 366, tb: ['month'] }, // 12 months
+ { lt: 366, tb: ['day', 'month'] }, // 12 months
{ lt: 732, tb: ['month'] }, // 24 months
]