Skip to content

Commit

Permalink
add voice search pixel
Browse files Browse the repository at this point in the history
  • Loading branch information
mikescamell committed Jan 6, 2025
1 parent 0ef5c76 commit e069ed3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ enum class AppPixelName(override val pixelName: String) : Pixel.PixelName {
SETTINGS_ADDRESS_BAR_POSITION_SELECTED_TOP("ms_address_bar_position_setting_selected_top"),
SETTINGS_ADDRESS_BAR_POSITION_SELECTED_BOTTOM("ms_address_bar_position_setting_selected_bottom"),
SETTINGS_NEXT_STEPS_ADDRESS_BAR("m_settings_next_steps_set_address_bar"),
SETTINGS_NEXT_STEPS_VOICE_SEARCH("m_settings_next_steps_enable_voice_search"),
SETTINGS_MAC_APP_PRESSED("ms_mac_app_setting_pressed"),
SETTINGS_WINDOWS_APP_PRESSED("ms_windows_app_setting_pressed"),
SETTINGS_EMAIL_PROTECTION_PRESSED("ms_email_protection_setting_pressed"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_EMAIL_PROTECTION_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_FIRE_BUTTON_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_GENERAL_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_NEXT_STEPS_ADDRESS_BAR
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_NEXT_STEPS_VOICE_SEARCH
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_OPENED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_PERMISSIONS_PRESSED
import com.duckduckgo.app.pixels.AppPixelName.SETTINGS_PRIVATE_SEARCH_PRESSED
Expand Down Expand Up @@ -219,6 +220,7 @@ class NewSettingsViewModel @Inject constructor(

fun onEnableVoiceSearchClicked() {
viewModelScope.launch { command.send(LaunchAccessibilitySettings) }
pixel.fire(SETTINGS_NEXT_STEPS_VOICE_SEARCH)
}

fun onDefaultBrowserSettingClicked() {
Expand Down

0 comments on commit e069ed3

Please sign in to comment.