improve(dashboard): make pages page better (ux and features)

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-04-17 09:27:50 +02:00
parent 89ab8d08de
commit d0e90dfa79
5 changed files with 179 additions and 150 deletions

View File

@@ -389,6 +389,7 @@ export class OverviewService {
.select([
'origin',
'path',
`last_value(properties['__title']) as title`,
'uniq(session_id) as count',
'round(avg(duration)/1000, 2) as avg_duration',
])
@@ -427,12 +428,14 @@ export class OverviewService {
.with('page_stats', pageStatsQuery)
.with('bounce_stats', bounceStatsQuery)
.select<{
title: string;
origin: string;
path: string;
avg_duration: number;
bounce_rate: number;
sessions: number;
}>([
'p.title',
'p.origin',
'p.path',
'p.avg_duration',