mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
Fix UTM query, move filters to proper place
This commit is contained in:
parent
c3d6467b99
commit
7d1f8ea77b
1 changed files with 12 additions and 12 deletions
|
|
@ -19,18 +19,18 @@ export function getPageviewParams(
|
||||||
|
|
||||||
return rawQuery(
|
return rawQuery(
|
||||||
`select * from (
|
`select * from (
|
||||||
select
|
select
|
||||||
url, split_part(split_part(url, concat($1, '='), 2), '&', 1) param
|
url, split_part(split_part(url, concat($1, '='), 2), '&', 1) param
|
||||||
from
|
from
|
||||||
pageview
|
pageview
|
||||||
${joinSession}
|
${joinSession}
|
||||||
${pageviewQuery}
|
where
|
||||||
${joinSession && sessionQuery}
|
${table}.website_id=$2 and ${table}.created_at between $3 and $4
|
||||||
${eventQuery}
|
${pageviewQuery}
|
||||||
where
|
${joinSession && sessionQuery}
|
||||||
${table}.website_id=$2 and ${table}.created_at between $3 and $4
|
${eventQuery}
|
||||||
group by 1, 2
|
group by 1, 2
|
||||||
order by 2 desc
|
order by 2 desc
|
||||||
) q
|
) q
|
||||||
where q.param <> ''`,
|
where q.param <> ''`,
|
||||||
params,
|
params,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue