Bug 1834842 - Replace Hardcoded SERP Telemetry

fenix/124.1.0
sarah541 11 months ago committed by mergify[bot]
parent aa2f7105c2
commit 8ed8e283ef

@ -347,7 +347,7 @@ android.applicationVariants.configureEach { variant ->
if (!isDebug) {
buildConfigField 'boolean', 'TELEMETRY', 'true'
} else {
buildConfigField 'boolean', 'TELEMETRY', 'false'
buildConfigField 'boolean', 'TELEMETRY', 'true'
}
def buildDate = Config.generateBuildDate()

@ -4,6 +4,7 @@
package org.mozilla.fenix.components.metrics
import android.util.Log
import androidx.annotation.VisibleForTesting
import mozilla.components.browser.menu.facts.BrowserMenuFacts
import mozilla.components.browser.toolbar.facts.ToolbarFacts
@ -390,13 +391,16 @@ internal class ReleaseMetricController(
}
Component.FEATURE_SEARCH to AdsTelemetry.SERP_ADD_CLICKED -> {
Log.d("Sarah", "SERP_ADD_CLICKED")
BrowserSearch.adClicks[value!!].add()
track(Event.GrowthData.SerpAdClicked)
}
Component.FEATURE_SEARCH to AdsTelemetry.SERP_SHOWN_WITH_ADDS -> {
Log.d("Sarah", "SERP_SHOWN_WITH_ADDS")
BrowserSearch.withAds[value!!].add()
}
Component.FEATURE_SEARCH to InContentTelemetry.IN_CONTENT_SEARCH -> {
Log.d("Sarah", "IN_CONTENT_SEARCH")
BrowserSearch.inContent[value!!].add()
track(Event.GrowthData.UserActivated(fromSearch = true))
}

Loading…
Cancel
Save