Skip to content

Commit

Permalink
add daily pixel for deleting suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Nov 4, 2024
1 parent 1c2abb9 commit 971c82b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Core/PixelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ extension Pixel {
case autocompleteDisplayedLocalHistory
case autocompleteDisplayedOpenedTab
case autocompleteSwipeToDelete
case autocompleteSwipeToDeleteDaily

case feedbackPositive
case feedbackNegativePrefix(category: String)
Expand Down Expand Up @@ -962,6 +963,7 @@ extension Pixel.Event {
case .autocompleteDisplayedLocalHistory: return "m_autocomplete_display_local_history"
case .autocompleteDisplayedOpenedTab: return "m_autocomplete_display_switch_to_tab"
case .autocompleteSwipeToDelete: return "m_autocomplete_result_deleted"
case .autocompleteSwipeToDeleteDaily: return "m_autocomplete_result_deleted_daily"

case .feedbackPositive: return "mfbs_positive_submit"
case .feedbackNegativePrefix(category: let category): return "mfbs_negative_\(category)"
Expand Down
1 change: 1 addition & 0 deletions DuckDuckGo/AutocompleteViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ extension AutocompleteViewController: AutocompleteViewModelDelegate {
Task {
await historyManager.deleteHistoryForURL(url)
Pixel.fire(pixel: .autocompleteSwipeToDelete)
DailyPixel.fireDaily(.autocompleteSwipeToDeleteDaily)
requestSuggestions(query: self.query)
}
default:
Expand Down

0 comments on commit 971c82b

Please sign in to comment.