mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
use website_event_stats_hourly view for excludeBounceQuery
This commit is contained in:
parent
5267222a67
commit
cbf47d58dc
1 changed files with 2 additions and 2 deletions
|
|
@ -138,12 +138,12 @@ function getExcludeBounceQuery(filters: Record<string, any>) {
|
||||||
|
|
||||||
return `join
|
return `join
|
||||||
(select distinct session_id, visit_id
|
(select distinct session_id, visit_id
|
||||||
from website_event
|
from website_event_stats_hourly
|
||||||
where website_id = {websiteId:UUID}
|
where website_id = {websiteId:UUID}
|
||||||
and created_at between {startDate:DateTime64} and {endDate:DateTime64}
|
and created_at between {startDate:DateTime64} and {endDate:DateTime64}
|
||||||
and event_type = 1
|
and event_type = 1
|
||||||
group by session_id, visit_id
|
group by session_id, visit_id
|
||||||
having count(*) > 1
|
having sum(views) > 1
|
||||||
) excludeBounce
|
) excludeBounce
|
||||||
on excludeBounce.session_id = website_event.session_id
|
on excludeBounce.session_id = website_event.session_id
|
||||||
and excludeBounce.visit_id = website_event.visit_id
|
and excludeBounce.visit_id = website_event.visit_id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue