Bug 1878434 - Add the `awesomebar.{engagement, abandonment}` events.
commit5becca572449054612317f8a9c5fb817797e99cf
authorLina Butler <lina@yakshaving.ninja>
Sat, 3 Feb 2024 00:11:14 +0000 (2 16:11 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 7 Feb 2024 01:23:22 +0000 (7 01:23 +0000)
tree875931b3fbf1d37fbff9487179db7936f9613706
parent9a7279bd41713b50c7ce99bf3e86836d4f62bf3b
Bug 1878434 - Add the `awesomebar.{engagement, abandonment}` events.

This commit:

* Sends the new `awesomebar.{engagement, abandonment}` events when the
  user finishes interacting with the awesomebar. These events match
  iOS's events of the same name, and Desktop's
  `urlbar.{engagement, abandonment}` events.
* Removes the `engagement_abandoned` extra key for the
  `awesomebar.{sponsored, non_sponsored}_suggestion_impressed` events,
  since they're specific to AMP and Wikipedia suggestions, and are
  subsumed by the new events.

This is the first step toward unifying our awesomebar search telemetry
on all our platforms.
mobile/android/fenix/app/metrics.yaml
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/metrics/MetricController.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/telemetry/TelemetryMiddleware.kt