1
0
Fork 0

For #7751: Remove 'SearchWithCustomEngine' telemetry event

master
ValentinTimisica 2020-01-16 11:49:18 +02:00 committed by Jeff Boek
parent 3a1292911d
commit c106d89285
5 changed files with 0 additions and 39 deletions

View File

@ -1684,17 +1684,6 @@ user_specified_search_engines:
notification_emails:
- fenix-core@mozilla.com
expires: "2020-03-01"
search_with_custom_engine:
type: event
description: >
A user performed a search with a custom search engine
bugs:
- https://github.com/mozilla-mobile/fenix/issues/5586
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/6918
notification_emails:
- fenix-core@mozilla.com
expires: "2020-03-01"
search_suggestions:
enable_in_private:

View File

@ -459,9 +459,6 @@ private val Event.wrapper: EventWrapper<*>?
is Event.CustomEngineDeleted -> EventWrapper<NoExtraKeys>(
{ UserSpecifiedSearchEngines.customEngineDeleted.record(it) }
)
is Event.SearchWithCustomEngine -> EventWrapper<NoExtraKeys>(
{ UserSpecifiedSearchEngines.searchWithCustomEngine.record(it) }
)
// Don't record other events in Glean:
is Event.AddBookmark -> null
is Event.OpenedBookmark -> null

View File

@ -139,7 +139,6 @@ sealed class Event {
object ViewLoginPassword : Event()
object CustomEngineAdded : Event()
object CustomEngineDeleted : Event()
object SearchWithCustomEngine : Event()
object PrivateBrowsingShowSearchSuggestions : Event()
// Interaction events with extras

View File

@ -18,7 +18,6 @@ import org.mozilla.fenix.components.metrics.Event.PerformedSearch.SearchAccessPo
import org.mozilla.fenix.components.metrics.Event.PerformedSearch.SearchAccessPoint.NONE
import org.mozilla.fenix.components.metrics.Event.PerformedSearch.SearchAccessPoint.SUGGESTION
import org.mozilla.fenix.components.metrics.MetricsUtils
import org.mozilla.fenix.components.searchengine.CustomSearchEngineStore
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.metrics
import org.mozilla.fenix.ext.nav
@ -72,13 +71,6 @@ class DefaultSearchController(
}
event?.let { context.metrics.track(it) }
if (CustomSearchEngineStore.isCustomSearchEngine(
context,
store.state.searchEngineSource.searchEngine.identifier
)
) {
context.components.analytics.metrics.track(Event.SearchWithCustomEngine)
}
}
}
@ -107,13 +99,6 @@ class DefaultSearchController(
)
context.metrics.track(Event.EnteredUrl(false))
if (CustomSearchEngineStore.isCustomSearchEngine(
context,
store.state.searchEngineSource.searchEngine.identifier
)
) {
context.components.analytics.metrics.track(Event.SearchWithCustomEngine)
}
}
override fun handleSearchTermsTapped(searchTerms: String) {
@ -138,14 +123,6 @@ class DefaultSearchController(
)
}
event?.let { context.metrics.track(it) }
if (CustomSearchEngineStore.isCustomSearchEngine(
context,
store.state.searchEngineSource.searchEngine.identifier
)
) {
context.components.analytics.metrics.track(Event.SearchWithCustomEngine)
}
}
override fun handleSearchShortcutEngineSelected(searchEngine: SearchEngine) {

View File

@ -158,7 +158,6 @@ The following metrics are added to the ping:
| tracking_protection.panel_settings |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A user opened tracking protection settings from the panel. |[1](https://github.com/mozilla-mobile/fenix/pull/5414#issuecomment-532847188)||2020-03-01 |
| user_specified_search_engines.custom_engine_added |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A user added a new custom search engine |[1](https://github.com/mozilla-mobile/fenix/pull/6918)||2020-03-01 |
| user_specified_search_engines.custom_engine_deleted |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A user deleted a custom search engine |[1](https://github.com/mozilla-mobile/fenix/pull/6918)||2020-03-01 |
| user_specified_search_engines.search_with_custom_engine |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A user performed a search with a custom search engine |[1](https://github.com/mozilla-mobile/fenix/pull/6918)||2020-03-01 |
## metrics
This is a built-in ping that is assembled out of the box by the Glean SDK.