mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +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);
|
||||
|
||||
return rawQuery(
|
||||
`select ${field} x, count(*) y
|
||||
`select ${field} x, count(distinct session_id) y
|
||||
from event as x
|
||||
where website_id = $1
|
||||
and rev_id = $2
|
||||
|
Loading…
Reference in New Issue
Block a user