remove event from website stats. doesnt work with view

This commit is contained in:
Francis Cao 2024-08-09 18:20:26 -07:00
parent 136dd6794e
commit 22333a1e9a
3 changed files with 7 additions and 19 deletions

View file

@ -44,11 +44,11 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
country,
subdivision1,
city,
min(created_at) as firstAt,
max(created_at) as lastAt,
min(min_time) as firstAt,
max(max_time) as lastAt,
uniq(visit_id) as visits,
sumIf(1, event_type = 1) as views
from website_event
sumIf(views, event_type = 1) as views
from website_event_stats_hourly
where website_id = {websiteId:UUID}
${dateQuery}
${filterQuery}