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
17 When Firefox was asked to issue a search from a Search Access Point (SAP)
19 Doesn't record searches in Private Browsing Mode unless
20 `browser.engagement.search_counts.pbm` is set to `true`.
22 - https://bugzilla.mozilla.org/show_bug.cgi?id=1766887
23 - https://bugzilla.mozilla.org/show_bug.cgi?id=1786670
24 - https://bugzilla.mozilla.org/show_bug.cgi?id=1817105
26 - https://bugzilla.mozilla.org/show_bug.cgi?id=1766887
27 - https://bugzilla.mozilla.org/show_bug.cgi?id=1786670#c3
28 - https://bugzilla.mozilla.org/show_bug.cgi?id=1817105#c11
32 - anicholson@mozilla.com
34 - mmccorquodale@mozilla.com
39 newtab_visit_id: &newtab_visit_id
41 The id of the newtab visit that originated the search.
42 Should always be present for handoff searches.
43 TODO(bug 1774597): for searches done without handoff (e.g. with
44 `browser.newtabpage.activity-stream.improvesearch.handoffToAwesomebar`
45 set to `false`), the active newtab visit id is unknown.
47 search_access_point: &search_access_point
49 One of the search access points available on the new tab like
54 telemetry_id: &telemetry_id
56 The search engine's `telemetryId`, like `google-b-d`.
57 This is set to be a telemetry-specific id for app-provided engines,
58 and is `other-<name>` for others (where `<name>` is the engine's
68 Recorded when a newtab visit resulted in a search that
69 loaded a Search Engine Result Page (SERP) that contains an ad link.
70 And the SERP is visible.
72 - https://bugzilla.mozilla.org/show_bug.cgi?id=1766887
73 - https://bugzilla.mozilla.org/show_bug.cgi?id=1786670
74 - https://bugzilla.mozilla.org/show_bug.cgi?id=1817105
76 - https://bugzilla.mozilla.org/show_bug.cgi?id=1766887
77 - https://bugzilla.mozilla.org/show_bug.cgi?id=1786670#c3
78 - https://bugzilla.mozilla.org/show_bug.cgi?id=1817105#c11
82 - anicholson@mozilla.com
84 - mmccorquodale@mozilla.com
89 newtab_visit_id: *newtab_visit_id
90 search_access_point: *search_access_point
91 is_follow_on: &is_follow_on
93 Whether the preceding search happened on a search results page.
97 Whether the preceding search was tagged with a partner code.
99 telemetry_id: *telemetry_id
106 Recorded when an ad link is clicked on a Search Engine Result Page (SERP)
107 which was loaded by a seach that began on a newtab page.
109 - https://bugzilla.mozilla.org/show_bug.cgi?id=1766887
110 - https://bugzilla.mozilla.org/show_bug.cgi?id=1786670
111 - https://bugzilla.mozilla.org/show_bug.cgi?id=1817105
113 - https://bugzilla.mozilla.org/show_bug.cgi?id=1766887
114 - https://bugzilla.mozilla.org/show_bug.cgi?id=1786670#c3
115 - https://bugzilla.mozilla.org/show_bug.cgi?id=1817105#c11
119 - anicholson@mozilla.com
120 - chutten@mozilla.com
121 - mmccorquodale@mozilla.com
122 - najiang@mozilla.com
126 newtab_visit_id: *newtab_visit_id
127 search_access_point: *search_access_point
128 is_follow_on: *is_follow_on
129 is_tagged: *is_tagged
130 telemetry_id: *telemetry_id
138 Recorded when a search engine results page (SERP) is shown to a user.
140 - https://bugzilla.mozilla.org/show_bug.cgi?id=1813162
141 - https://bugzilla.mozilla.org/show_bug.cgi?id=1824543
142 - https://bugzilla.mozilla.org/show_bug.cgi?id=1816736
143 - https://bugzilla.mozilla.org/show_bug.cgi?id=1816738
144 - https://bugzilla.mozilla.org/show_bug.cgi?id=1829953
146 - https://bugzilla.mozilla.org/show_bug.cgi?id=1813162
147 - https://bugzilla.mozilla.org/show_bug.cgi?id=1824543
151 - fx-search-telemetry@mozilla.com
152 - rev-data@mozilla.com
155 impression_id: &impression_id
157 A uuid to link SERP events to user's engagement events.
161 The name of the provider.
165 Whether the search is tagged (true) or organic (false).
169 Any partner_code parsing in the URL or an empty string if not
174 How the user arrived at the SERP.
176 `urlbar`, `urlbar_handoff`, `urlbar_searchmode`, `urlbar_persisted`,
177 `searchbar`, `contextmenu`, `webextension`, `system`, `reload`,
178 `tabhistory`, `follow_on_from_refine_on_incontent_search`,
179 `follow_on_from_refine_on_SERP`, `opened_in_new_tab`, `unknown`.
180 This will be `unknown` if we cannot determine the source.
182 shopping_tab_displayed:
184 Indicates if the shopping tab is displayed.
188 Indicates if the page is a shopping page.
194 Recorded user actions on a SERP.
196 - https://bugzilla.mozilla.org/show_bug.cgi?id=1814773
197 - https://bugzilla.mozilla.org/show_bug.cgi?id=1816730
198 - https://bugzilla.mozilla.org/show_bug.cgi?id=1816735
200 - https://bugzilla.mozilla.org/show_bug.cgi?id=1814773
201 - https://bugzilla.mozilla.org/show_bug.cgi?id=1816730
205 - fx-search-telemetry@mozilla.com
206 - rev-data@mozilla.com
209 impression_id: *impression_id
212 The action taken on the page.
213 Possible values are `clicked`, `expanded`, and `submitted`.
217 The target component used to trigger the action.
224 `incontent_searchbox`,
225 `refined_search_buttons`,
232 Recorded when a user loads a SERP and ads are detected.
234 - https://bugzilla.mozilla.org/show_bug.cgi?id=1816728
235 - https://bugzilla.mozilla.org/show_bug.cgi?id=1816729
237 - https://bugzilla.mozilla.org/show_bug.cgi?id=1816728
241 - fx-search-telemetry@mozilla.com
242 - rev-data@mozilla.com
245 impression_id: *impression_id
248 Type of components on a SERP. Possible values are:
254 `refined_search_buttons`,
256 Defaults to `ad_link`.
260 Number of ads loaded for this component. They may or
261 may not be visible on the page.
265 Number of ads visible for this component. An ad can be
266 considered visible if was within the browser window
267 by the time the impression was recorded.
271 Number of ads hidden for this component. These are ads that
272 are loaded in the DOM but hidden via CSS and/or Javascript.
278 Recorded when there is no engagement with the SERP before the tab is
279 closed, the window is closed, the app is closed, or the tab is navigated
282 - https://bugzilla.mozilla.org/show_bug.cgi?id=1814776
284 - https://bugzilla.mozilla.org/show_bug.cgi?id=1814776
288 - fx-search-telemetry@mozilla.com
289 - rev-data@mozilla.com
292 impression_id: *impression_id
295 Why the SERP is deemed abandoned.
297 `tab_close`, `window_close`, `navigation`
300 categorization_duration:
301 type: timing_distribution
302 time_unit: millisecond
304 The time it takes to categorize elements on a SERP.
306 - https://bugzilla.mozilla.org/show_bug.cgi?id=1834100
308 - https://bugzilla.mozilla.org/show_bug.cgi?id=1834100
312 - fx-search-telemetry@mozilla.com