mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-25 17:51:11 +01:00
get distinct sessions for session metrics
This commit is contained in:
parent
592c3fa6e6
commit
e3142e93f0
@ -42,7 +42,7 @@ async function clickhouseQuery(websiteId, { startDate, endDate, field, filters =
|
|||||||
const { pageviewQuery, sessionQuery } = parseFilters(null, filters, params);
|
const { pageviewQuery, sessionQuery } = parseFilters(null, filters, params);
|
||||||
|
|
||||||
return rawQuery(
|
return rawQuery(
|
||||||
`select ${field} x, count(*) y
|
`select ${field} x, count(distinct session_id) y
|
||||||
from event as x
|
from event as x
|
||||||
where website_id = $1
|
where website_id = $1
|
||||||
and rev_id = $2
|
and rev_id = $2
|
||||||
|
Loading…
Reference in New Issue
Block a user