Commit Graph

87 Commits

Author SHA1 Message Date
Daisuke Akatsuka
9ba0b5c516 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
dd5fabc1d3 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
394e9a4eaf 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
61a27ea08e 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
97ec7014fd 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
5c00832e2d 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
c69fb96874 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
8ffbdb5831 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
c6e293bfa2 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
6f5181bdb6 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
c5786fb5e6 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
ee631d075f 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
60b4d22484 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
94dbe3ea23 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
0900dca6df 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
7cbdd20c67 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
ff3dd64b3f 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
1e290a646d 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
5036df41c7 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
aee44d1538 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
b72ec69dd8 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
3f017410e0 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
a189a5554e 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
1914a56117 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
d72b6e80fa 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
966d7ef125 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
28c66e9939 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
09c630292c 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
b939b22e8c 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
c7fb8585c9 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
e6551e78d3 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
58cf2e7f96 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
b7f0575fc4 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
107a1e3766 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
Harry Twyford
079579c0fb Bug 1717509 - Part 5 - Replace references to UnifiedComplete with references to UrlbarProviderPlaces. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D119310
2021-07-09 23:52:39 +00:00
Harry Twyford
3d581840b3 Bug 1616700 - Part 1 - Use default address bar search mode for new tab search handoff r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D108825
2021-03-23 22:56:54 +00:00
Alexandru Michis
7472bfb633 Backed out 3 changesets (bug 1616700) for causing failures in browser_privatebrowsing_about.js
Backed out changeset 5e1b8f75fef5 (bug 1616700)
Backed out changeset fdf97a561019 (bug 1616700)
Backed out changeset de3717cc63ef (bug 1616700)
2021-03-20 01:23:39 +02:00
Harry Twyford
3108d69a6b Bug 1616700 - Part 1 - Use default address bar search mode for new tab search handoff r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D108825
2021-03-19 21:31:12 +00:00
Mark Banner
da55ee7dca Bug 1698847 - Move remaining search telemetry documentation from address bar to search. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D108649
2021-03-18 21:27:30 +00:00
Dale Harvey
483fa9b0fe Bug 1697003 - Update strings for Firefox Suggest experiment r=adw
Differential Revision: https://phabricator.services.mozilla.com/D107525
2021-03-09 12:59:03 +00:00
Nan Jiang
df77370348 Bug 1689365 - Add custom impression and click for QuickSuggest r=adw,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D106490
2021-02-25 22:17:12 +00:00
Michelle Goossens
0c10414bc9 Bug 1692672 - Re-label "Paste & Go" to "Paste and Go" r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D106499
2021-02-25 17:28:33 +00:00
Drew Willcoxon
55c443cf32 Bug 1693126 - Add telemetry for when users disable Quick Suggest. r=harry,nanj
This adds event telemetry that's recorded when the
`browser.urlbar.suggest.quicksuggest` pref is toggled. This pref corresponds to
the checkbox in about:preferences#search labeled "Show suggested and sponsored
results in the address bar".

I used `contextservices.quicksuggest` as the event telemetry category name to be
similar to the `contextual.services.quicksuggest.*` scalars. Event names are
limited to 30 chars, so it couldn't be exactly the same.

This is based on my earlier revision for scalar telemetry in D106173.

Depends on D106173

Differential Revision: https://phabricator.services.mozilla.com/D106248
2021-02-25 06:21:32 +00:00
Drew Willcoxon
1a2e2be9d8 Bug 1693927 - Record keyed scalar telemetry for impressions and clicks on Quick Suggest results. r=harry,nanj
This adds three new keyed scalars:

* `contextual.services.quicksuggest.impression`: Incremented when a Quick
  Suggest result is shown in an address bar engagement where the user picks any
  result.
* `contextual.services.quicksuggest.click`: Incremented when the user picks a
  Quick Suggest result (not including the help button).
* `contextual.services.quicksuggest.help``: Incremented when the user picks the
  onboarding help button in a Quick Suggest result.

The changes to telemetry.rst and Scalars.yaml have more details.

I modified `TelemetryEvent.typeFromElement()` to return `"help"` for clicks on
the help button so that the quick suggest provider can tell whether the main
part of the result was picked or the help button. I left `"tiphelp"` for tip
help buttons in case anything depends on that.

Depends on D106060

Differential Revision: https://phabricator.services.mozilla.com/D106173
2021-02-25 06:21:30 +00:00
Csoregi Natalia
d96bc26433 Backed out 2 changesets (bug 1693927, bug 1693126) as requested. CLOSED TREE
Backed out changeset f49147a4544b (bug 1693126)
Backed out changeset 8bb5bc9c97b2 (bug 1693927)
2021-02-25 05:08:26 +02:00
Drew Willcoxon
246ffe7570 Bug 1693126 - Add telemetry for when users disable Quick Suggest. r=harry,nanj
This adds event telemetry that's recorded when the
`browser.urlbar.suggest.quicksuggest` pref is toggled. This pref corresponds to
the checkbox in about:preferences#search labeled "Show suggested and sponsored
results in the address bar".

I used `contextservices.quicksuggest` as the event telemetry category name to be
similar to the `contextual.services.quicksuggest.*` scalars. Event names are
limited to 30 chars, so it couldn't be exactly the same.

This is based on my earlier revision for scalar telemetry in D106173.

Depends on D106173

Differential Revision: https://phabricator.services.mozilla.com/D106248
2021-02-25 02:52:04 +00:00
Drew Willcoxon
bd84faad96 Bug 1693927 - Record keyed scalar telemetry for impressions and clicks on Quick Suggest results. r=harry,nanj
This adds three new keyed scalars:

* `contextual.services.quicksuggest.impression`: Incremented when a Quick
  Suggest result is shown in an address bar engagement where the user picks any
  result.
* `contextual.services.quicksuggest.click`: Incremented when the user picks a
  Quick Suggest result (not including the help button).
* `contextual.services.quicksuggest.help``: Incremented when the user picks the
  onboarding help button in a Quick Suggest result.

The changes to telemetry.rst and Scalars.yaml have more details.

I modified `TelemetryEvent.typeFromElement()` to return `"help"` for clicks on
the help button so that the quick suggest provider can tell whether the main
part of the result was picked or the help button. I left `"tiphelp"` for tip
help buttons in case anything depends on that.

Depends on D106060

Differential Revision: https://phabricator.services.mozilla.com/D106173
2021-02-25 02:52:04 +00:00
Csoregi Natalia
724115d88a Backed out 2 changesets (bug 1693927, bug 1693126) for failures on browser_urlbar_telemetry_quicksuggest.js. CLOSED TREE
Backed out changeset 681c90aa832e (bug 1693126)
Backed out changeset 7525ec04b82a (bug 1693927)
2021-02-24 22:00:43 +02:00
Drew Willcoxon
fce9bb83ea Bug 1693126 - Add telemetry for when users disable Quick Suggest. r=harry,nanj
This adds event telemetry that's recorded when the
`browser.urlbar.suggest.quicksuggest` pref is toggled. This pref corresponds to
the checkbox in about:preferences#search labeled "Show suggested and sponsored
results in the address bar".

I used `contextservices.quicksuggest` as the event telemetry category name to be
similar to the `contextual.services.quicksuggest.*` scalars. Event names are
limited to 30 chars, so it couldn't be exactly the same.

This is based on my earlier revision for scalar telemetry in D106173.

Depends on D106173

Differential Revision: https://phabricator.services.mozilla.com/D106248
2021-02-24 19:13:50 +00:00
Drew Willcoxon
ba2cc6f08f Bug 1693927 - Record keyed scalar telemetry for impressions and clicks on Quick Suggest results. r=harry,nanj
This adds three new keyed scalars:

* `contextual.services.quicksuggest.impression`: Incremented when a Quick
  Suggest result is shown in an address bar engagement where the user picks any
  result.
* `contextual.services.quicksuggest.click`: Incremented when the user picks a
  Quick Suggest result (not including the help button).
* `contextual.services.quicksuggest.help``: Incremented when the user picks the
  onboarding help button in a Quick Suggest result.

The changes to telemetry.rst and Scalars.yaml have more details.

I modified `TelemetryEvent.typeFromElement()` to return `"help"` for clicks on
the help button so that the quick suggest provider can tell whether the main
part of the result was picked or the help button. I left `"tiphelp"` for tip
help buttons in case anything depends on that.

Depends on D106060

Differential Revision: https://phabricator.services.mozilla.com/D106173
2021-02-24 18:01:37 +00:00