Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Removed subquery.

Mike Cao374ce6bdb3c8
diff --git a/queries/analytics/pageview/getPageviewStats.js b/queries/analytics/pageview/getPageviewStats.js
index c4b9ef23d..58bf0a4b0 100644
--- a/queries/analytics/pageview/getPageviewStats.js
+++ b/queries/analytics/pageview/getPageviewStats.js
@@ -19,11 +19,7 @@ export function getPageviewStats(
return rawQuery(
`
- select
- g.t as t,
- g.y as y
- from
- (select ${getDateQuery('pageview.created_at', unit, timezone)} t,
+ select ${getDateQuery('pageview.created_at', unit, timezone)} t,
count(${count}) y
from pageview
${joinSession}
@@ -31,8 +27,8 @@ export function getPageviewStats(
and pageview.created_at between $2 and $3
${pageviewQuery}
${sessionQuery}
- group by 1) g
- order by 1
+ group by 1
+ order by 1
`,
params,
);