Add distinct ID to filters/expanded metrics. Closes #3861

This commit is contained in:
Francis Cao 2026-01-26 11:05:20 -08:00
parent 7f43a0d41a
commit 7bb30443a8
9 changed files with 24 additions and 1 deletions

View file

@ -72,6 +72,7 @@ async function relationalQuery(
${filterQuery}
group by name, website_event.session_id, website_event.visit_id
) as t
where name != ''
group by name
order by visitors desc, visits desc
limit ${limit}

View file

@ -82,6 +82,7 @@ async function relationalQuery(
group by name, website_event.session_id, website_event.visit_id
${includeCountry ? ', country' : ''}
) as t
where name != ''
group by name
${includeCountry ? ', country' : ''}
order by visitors desc, visits desc