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
add event type to getWebsiteStats
Francis Cao2cd1f5541bfe
diff --git a/queries/analytics/stats/getWebsiteStats.ts b/queries/analytics/stats/getWebsiteStats.tsindex 73f2bdab1..8530b14ed 100644--- a/queries/analytics/stats/getWebsiteStats.ts+++ b/queries/analytics/stats/getWebsiteStats.ts@@ -41,7 +41,8 @@ async function relationalQuery(join websiteon website_event.website_id = website.website_id${joinSession}- where website.website_id = $1${toUuid()}+ where event_type = ${EVENT_TYPE.pageView}+ and website.website_id = $1${toUuid()}and website_event.created_at >= $2and website_event.created_at between $3 and $4${filterQuery}