implement filtering and cohorts to all relevant queries
This commit is contained in:
1 parent
789b8b36d8
commit
2f1f704728
34 files changed
+311
-167
No files matched your search
@@ -26,11 +26,10 @@ async function relationalQuery(websiteId: string, filters: QueryFilters) {
|
||||
${getDateSQL('website_event.created_at', unit, timezone)} x,
|
||||
count(distinct website_event.session_id) y
|
||||
from website_event
|
||||
${joinSessionQuery}
|
||||
${cohortQuery}
|
||||
${cohortQuery}
|
||||
${joinSessionQuery}
|
||||
where website_event.website_id = {{websiteId::uuid}}
|
||||
and website_event.created_at between {{startDate}} and {{endDate}}
|
||||
and event_type = {{eventType}}
|
||||
${filterQuery}
|
||||
group by 1
|
||||
order by 1
|
||||
|
||||
Reference in new issue
Block a user