Skip to content

Commit 9ec8a81

Browse files
Tech report: all categories origins (#51)
* all categories * consistent naming * fix
1 parent 959ad5e commit 9ec8a81

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

definitions/output/reports/cwv_tech_categories.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,22 @@ GROUP BY
7171
category,
7272
description,
7373
origins
74-
ORDER BY category ASC
74+
75+
UNION ALL
76+
77+
SELECT
78+
'ALL' AS category,
79+
NULL AS description,
80+
STRUCT(
81+
COALESCE(MAX(IF(client = 'desktop', origins, 0))) AS desktop,
82+
COALESCE(MAX(IF(client = 'mobile', origins, 0))) AS mobile
83+
) AS origins,
84+
NULL AS technologies
85+
FROM (
86+
SELECT
87+
client,
88+
COUNT(DISTINCT root_page) AS origins
89+
FROM pages
90+
GROUP BY client
91+
)
7592
`)

0 commit comments

Comments
 (0)