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.

add event type to getWebsiteStats

Francis Cao2cd1f5541bfe
diff --git a/queries/analytics/stats/getWebsiteStats.ts b/queries/analytics/stats/getWebsiteStats.ts
index 73f2bdab1..8530b14ed 100644
--- a/queries/analytics/stats/getWebsiteStats.ts
+++ b/queries/analytics/stats/getWebsiteStats.ts
@@ -41,7 +41,8 @@ async function relationalQuery(
join website
on 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 >= $2
and website_event.created_at between $3 and $4
${filterQuery}