Commit graph

103 commits

Author SHA1 Message Date
James Teow
3c95fa07c8 Bug 1840376 - Remove outstanding references to Preloaded Top URLs - r=adw
Differential Revision: https://phabricator.services.mozilla.com/D182195
2023-06-29 08:18:27 +00:00
James Teow
93e78407ca Bug 1466103 - Add telemetry for adaptive history results in the address bar - r=mak
Differential Revision: https://phabricator.services.mozilla.com/D180168
2023-06-22 23:36:23 +00:00
Marc Seibert
0c6ac66e1f Bug 1736939 - Re-add "Search history" item to history (sub) views from history and library buttons. r=dao,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D175653
2023-04-27 14:32:46 +00:00
Dale Harvey
f5338ca629 Bug 1823543 - Add telemetry to distinguish trending results. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D173093
2023-03-28 13:28:44 +00:00
James Teow
34cbd31c4c Bug 1815971 - Count number of times persisted search is viewed and reverted due to Popups - r=adw
Differential Revision: https://phabricator.services.mozilla.com/D172690
2023-03-22 13:59:06 +00:00
Noah
3e5c4be1ba Bug 1821392 - Change Search and Address Bar telemetry docs to use titles for the probe names. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D172203
2023-03-10 12:31:59 +00:00
Drew Willcoxon
34b853d0d1 Bug 1819797 - Update telemetry for navigational suggestions and dynamic Wikipedia and add subtypes to quick suggest results. r=daleharvey
This adds a bunch of scalars to record navigational suggestions telemetry as
discussed with data science and described in the spec. These scalars are
different from the other Suggest ones because we want to record how nav
suggestions interact with the heuristic result. Unlike the existing scalars, the
keys of these new scalars are the types of heuristics that were shown when a nav
suggestion was or wasn't shown. One of the scalars is updated every time a nav
suggestion is *not* shown, and of course for most users that will be the vast
majority of the time or all the time, so I put all these scalars behind a Nimbus
variable. We'll set the variable to true in the control and treatment branches
of the nav suggestions experiment.

This patch also makes sure nav suggestions are recorded properly in Glean, as
`navigational`. I noticed that dynamic Wikipedia results are currently recorded
as `suggest_non_sponsor`, so I also added a new `dynamic_wikipedia` Glean type
for them. They're also recorded as `urlbar.picked.quicksuggest` in the legacy
telemetry, so I also changed it so they're recorded as
`urlbar.picked.dynamic_wikipedia`.

Currently for dynamic Wikipedia, the non-sponsored scalars are also incremented,
and I discussed with data science whether they and the sponsored scalars should
be incremented for all the new Suggest suggestion types we now have. We agreed
that they should be reserved for the usual partner sponsored and expanded
Wikipedia suggestions, and they should not be used for these new Suggest types,
so this patch also makes that change, and it does not update the non-sponsored
scalars for nav suggestions either.

The other major change this makes is to add a new `subtype` property to quick
suggest result payloads. I think we need a clear, simple way to distinguish
between all these various Suggest suggestion types that doesn't depend on
examining different payload properties depending on the type.

Differential Revision: https://phabricator.services.mozilla.com/D171525
2023-03-08 01:11:02 +00:00
mcheang
c85c0172e0 Bug 1815699 - Modify existing Glean telemetry and add new telemetry to account for weather as a suggestion. r=adw
This patch modifies existing Glean urlbar abandonment, engagement, and
impression events by including a weather suggestion.

This patch also adds a new telemetry scalar url.picked.weather to the legacy
telemetry system.

Differential Revision: https://phabricator.services.mozilla.com/D169225
2023-03-01 19:06:49 +00:00
ogiorgis
690fadc913 Bug 1810702 - remove circular reference warnings r=firefox-source-docs-reviewers,sylvestre DONTBUILD
Moreover it fixes the behavior of the right menu.

Depends on D170178

Differential Revision: https://phabricator.services.mozilla.com/D170179
2023-02-17 12:38:03 +00:00
Daisuke Akatsuka
41a47644eb Bug 1815342: Take telemetry of the user action that deletes the autofilled string. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D169172
2023-02-09 21:55:22 +00:00
Marco Bonardo
dd273b0ca7 Bug 1811209 - Add telemetry to measure frecency recalculation. r=daisuke
Add an histogram to measure time to recalculate a chunk, and a scalar to measure
the number of pages that must be recalculated.

Differential Revision: https://phabricator.services.mozilla.com/D169203
2023-02-09 14:38:22 +00:00
Dale Harvey
c3782e1e63 Bug 1806024 - Add telemetry for QuickAction inpressions. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D166611
2023-02-02 10:12:13 +00:00
Drew Willcoxon
774cdbe2fc Bug 1806765 - Implement zero-prefix telemetry and add weather suggestion exposure telemetry. r=dao
This adds telemetry to UrlbarView that records the following things related to
the zero-prefix view (i.e., the topsites view):

* Exposures: How many times the ZP view was shown
* Engagements: How many times a result was picked in the ZP view
* Abandonments: How many times the user abandoned the ZP view
* Dwell time: How long the user was shown the ZP view

I considered adding telemetry specifically for topsites instead of the ZP view
as a whole, but since we have plans to start showing other types of results in
the ZP view, I don't think it's a good idea to rely on one specific type of
result as a proxy for the view itself. What DS and Product want to know about is
the view itself: how many times it was shown, for how long, etc.

This also adds one related scalar related to weather suggestions that counts the
number of times it's shown. This is the same scalar I added in D164778 using a
different, more complex approach.

Depends on D164615

Differential Revision: https://phabricator.services.mozilla.com/D165253
2023-01-06 23:44:19 +00:00
Daisuke Akatsuka
963abc662a Bug 1806524: Add links of telemetry doc built from metrics.yaml to telemetry.rst r=adw,mak
Differential Revision: https://phabricator.services.mozilla.com/D165378
2022-12-26 01:24:21 +00:00
James Teow
9ae4091c21 Bug 1798793 - Add search tip message for showSearchTerms feature - r=adw,fluent-reviewers,flod
The showSearchTerms feature has a search tip that should appear
on the users default search engine results page.

The design and copy for the feature are in this Figma file:
https://www.figma.com/file/Ock0cYjzi7I1GmcctqOr9K/Search-settings-updates?node-id=352%3A9183

Differential Revision: https://phabricator.services.mozilla.com/D161186
2022-11-09 18:36:08 +00:00
Rebecca BurWei
6efb8ce4cf Bug 1794022 - Add docs. r=nanj DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D161042
2022-11-02 18:20:14 +00:00
Daisuke Akatsuka
41a3d62a55 Bug 1787961: Add telemetry for number of sponsored visit that can not find triggering URL. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D155928
2022-09-06 20:51:34 +00:00
Dale Harvey
e3a468fafb Bug 1783154 - Add QuickAction to urlbar.picked Scalar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D155514
2022-09-01 12:41:24 +00:00
Marian-Vasile Laza
943ddca627 Backed out changeset 654379382e64 (bug 1783154) for causing bc failures on browser_restoreEmptyInput.js. CLOSED TREE 2022-08-30 18:59:43 +03:00
Dale Harvey
c17e587b7c Bug 1783154 - Add QuickAction to urlbar.picked Scalar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D155514
2022-08-30 14:36:54 +00:00
Drew Willcoxon
bc512e24a6 Bug 1777119 - Update the public adaptive history autofill doc. r=daisuke
Please see the bug for info. This revision changes the URL of the adaptive
history doc to the new published doc. Ultimately this doc should live in-tree
but until then this is a nice, simple improvement.

Differential Revision: https://phabricator.services.mozilla.com/D150516
2022-06-28 23:30:14 +00:00
Drew Willcoxon
5af895eb63 Bug 1776787 - Clarify the autofill telemetry documentation. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D150430
2022-06-27 23:38:47 +00:00
Daisuke Akatsuka
8eb52d5314 Bug 1774305: Add impression telemetry for autofill. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D149355
2022-06-17 19:50:37 +00:00
Michael Kohler
dbb779b742 Bug 1672427 - Remove FX_URLBAR_SELECTED_RESULT_INDEX, FX_URLBAR_SELECTED_RESULT_TYPE_2 and FX_URLBAR_SELECTED_RESULT_INDEX_BY_TYPE_2 histograms r=mak
Differential Revision: https://phabricator.services.mozilla.com/D148359
2022-06-17 09:04:27 +00:00
smolnar
875a7512a0 Backed out changeset 299feb340bf2 (bug 1774305) for causing mochitest failures in browser_urlbar_telemetry_autofill. CLOSED TREE 2022-06-17 02:39:20 +03:00
Daisuke Akatsuka
cdd7726c3e Bug 1774305: Add impression telemetry for autofill. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D149355
2022-06-16 22:38:41 +00:00
Drew Willcoxon
89e0a5bd8e Bug 1769583 - Add the urlbar autofill prefs to telemetry environment data. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D146504
2022-05-17 15:36:28 +00:00
Daisuke Akatsuka
6869007716 Bug 1597791: Add telemetry for adaptive history autofill. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D144685
2022-05-13 22:46:36 +00:00
Drew Willcoxon
78cd1c8d08 Bug 1761059 - Part 1: Add telemetry scalars for Suggest suggestion blocking. r=daisuke
This does several things:

* Add new scalars for blocked suggestions
* Record the impression custom telemetry ping when a suggestion is blocked
* Remove the code that gets the index of the quick suggest result when the
  engagement telemetry is recorded. We can replace all that with simply
  `result.rowIndex`, but we need to store the result we last added in a property
  to do that, so I replaced `_addedResultInLastQuery` with
  `_resultFromLastQuery`
* Modify the urlbar engagement telemetry event code by adding the following
  `selType` values: "quicksuggest", "block". We can use the `selType` in the
  quick suggest engagement telemetry code to determine whether the block button
  or the main part of the row was clicked.

Depends on D143246

Differential Revision: https://phabricator.services.mozilla.com/D143254
2022-04-13 21:12:10 +00:00
Drew Willcoxon
7b5a2a1e5a Bug 1752953 - Part 2: Add scalar telemetry for urlbar engagements and abandonments. r=mak
This adds two new scalars for engagements and abandonments in the urlbar:

```
urlbar.engagement
urlbar.abandonment
```

We already have engagement event telemetry but it's preffed off by default, and
for the upcoming best match experiment, data science would prefer scalars so we
can easily measure total engagement volume. (See bug 1752953 comment 22.)
Recording simple scalars for engagements and abandonments in addition to the
optional event telemetry seems totally reasonable.

The existing `urlbar.picked.*` scalars are sort of proxies for engagement, but a
single scalar would make analysis easier, and there is no similar existing
scalar for abandonments.

This revision hooks into the `TelemetryEvent` class, but it records the scalars
regardless of `browser.urlbar.eventTelemetry.enabled` because there's no reason
to not always enable it.

Differential Revision: https://phabricator.services.mozilla.com/D140287
2022-03-11 18:28:27 +00:00
Drew Willcoxon
4ed448d8e5 Bug 1741291 - Add a doc for Firefox Suggest client telemetry with changelogs per probe. r=nanj
This pulls out the Firefox Suggest-specific telemetry from telemetry.rst into
its own doc. It also adds changelogs for each probe per Rebecca's request. I
also reworded some things and added an .rstcheck.cfg file to ignore a couple of
rstcheck (lint) warnings. See:
https://github.com/myint/rstcheck#ignore-specific-errors

Differential Revision: https://phabricator.services.mozilla.com/D131078
2021-11-17 17:23:08 +00:00
Drew Willcoxon
abd3229014 Bug 1735976 - Update Firefox Suggest preferences: Part 4 - Migrate suggest.quicksuggest to suggest.quicksuggest.nonsponsored. r=nanj
Now that we're likely not targeting a 94 dot release anymore, I'd like to go
ahead and rename the `suggest.quicksuggest` pref to
`suggest.quicksuggest.nonsponsored` as we considered doing before. There won't
be a better time to do it.

Depends on D128665

Differential Revision: https://phabricator.services.mozilla.com/D130565
2021-11-09 17:17:11 +00:00
Drew Willcoxon
c78f58eba4 Bug 1735976 - Update Firefox Suggest preferences: Part 3 - Add telemetry for the new data-collection pref. r=nanj
This adds telemetry for the new data-collection pref:

* Adds a `data_collect_toggled` object to the `contextservices.quicksuggest`
  telemetry event
* Adds the new pref to telemetry environment

Depends on D128661

Differential Revision: https://phabricator.services.mozilla.com/D128665
2021-11-09 17:17:11 +00:00
Drew Willcoxon
d8bb10bdfe Bug 1737923 - Add a telemetry histogram for recording Merino response categories. r=nanj
This adds a new categorical histogram called `FX_URLBAR_MERINO_RESPONSE`. There
are four categories per the discussion in the bug:

0: success
1: timeout
2: network_error
3: http_error

Only one value is recorded per fetch, so for example if Merino times out but
then later finishes successfully, we only record the timeout.

Depends on D129772

Differential Revision: https://phabricator.services.mozilla.com/D130530
2021-11-08 19:46:56 +00:00
Nan Jiang
8058476b73 Bug 1736117 - Include Merino request_id in Firefox Suggest telemetry if available r=adw
Differential Revision: https://phabricator.services.mozilla.com/D128970
2021-11-05 20:01:13 +00:00
Marian-Vasile Laza
bfa92e7578 Backed out changeset 397f23e1d806 (bug 1736117) for causing xpcshell failures on test_quicksuggest.js. CLOSED TREE 2021-11-05 21:23:11 +02:00
Nan Jiang
cc3d9c2dec Bug 1736117 - Include Merino request_id in Firefox Suggest telemetry if available r=adw
Differential Revision: https://phabricator.services.mozilla.com/D128970
2021-11-05 18:36:04 +00:00
Nan Jiang
66ddc1ed83 Bug 1737137 - Add data collection document for Merino r=adw DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D129200
2021-11-02 21:51:58 +00:00
Leslie Orellana
709bdad4ad Bug 1715822 - Rename references from resultBuckets to resultGroups. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D128340
2021-10-14 13:23:54 +00:00
Drew Willcoxon
cc82c1d2e8 Bug 1734447 - Record in telemetry environment the user's choice in the Firefox Suggest online opt-in onboarding dialog/modal. r=chutten,dao
Differential Revision: https://phabricator.services.mozilla.com/D127700
2021-10-07 17:02:08 +00:00
Drew Willcoxon
61c28d385f Bug 1733687 - Store in a pref the user's response to the Firefox Suggest onboarding dialog and add two new telemetry event objects. r=dao,mythmon
This does a couple of things:

* Instead of using the `not_now` telemetry event object for the cases where the
  dialog is closed by the Escape key or some other atypical way, reserve
  `not_now` -- renamed `not_now_link` -- specifically for clicks on the "Not
  now" link and add two new objects: `dismissed_escape_key` and
  `dismissed_other`. That should give us a little better understanding of how
  the dialog is being dismissed. The new `not_now_link` name is to avoid
  conflation with the previous meaning of `not_now`.
* Add a new `browser.urlbar.quicksuggest.onboardingDialogChoice` pref that
  stores exactly the same values as the telemetry event. e.g., if the dialog is
  accepted, then we'll record a telemetry event whose object is `accept` and
  we'll also store `accept` in the pref.

I figure if we decide to show the onboarding again for people who have already
seen it, (1) we'll use this pref to decide the flow for any given user, and (2)
we'll need to add another pref for the user's response to the "v2" dialog, or
maybe we could morph this one into an array of responses or something more
complex like that.

Differential Revision: https://phabricator.services.mozilla.com/D127354
2021-10-07 17:02:07 +00:00
Dão Gottwald
f948f3c352 Bug 1723860 - Add event telemetry for Firefox Suggest onboarding modal prompt. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D125244
2021-09-11 11:00:58 +00:00
Nan Jiang
416a5acd40 Bug 1729576 - Add various telemetry changes for Firefox Suggest r=adw
* Add 'scenario' to impression and click pings
* Only send 'search_query' and 'matched_keywords' for 'online' scenario

Differential Revision: https://phabricator.services.mozilla.com/D124943
2021-09-08 21:22:32 +00:00
Alexandru Michis
b8ec12a7f7 Backed out changeset 2bc69d6f8a0c (bug 1729576) for causing crashes in browser_urlbar_telemetry_quicksuggest.js
CLOSED TREE
2021-09-08 23:34:10 +03:00
Nan Jiang
280ad07edf Bug 1729576 - Add various telemetry changes for Firefox Suggest r=adw
* Add 'scenario' to impression and click pings
* Only send 'search_query' and 'matched_keywords' for 'online' scenario

Differential Revision: https://phabricator.services.mozilla.com/D124943
2021-09-08 19:29:41 +00:00
Drew Willcoxon
aeaf5b02d8 Bug 1728430 - Part 1: Add a separate pref for sponsored Firefox Suggest results. r=mak
The Jira ticket (link in the bug) calls for two separate checkboxes for Firefox
Suggest results: a main checkbox plus a sponsored-suggestions checkbox. The
sponsored-suggestions checkbox is subordinate to the main checkbox, i.e., the
main checkbox has to be checked to turn on sponsored suggestions. This will
allow users to toggle sponsored suggestions separately from non-sponsored
suggestions. It's a change from the current situation where we have only one
pref and checkbox that control both sponsored and non-sponsored suggestions.

So part 1 of fixing this bug is to add a new pref for sponsored suggestions.
This revision keeps the current `suggest.quicksuggest` pref as the main pref and
adds a new `suggest.quicksuggest.sponsored` pref. I confirmed with Natalie that
we want to enable both prefs when the user opts in through the onboarding
dialog.

We currently record a telemetry event when `suggest.quicksuggest` is toggled. We
also want a similar event for the new pref, so this adds one.

The pref situation for Firefox Suggest is confusing but in summary:

* `browser.urlbar.quicksuggest.enabled`: The global toggle for the entire
  Firefox Suggest rollout involving sponsored and non-sponsored suggestions, the
  related telemetry and preferences UI, etc. This pref can be overridden by the
  `quickSuggestEnabled` Nimbus variable. If false, neither sponsored nor
  non-sponsored suggestions will be shown. If true, then we look at the
  individual `suggest.quicksuggest` and `suggest.quicksuggest.sponsored` prefs.
* `browser.urlbar.suggest.quicksuggest`: Whether any Firefox Suggest results are
  shown. This must be true to show both non-sponsored and sponsored results.
* `browser.urlbar.suggest.quicksuggest.sponsored`: Whether sponsored Firefox
  Suggest results are shown. Both this pref and `suggest.quicksuggest` must be
  true to show sponsored results.

Differential Revision: https://phabricator.services.mozilla.com/D124300
2021-09-06 18:56:10 +00:00
Drew Willcoxon
82da5cd8a6 Bug 1727799 - Add telemetry probe to measure Merino latency. r=mythmon,mak
This uses `TelemetryStopwatch` to record the time between the `fetch` start and
its resolve. The new histogram is `FX_URLBAR_MERINO_LATENCY_MS`.

Depends on D124132

Differential Revision: https://phabricator.services.mozilla.com/D123993
2021-09-01 16:03:51 +00:00
Harry Twyford
1a37803fd6 Bug 1713827 - Hand off to search mode if searching is disabled in the Urlbar. r=amy,Standard8,flod
This patch also addresses bug 1645293. It essentially reverts parts 1 and 3 of bug 1616700 for users with searching disabled. Since we had to introduce branching behaviour, there are some new constructs like a shouldHandOffToSearchMode multi-pref in UrlbarPrefs.

Differential Revision: https://phabricator.services.mozilla.com/D118606
2021-07-22 15:46:30 +00:00
Cosmin Sabou
6b427ca596 Backed out changeset 5a673b05aea0 (bug 1713827) for bc failures on browser_contentSearchUI_default.js. CLOSED TREE 2021-07-21 01:06:27 +03:00
Harry Twyford
cd2b8c89b0 Bug 1713827 - Hand off to search mode if searching is disabled in the Urlbar. r=amy,Standard8,flod
This patch also addresses bug 1645293. It essentially reverts parts 1 and 3 of bug 1616700 for users with searching disabled. Since we had to introduce branching behaviour, there are some new constructs like a shouldHandOffToSearchMode multi-pref in UrlbarPrefs.

Differential Revision: https://phabricator.services.mozilla.com/D118606
2021-07-20 21:25:10 +00:00