Fix UTM query, move filters to proper place

pull/1323/head
Chris Walsh 2022-07-21 16:56:57 -07:00
parent c3d6467b99
commit 7d1f8ea77b
No known key found for this signature in database
GPG Key ID: 28EE0CCA6032019E
1 changed files with 12 additions and 12 deletions

View File

@ -24,11 +24,11 @@ export function getPageviewParams(
from
pageview
${joinSession}
where
${table}.website_id=$2 and ${table}.created_at between $3 and $4
${pageviewQuery}
${joinSession && sessionQuery}
${eventQuery}
where
${table}.website_id=$2 and ${table}.created_at between $3 and $4
group by 1, 2
order by 2 desc
) q