diff --git a/src/display/editor/stamp.js b/src/display/editor/stamp.js index 24b17b0072112..e41aa2ac27975 100644 --- a/src/display/editor/stamp.js +++ b/src/display/editor/stamp.js @@ -159,7 +159,7 @@ class StampEditor extends AnnotationEditor { ) { this._reportTelemetry({ action: "pdfjs.image.image_added", - data: { alt_text_modal: false }, + data: { alt_text_modal: false, alt_text_type: "empty" }, }); try { // The alt-text dialog isn't opened but we still want to guess the alt diff --git a/web/new_alt_text_manager.js b/web/new_alt_text_manager.js index a123d68c56c34..06588b3204fdc 100644 --- a/web/new_alt_text_manager.js +++ b/web/new_alt_text_manager.js @@ -416,7 +416,7 @@ class NewAltTextManager { }); this.#currentEditor._reportTelemetry({ action: "pdfjs.image.image_added", - data: { alt_text_modal: false }, + data: { alt_text_modal: true, alt_text_type: "skipped" }, }); this.#finish(); } @@ -464,7 +464,10 @@ class NewAltTextManager { } this.#currentEditor._reportTelemetry({ action: "pdfjs.image.image_added", - data: { alt_text_modal: true }, + data: { + alt_text_modal: true, + alt_text_type: altText ? "present" : "empty", + }, }); this.#currentEditor._reportTelemetry({