Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS 2024 queries #3731

Open
wants to merge 77 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 71 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
09c9330
Queries of CMS 2024 (replicated from 2022's version)
nrllh Aug 14, 2024
8fea7b1
Update cms_adoption_by_geo.sql
nrllh Aug 24, 2024
5a47ac2
Update cms_adoption_by_rank.sql
nrllh Aug 24, 2024
4621030
Update cms_adoption_by_region.sql
nrllh Aug 24, 2024
dd03b17
Update cms_adoption_by_subregion.sql
nrllh Aug 24, 2024
ecce24c
Update cms_adoption.sql
nrllh Aug 24, 2024
0e763c3
Update core_web_vitals_by_geo.sql
nrllh Aug 24, 2024
e75f475
Update core_web_vitals_by_geo.sql
nrllh Aug 24, 2024
264e0c4
Update core_web_vitals_yoy.sql
nrllh Aug 24, 2024
db7ef12
Update core_web_vitals_yoy.sql
nrllh Aug 24, 2024
3dab3d8
Update core_web_vitals_yoy.sql
nrllh Aug 24, 2024
b227385
Update image_format_popularity.sql
nrllh Aug 24, 2024
62ac99a
Update image_format_popularity.sql
nrllh Aug 24, 2024
712a594
Update lighthouse_category_scores_per_cms.sql
nrllh Aug 24, 2024
4c096b5
Update page_weight_distribution.sql
nrllh Aug 24, 2024
9e73147
Update page_weight_distribution.sql
mgifford Aug 26, 2024
abd613c
Update page_weight_distribution.sql
mgifford Aug 26, 2024
eded9a6
Update cms_adoption_by_geo.sql
mgifford Aug 26, 2024
daaef30
Update cms_adoption_by_subregion.sql
mgifford Aug 26, 2024
30d58fc
Update core_web_vitals_yoy.sql
mgifford Aug 26, 2024
71d9f33
Update lighthouse_category_scores_per_cms.sql
mgifford Aug 26, 2024
a689f97
Update page_weight_distribution.sql
mgifford Aug 26, 2024
ac5a7a0
Update cms_adoption.sql
mgifford Aug 26, 2024
e8f57c1
Update cms_adoption_by_geo.sql
mgifford Aug 26, 2024
762dbcb
Update cms_adoption_by_rank.sql
mgifford Aug 26, 2024
f2e1a38
Update cms_adoption_by_region.sql
mgifford Aug 26, 2024
5c281ef
Update cms_adoption_by_subregion.sql
mgifford Aug 26, 2024
2018a31
Update core_web_vitals_by_geo.sql
mgifford Aug 26, 2024
54ab614
Update core_web_vitals_yoy.sql
mgifford Aug 26, 2024
ba856fb
Update image_format_popularity.sql
mgifford Aug 26, 2024
c0e7e25
Update lighthouse_category_scores_per_cms.sql
mgifford Aug 26, 2024
bd734bd
Update lighthouse_category_scores_per_cms.sql
mgifford Aug 26, 2024
a6dd16c
Update image_format_popularity.sql
mgifford Aug 26, 2024
f5123a5
Update core_web_vitals_yoy.sql
mgifford Aug 26, 2024
7a38765
Update cms_adoption_by_subregion.sql
mgifford Aug 26, 2024
bdb9870
Update cms_adoption_by_region.sql
mgifford Aug 26, 2024
850a6bf
Update cms_adoption_by_geo.sql
mgifford Aug 26, 2024
6da6fe8
Update cms_adoption_by_subregion.sql
mgifford Aug 26, 2024
eae26b6
Update cms_adoption_by_rank.sql
mgifford Aug 26, 2024
7c3711f
Update cms_adoption_by_geo.sql
mgifford Aug 26, 2024
a269f8f
Update lighthouse_category_scores_per_cms.sql
mgifford Aug 26, 2024
e7b5117
Update image_format_popularity.sql
mgifford Aug 26, 2024
fc5c01e
Update cms_adoption_by_subregion.sql
mgifford Aug 26, 2024
bb7b07a
Update cms_adoption_by_region.sql
mgifford Aug 26, 2024
3af474c
Update cms_adoption_by_rank.sql
mgifford Aug 26, 2024
eb33b21
Update cms_adoption_by_geo.sql
mgifford Aug 26, 2024
61c15fa
Update cms_adoption_by_region.sql
mgifford Aug 26, 2024
52d9315
Update core_web_vitals_yoy.sql
mgifford Aug 26, 2024
6d2a461
Update resource_weights.sql
nrllh Aug 27, 2024
66d5815
Update top_cms.sql
nrllh Aug 27, 2024
cb1ad49
Update top_cms_by_geo.sql
nrllh Aug 27, 2024
9de9b22
Update top_cms_by_geo.sql
nrllh Aug 27, 2024
6583820
Update resource_weights.sql
nrllh Aug 27, 2024
25a3cd1
Update top_cms_by_rank.sql
nrllh Aug 27, 2024
35e71ff
Update wordpress_page_builders.sql
nrllh Aug 27, 2024
18be4dd
Update wordpress_resources.sql
nrllh Aug 27, 2024
edd8c0b
Update cms_adoption.sql
nrllh Aug 28, 2024
4af9d7f
Update cms_adoption_by_geo.sql
nrllh Aug 28, 2024
6deec3e
Update cms_adoption_by_rank.sql
nrllh Aug 28, 2024
cb4773e
Update cms_adoption_by_region.sql
nrllh Aug 28, 2024
2b26542
Update cms_adoption_by_subregion.sql
nrllh Aug 28, 2024
0f5ccbc
Update core_web_vitals_by_geo.sql
nrllh Aug 28, 2024
2df989e
Update core_web_vitals_yoy.sql
nrllh Aug 28, 2024
cdc06a2
Update core_web_vitals.sql
nrllh Aug 28, 2024
455f33a
Update image_format_popularity.sql
nrllh Aug 28, 2024
20b8909
Update lighthouse_category_scores_per_cms.sql
nrllh Aug 28, 2024
a8c9b0f
Update top_cms.sql
nrllh Aug 28, 2024
ba7de65
Update top_cms_by_geo.sql
nrllh Aug 28, 2024
6a4659b
Update top_cms_by_rank.sql
nrllh Aug 28, 2024
87a8e8c
Update wordpress_page_builders.sql
nrllh Aug 28, 2024
4710597
Update wordpress_page_builders.sql
nrllh Aug 28, 2024
a73fe0e
Fixed linting issues
kevinfarrugia Oct 15, 2024
d23ad7e
Fixed linting issues
kevinfarrugia Oct 15, 2024
c260b08
Added query for lighthouse scores per CMS YoY
kevinfarrugia Oct 15, 2024
7499370
Update sql/2024/cms/cms_adoption_by_rank.sql
kevinfarrugia Oct 31, 2024
4258ae4
Update sql/2024/cms/top_cms_by_rank.sql
kevinfarrugia Oct 31, 2024
bf5a223
Removed redundant query cms_adoption_by_rank.sql
kevinfarrugia Nov 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions sql/2024/cms/cms_adoption.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
#standardSQL
# CMS adoption OVER time
# cms_adoption.sql

SELECT
client,
2024 AS year,
COUNT(DISTINCT page) AS freq,
total,
COUNT(DISTINCT page) / total AS pct
FROM
`httparchive.all.pages`,
UNNEST(technologies) AS technologies,
UNNEST(technologies.categories) AS cats
JOIN (
SELECT
client,
COUNT(0) AS total
FROM
`httparchive.all.pages`
WHERE
date = '2024-06-01' AND
is_root_page
GROUP BY
client)
USING
(client)
WHERE
cats = 'CMS' AND
date = '2024-06-01' AND
is_root_page
GROUP BY
client,
total
UNION ALL
SELECT
client,
2023 AS year,
COUNT(DISTINCT page) AS freq,
total,
COUNT(DISTINCT page) / total AS pct
FROM
`httparchive.all.pages`,
UNNEST(technologies) AS technologies,
UNNEST(technologies.categories) AS cats
JOIN (
SELECT
client,
COUNT(0) AS total
FROM
`httparchive.all.pages`
WHERE
date = '2023-06-01' AND
is_root_page
GROUP BY
client)
USING
(client)
WHERE
cats = 'CMS' AND
date = '2023-06-01' AND
is_root_page
GROUP BY
client,
total
UNION ALL
SELECT
client,
2022 AS year,
COUNT(DISTINCT page) AS freq,
total,
COUNT(DISTINCT page) / total AS pct
FROM
`httparchive.all.pages`,
UNNEST(technologies) AS technologies,
UNNEST(technologies.categories) AS cats
JOIN (
SELECT
client,
COUNT(0) AS total
FROM
`httparchive.all.pages`
WHERE
date = '2022-06-01' AND
is_root_page
GROUP BY
client)
USING
(client)
WHERE
cats = 'CMS' AND
date = '2022-06-01' AND
is_root_page
GROUP BY
client,
total
ORDER BY
year DESC,
pct DESC
56 changes: 56 additions & 0 deletions sql/2024/cms/cms_adoption_by_geo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#standardSQL
# All CMS popularity per geo
# cms_adoption_by_geo.sql

WITH geo_summary AS (
SELECT
`chrome-ux-report`.experimental.GET_COUNTRY(country_code) AS geo,
IF(device = 'desktop', 'desktop', 'mobile') AS client,
origin,
COUNT(DISTINCT origin) OVER (PARTITION BY country_code, IF(device = 'desktop', 'desktop', 'mobile')) AS total
FROM
`chrome-ux-report.materialized.country_summary`
WHERE
yyyymm = 202406
)
SELECT
*
FROM (
SELECT
client,
geo,
COUNT(0) AS pages,
ANY_VALUE(total) AS total,
COUNT(0) / ANY_VALUE(total) AS pct
FROM (
SELECT DISTINCT
geo,
client,
total,
CONCAT(origin, '/') AS page
FROM
geo_summary
)
JOIN (
SELECT
client,
page
FROM
`httparchive.all.pages`,
UNNEST(technologies) AS technologies,
UNNEST(technologies.categories) AS cats
WHERE
date = '2024-06-01' AND
cats = 'CMS' AND
is_root_page
)
USING
(client,
page)
GROUP BY
client,
geo)
WHERE
pages > 1000
ORDER BY
pages DESC
67 changes: 67 additions & 0 deletions sql/2024/cms/cms_adoption_by_rank.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#standardSQL
# CMS adoption per rank
# cms_adoption_by_rank.sql

SELECT
client,
technology,
rank,
COUNT(DISTINCT page) AS pages,
ANY_VALUE(total) AS total,
COUNT(DISTINCT page) / ANY_VALUE(total) AS pct
FROM (
SELECT DISTINCT
client,
technology,
page
FROM
`httparchive.all.pages`,
UNNEST(technologies) AS technologies,
UNNEST(technologies.categories) AS cats
WHERE
date = '2024-06-01' AND
cats = 'CMS' AND
is_root_page
)
JOIN (
SELECT
client,
page,
rank
FROM
`httparchive.all.pages`
WHERE
date = '2024-06-01' AND
is_root_page
)
USING
(client,
page)
JOIN (
SELECT
client,
rank_magnitude AS rank,
COUNT(0) AS total
FROM
`httparchive.all.pages`,
UNNEST([1e3, 1e4, 1e5, 1e6, 1e7]) AS rank_magnitude
WHERE
rank <= rank_magnitude AND
date = '2024-06-01' AND
is_root_page
GROUP BY
client,
rank_magnitude)
USING
(client,
rank),
UNNEST([1e3, 1e4, 1e5, 1e6, 1e7]) AS rank_magnitude
kevinfarrugia marked this conversation as resolved.
Show resolved Hide resolved
WHERE
rank <= rank_magnitude
GROUP BY
client,
technology,
rank
ORDER BY
rank,
pages DESC
Loading