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
bugfix: events count amend
libin659cfb41eca5
diff --git a/src/queries/analytics/sessions/getWebsiteSession.ts b/src/queries/analytics/sessions/getWebsiteSession.tsindex f9b9f39a0..2c16741ee 100644--- a/src/queries/analytics/sessions/getWebsiteSession.ts+++ b/src/queries/analytics/sessions/getWebsiteSession.ts@@ -47,7 +47,7 @@ async function relationalQuery(websiteId: string, sessionId: string) {min(website_event.created_at) as min_time,max(website_event.created_at) as max_time,sum(case when website_event.event_type = 1 then 1 else 0 end) as views,- sum(case when website_event.event_type = 1 then 1 else 0 end) as events+ sum(case when website_event.event_type = 2 then 1 else 0 end) as eventsfrom sessionjoin website_event on website_event.session_id = session.session_idwhere session.website_id = {{websiteId::uuid}}