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
remove unneccessary website join
Francis Cao7e00be166243
diff --git a/src/queries/analytics/getWebsiteStats.ts b/src/queries/analytics/getWebsiteStats.tsindex c5d010dba..bc006a2eb 100644--- a/src/queries/analytics/getWebsiteStats.ts+++ b/src/queries/analytics/getWebsiteStats.ts@@ -43,10 +43,8 @@ async function relationalQuery(min(website_event.created_at) as "min_time",max(website_event.created_at) as "max_time"from website_event- join website- on website_event.website_id = website.website_id${joinSession}- where website.website_id = {{websiteId::uuid}}+ where website_event.website_id = {{websiteId::uuid}}and website_event.created_at between {{startDate}} and {{endDate}}and event_type = {{eventType}}${filterQuery}