Skip to content

Commit

Permalink
Tech report: all categories origins (#51)
Browse files Browse the repository at this point in the history
* all categories

* consistent naming

* fix
  • Loading branch information
max-ostapenko authored Jan 22, 2025
1 parent 959ad5e commit 9ec8a81
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion definitions/output/reports/cwv_tech_categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,22 @@ GROUP BY
category,
description,
origins
ORDER BY category ASC
UNION ALL
SELECT
'ALL' AS category,
NULL AS description,
STRUCT(
COALESCE(MAX(IF(client = 'desktop', origins, 0))) AS desktop,
COALESCE(MAX(IF(client = 'mobile', origins, 0))) AS mobile
) AS origins,
NULL AS technologies
FROM (
SELECT
client,
COUNT(DISTINCT root_page) AS origins
FROM pages
GROUP BY client
)
`)

0 comments on commit 9ec8a81

Please sign in to comment.