1 # This Source Code Form is subject to the terms of the Mozilla Public↩
2 # License, v. 2.0. If a copy of the MPL was not distributed with this↩
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.↩
5 # Adding a new metric? We have docs for that!↩
6 # https://firefox-source-docs.mozilla.org/toolkit/components/glean/user/new_definitions_file.html↩
9 $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
11 - 'Firefox :: PDF Viewer'
24 Counts the number of times some PDF editing features are used.
26 - https://bugzilla.mozilla.org/show_bug.cgi?id=1782254
28 - https://bugzilla.mozilla.org/show_bug.cgi?id=1782254#c4
32 - cdenizet@mozilla.com
33 - mcastelluccio@mozilla.com
43 - alt_text_description
47 Counts the number of times some PDF editing features are used.
49 - https://bugzilla.mozilla.org/show_bug.cgi?id=1853960
51 - https://bugzilla.mozilla.org/show_bug.cgi?id=1853960#c1
55 - cdenizet@mozilla.com
56 - mcastelluccio@mozilla.com
62 - presentation_mode_keyboard
79 Counts the number of times some actions are executed in the PDF viewer.
81 - https://bugzilla.mozilla.org/show_bug.cgi?id=1789883
83 - https://bugzilla.mozilla.org/show_bug.cgi?id=1789883#2
87 - cdenizet@mozilla.com
88 - mcastelluccio@mozilla.com
95 - open_in_app_just_once
101 Counts the number of times some actions are executed in the PDF viewer.
103 - https://bugzilla.mozilla.org/show_bug.cgi?id=1829216
105 - https://bugzilla.mozilla.org/show_bug.cgi?id=1829216#2
109 - cdenizet@mozilla.com
110 - mcastelluccio@mozilla.com
114 - https://bugzilla.mozilla.org/show_bug.cgi?id=1566882
116 - https://bugzilla.mozilla.org/show_bug.cgi?id=1566882#c2
118 How many times PDF Viewer was used.
122 - cdenizet@mozilla.com
123 - mcastelluccio@mozilla.com
125 type: custom_distribution
127 - https://bugzilla.mozilla.org/show_bug.cgi?id=1566882
129 - https://bugzilla.mozilla.org/show_bug.cgi?id=1566882#c2
131 Time spent to display first page in PDF Viewer (ms).
136 histogram_type: exponential
141 - cdenizet@mozilla.com
142 - mcastelluccio@mozilla.com
143 pdfjs.editing.highlight:
145 type: labeled_counter
150 Counts the number of times a given kind is used to highlight.
152 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
154 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
158 - pdfjs-team@mozilla.com
162 type: labeled_counter
168 Counts the number of times a given method is used to highlight.
170 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
172 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
176 - pdfjs-team@mozilla.com
180 type: labeled_counter
188 Counts the number of times a given color is used to highlight.
190 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
192 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
196 - pdfjs-team@mozilla.com
202 Counts the number of times the user changes the color of a highlight.
204 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
206 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
210 - pdfjs-team@mozilla.com
214 type: labeled_counter
222 Counts the number of different colors used to highlight.
224 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
226 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
230 - pdfjs-team@mozilla.com
234 type: custom_distribution
238 histogram_type: linear
241 The thickness used to draw a free highlight.
243 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
245 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
249 - pdfjs-team@mozilla.com
255 Counts the number of times the user changes the thickness of a free highlight.
257 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
259 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
263 - pdfjs-team@mozilla.com
269 Counts the number of times the user saves a PDF with highlights.
271 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
273 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
277 - pdfjs-team@mozilla.com
283 Counts the number of times the user prints a PDF with highlights.
285 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
287 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
291 - pdfjs-team@mozilla.com
297 Counts the number of times the user edits highlights.
299 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
301 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
305 - pdfjs-team@mozilla.com
311 Counts the number of times the user deletes highlights.
313 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
315 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
319 - pdfjs-team@mozilla.com
325 Counts the number of times the user toggles the visibility of highlights.
327 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437
329 - https://bugzilla.mozilla.org/show_bug.cgi?id=1866437#c1
333 - pdfjs-team@mozilla.com
335 pdfjs.image.alt_text:
339 Recorded when the callout describing automatic alt text generation is displayed.
341 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
343 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
347 - pdfjs-team@mozilla.com
354 Recorded when the callout describing automatic alt text generation is dismissed.
356 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
358 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
362 - pdfjs-team@mozilla.com
369 Recorded on the alt text modal when the user clicks on "i" to learn about alt text or "Learn More" to learn about AI generation.
371 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
373 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
377 - pdfjs-team@mozilla.com
383 description: alt_text, ai_generation.
388 Recorded when the user interacts with the alt text setting in the alt text modal to create alt text with AI.
390 - https://bugzilla.mozilla.org/show_bug.cgi?id=1915434
392 - https://bugzilla.mozilla.org/show_bug.cgi?id=1915434#c1
396 - pdfjs-team@mozilla.com
403 true (resp. false) if the user enables (resp. disables) the AI generation.
408 Recorded when alt text settings dialog is displayed to a user.
410 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
412 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
416 - pdfjs-team@mozilla.com
420 settings_ai_generation_check:
423 Recorded when the user interacts with the alt text setting to create alt text with AI.
425 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
427 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
431 - pdfjs-team@mozilla.com
438 true (resp. false) if the user enables (resp. disables) the AI generation.
440 settings_edit_alt_text_check:
443 Recorded when the user interacts with the alt text modal setting to edit alt text on this pdf.
445 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
447 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
451 - pdfjs-team@mozilla.com
458 true if the user edits the generated text.
463 Recorded when the user clicks Save on the alt text modal.
465 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
467 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
471 - pdfjs-team@mozilla.com
477 description: present, empty.
480 description: image_add, alt_text_edit.
485 Recorded when the user clicks Not now or Cancel on the alt text modal.
487 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
489 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
493 - pdfjs-team@mozilla.com
499 description: present, empty.
502 description: image_add, alt_text_edit.
504 model_download_start:
507 Recorded when download starts for the alt text generation model.
509 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
511 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
515 - pdfjs-team@mozilla.com
519 model_download_complete:
522 Recorded when download completes for the alt text generation model.
524 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
526 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
530 - pdfjs-team@mozilla.com
534 model_download_error:
537 Recorded when an error occurs during the download for the alt text generation model.
539 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
541 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
545 - pdfjs-team@mozilla.com
551 description: Error message.
556 Recorded when the user clicks to delete the model from the alt text settings.
558 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
560 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
564 - pdfjs-team@mozilla.com
571 Records how long it takes to generate the alt text and what is the length of the result.
573 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
575 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
579 - pdfjs-team@mozilla.com
586 time in ms to generate result.
590 number of characters of generated text.
595 Recorded once the alt text is confirmed, when the user makes changes to the alt text generated. By comparing the initially generated text with the final version, quantifies how many words were changed.
597 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
599 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
603 - pdfjs-team@mozilla.com
610 total number of words in the generated text.
614 number of words removed.
618 number of words added.
620 image_status_label_displayed:
623 Recorded when the alt text status button on an image is shown .
625 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
627 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
631 - pdfjs-team@mozilla.com
637 description: added, review, missing.
640 image_status_label_clicked:
643 Recorded when the user clicks on the alt text status button.
645 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
647 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
651 - pdfjs-team@mozilla.com
657 description: added, review, missing.
662 Recorded when the image toolbar icon is clicked.
664 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
666 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
670 - pdfjs-team@mozilla.com
677 Recorded when the Add Image label is clicked.
679 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
681 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
685 - pdfjs-team@mozilla.com
692 Recorded when the user selects an image file from their computer.
694 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
696 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
700 - pdfjs-team@mozilla.com
707 Indicates if the alt text modal was displayed and the user clicked save, or if it was skipped and the image was added directly after selection.
712 Recorded once the image is added to the pdf.
714 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
716 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
720 - pdfjs-team@mozilla.com
727 Indicates if the alt text modal was displayed and the user clicked save, or if it was skipped and the image was added directly after selection.
730 description: present, empty, skipped.
733 type: labeled_boolean
735 Stores alt text modal settings for the user.
740 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
742 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
746 - pdfjs-team@mozilla.com
751 type: labeled_counter
753 Number of images added with/without alt text.
758 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325
760 - https://bugzilla.mozilla.org/show_bug.cgi?id=1909325#c1
764 - pdfjs-team@mozilla.com