feat: add unified consent-gated editor telemetry#2885
Open
Soare-Robert-Daniel wants to merge 2 commits into
Open
feat: add unified consent-gated editor telemetry#2885Soare-Robert-Daniel wants to merge 2 commits into
Soare-Robert-Daniel wants to merge 2 commits into
Conversation
Load a single editor-telemetry chunk when tracking is enabled, covering block-health, block-usage, post-save inventory, and activation funnel (first insert + first save with depth bucket). Bootstrap state comes from PHP-localized themeisleGutenberg.telemetry instead of a REST fetch on load. Register otter_activation_first_save for per-site dedup and expand e2e coverage for chunk consent, activation, block-usage, inventory, and health. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Bundle Size Diff
|
Contributor
|
Plugin build for 7fcfd89 is ready 🛎️!
|
Contributor
E2E TestsPlaywright Test Status: See serial and parallel matrix jobs Performance ResultsserverResponse: {"q25":482,"q50":492.05,"q75":525.4,"cnt":10}, firstPaint: {"q25":1333.1,"q50":1428.65,"q75":1498.3,"cnt":10}, domContentLoaded: {"q25":3656.8,"q50":3743.5,"q75":3766.1,"cnt":10}, loaded: {"q25":3658.6,"q50":3745.35,"q75":3768.3,"cnt":10}, firstContentfulPaint: {"q25":4222.3,"q50":4275.9,"q75":4317.4,"cnt":10}, firstBlock: {"q25":15266.4,"q50":15348.35,"q75":15390.8,"cnt":10}, type: {"q25":25.86,"q50":27.68,"q75":29.94,"cnt":10}, typeWithoutInspector: {"q25":26.27,"q50":26.62,"q75":27.95,"cnt":10}, typeWithTopToolbar: {"q25":36.13,"q50":37.76,"q75":38.79,"cnt":10}, typeContainer: {"q25":17.29,"q50":19.24,"q75":21.39,"cnt":10}, focus: {"q25":142.89,"q50":145.85,"q75":156.5,"cnt":10}, inserterOpen: {"q25":45.16,"q50":48.92,"q75":51.02,"cnt":10}, inserterSearch: {"q25":18.54,"q50":20.4,"q75":21.73,"cnt":10}, inserterHover: {"q25":5.52,"q50":5.71,"q75":6.22,"cnt":20}, loadPatterns: {"q25":1811.17,"q50":1841.91,"q75":1878.75,"cnt":10}, listViewOpen: {"q25":263.9,"q50":270.46,"q75":283.77,"cnt":10} |
This was referenced Jun 30, 2026
Contributor
Contributor
|
@Soare-Robert-Daniel now that we've merged the PR into dev, we can add the telemetry mentioned. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
editor-telemetrywebpack chunk when tracking consent is enabled, replacing the old static data-logging entry and split dynamic imports.otter_blocks_logger_data), and activation funnel (first insert + first save with depth bucket).themeisleGutenberg.telemetry(logger data + first-save flag) instead of a REST fetch on editor load; registersotter_activation_first_savefor per-site dedup.Supersedes the editor-side pieces of #2864 (block-health) and #2866 (activation funnel) with a simpler, single-chunk architecture.
Test plan
npm run test:e2e:playwright -- src/blocks/test/e2e/blocks/block-telemetry.spec.js(7 tests)chunk-editor-telemetry.jsloads in editorotter_blocks_logger_dataoption updatesMade with Cursor