1
0
Fork 0

For #6557 - added metric for in_content

master
Mihai Branescu 2020-04-23 23:10:01 +03:00 committed by Jeff Boek
parent f10e202a1e
commit f09bc4566c
4 changed files with 26 additions and 0 deletions

View File

@ -2030,6 +2030,20 @@ browser.search:
notification_emails:
- fenix-core@mozilla.com
expires: "2020-09-01"
in_content:
type: labeled_counter
description: >
Records the type of interaction a user has on SERP pages.
send_in_pings:
- baseline
- metrics
bugs:
- https://github.com/mozilla-mobile/fenix/issues/6557
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/10167
notification_emails:
- fenix-core@mozilla.com
expires: "2020-09-01"
addons:
open_addons_in_settings:

View File

@ -117,6 +117,11 @@ private val Event.wrapper: EventWrapper<*>?
BrowserSearch.adClicks[label].add(1)
}
)
is Event.SearchInContent -> EventWrapper<NoExtraKeys>(
{
BrowserSearch.inContent[label].add(1)
}
)
is Event.SearchShortcutSelected -> EventWrapper(
{ SearchShortcuts.selected.record(it) },
{ SearchShortcuts.selectedKeys.valueOf(it) }

View File

@ -375,6 +375,11 @@ sealed class Event {
get() = providerName
}
data class SearchInContent(val keyName: String) : Event() {
val label: String
get() = keyName
}
class ContextMenuItemTapped private constructor(val item: String) : Event() {
override val extras: Map<ContextMenu.itemTappedKeys, String>?
get() = mapOf(ContextMenu.itemTappedKeys.named to item)

File diff suppressed because one or more lines are too long