mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +01:00
align CH / postgres funnel queries
This commit is contained in:
parent
711ad2bbcf
commit
5a0908964c
3 changed files with 54 additions and 37 deletions
|
|
@ -153,7 +153,7 @@ function getFunnelQuery(
|
|||
if (levelNumber >= 2) {
|
||||
pv.levelQuery += `\n
|
||||
, level${levelNumber} AS (
|
||||
select distinct l.session_id, we.created_at
|
||||
select distinct we.session_id, we.created_at
|
||||
from level${i} l
|
||||
join website_event we
|
||||
on l.session_id = we.session_id
|
||||
|
|
@ -161,7 +161,7 @@ function getFunnelQuery(
|
|||
and ${getAddMinutesQuery(`l.created_at `, windowMinutes)}
|
||||
and we.referrer_path = $${i + initParamLength}
|
||||
and we.url_path = $${levelNumber + initParamLength}
|
||||
and we.created_at between $2 and $3
|
||||
and we.created_at <= $3
|
||||
and we.website_id = $1${toUuid()}
|
||||
)`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue