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
update time blocks to hour instead of day
Francis Cao37f6102ce205
diff --git a/src/queries/analytics/getWebsiteStats.ts b/src/queries/analytics/getWebsiteStats.tsindex 4dbdb4626..51716b303 100644--- a/src/queries/analytics/getWebsiteStats.ts+++ b/src/queries/analytics/getWebsiteStats.ts@@ -31,7 +31,7 @@ async function relationalQuery(websiteId: string, filters: QueryFilters) {from (selectwebsite_event.session_id,- ${getDateQuery('website_event.created_at', 'day')},+ ${getDateQuery('website_event.created_at', 'hour')},count(*) as "c",min(website_event.created_at) as "min_time",max(website_event.created_at) as "max_time"@@ -70,7 +70,7 @@ async function clickhouseQuery(from (selectsession_id,- ${getDateQuery('created_at', 'day')} time_series,+ ${getDateQuery('created_at', 'hour')} time_series,count(*) c,min(created_at) min_time,max(created_at) max_time