Fix UTM query, move filters to proper place
parent
c3d6467b99
commit
7d1f8ea77b
|
@ -24,11 +24,11 @@ export function getPageviewParams(
|
||||||
from
|
from
|
||||||
pageview
|
pageview
|
||||||
${joinSession}
|
${joinSession}
|
||||||
|
where
|
||||||
|
${table}.website_id=$2 and ${table}.created_at between $3 and $4
|
||||||
${pageviewQuery}
|
${pageviewQuery}
|
||||||
${joinSession && sessionQuery}
|
${joinSession && sessionQuery}
|
||||||
${eventQuery}
|
${eventQuery}
|
||||||
where
|
|
||||||
${table}.website_id=$2 and ${table}.created_at between $3 and $4
|
|
||||||
group by 1, 2
|
group by 1, 2
|
||||||
order by 2 desc
|
order by 2 desc
|
||||||
) q
|
) q
|
||||||
|
|
Loading…
Reference in New Issue