diff --git a/analyticsApi/main.go b/analyticsApi/main.go index 67aa11f..fb01887 100644 --- a/analyticsApi/main.go +++ b/analyticsApi/main.go @@ -285,7 +285,7 @@ func initAggregateCount(app *pocketbase.PocketBase, e *core.ServeEvent) { IFNULL(` + field + `, 'N/A') as value, COUNT(id) AS count, SUM(CASE WHEN error IS NOT NULL THEN 1 ELSE 0 END) AS error_count - FROM analyticsSessions + FROM analyticsPageViewsWithSessionDetail WHERE created >= {:startDate} GROUP BY ` + field). Bind(dbx.Params{