Skip to content

armgit / umami

Public Imported from GitHub
0

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.

Change day range for retention.

Mike Cao3601cb63a550
diff --git a/queries/analytics/reports/getRetention.ts b/queries/analytics/reports/getRetention.ts
index 6ab49470e..3c384b6e5 100644
--- a/queries/analytics/reports/getRetention.ts
+++ b/queries/analytics/reports/getRetention.ts
@@ -86,7 +86,7 @@ async function relationalQuery(
from cohort_date c
join cohort_size s
on c.cohort_date = s.cohort_date
- where c.day_number IN (0,1,2,3,4,5,6,7,14,21,30)
+ where c.day_number <= 31
order by 1, 2`,
{
websiteId,
@@ -165,7 +165,7 @@ async function clickhouseQuery(
from cohort_date c
join cohort_size s
on c.cohort_date = s.cohort_date
- where c.day_number IN (0,1,2,3,4,5,6,7,14,21,30)
+ where c.day_number <= 31
order by 1, 2`,
{
websiteId,