These are the queries we used for the CMS market share report.
-
-
Save jdevalk/d4ae38001139f128dd65914cf03bd207 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH site_builder AS ( | |
| SELECT | |
| url, | |
| COALESCE( | |
| MAX(IF(category = 'Page builders', app, NULL)), | |
| 'Unrecognized' | |
| ) AS builder_name | |
| FROM | |
| `httparchive.technologies.2024_05_01_mobile` | |
| GROUP BY | |
| url | |
| ) | |
| SELECT | |
| builder_name, | |
| COUNT(*) AS count, | |
| ROUND( 100 * ( COUNT(*) / SUM(COUNT(*)) OVER() ), 2 ) AS market_share | |
| FROM | |
| site_builder | |
| GROUP BY | |
| builder_name | |
| ORDER BY | |
| count DESC | |
| LIMIT 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH site_plugin AS ( | |
| SELECT | |
| url, | |
| COALESCE( | |
| MAX(IF(category = 'WordPress plugins' AND app IN ('All in One SEO Pack', 'RankMath SEO', 'Slim SEO', 'The SEO Framework', 'Yoast SEO'), app, NULL)), | |
| 'Unrecognized' | |
| ) AS plugin_name | |
| FROM | |
| `httparchive.technologies.2024_05_01_mobile` | |
| GROUP BY | |
| url | |
| ) | |
| SELECT | |
| plugin_name, | |
| COUNT(*) AS count, | |
| ROUND( 100 * ( COUNT(*) / SUM(COUNT(*)) OVER() ), 2 ) AS market_share | |
| FROM | |
| site_plugin | |
| GROUP BY | |
| plugin_name | |
| ORDER BY | |
| count DESC | |
| LIMIT 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @jdevalk, I was looking for a way to get page builder stats and this was really useful - thank you!
This doc on minimizing BigQuery costs mentions that legacy tables such as
httparchive.technologies.2024_05_01_mobiledon't take advantage of partitioning and clustering. So I came up with a modified version of your page builder query. It uses about 25GB of processing - not sure if that's more or less than yours. I'll leave it here in case you want to look at it: