Skip to content

Commit

Permalink
Add privacyFeedHistoryLinkOpened pixel (#3718)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/0/1209119352060519/f

Description:
This change adds a pixel that is fired whenever a user activates any history link in the Privacy Feed.
  • Loading branch information
ayoy authored Jan 9, 2025
1 parent 3553071 commit e13c743
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions DuckDuckGo/HomePage/View/HomePageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ final class HomePageViewController: NSViewController {

func createRecentlyVisitedModel() -> HomePage.Models.RecentlyVisitedModel {
return .init { [weak self] url in
PixelKit.fire(GeneralPixel.privacyFeedHistoryLinkOpened, frequency: .dailyAndCount)
self?.openUrl(url)
}
}
Expand Down
6 changes: 6 additions & 0 deletions DuckDuckGo/Statistics/GeneralPixel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ enum GeneralPixel: PixelKitEventV2 {
case duckPlayerYouTubeOverlayNavigationClosed
case duckPlayerYouTubeNavigationIdle30

// Temporary Home Page Pixels
case privacyFeedHistoryLinkOpened

// Dashboard
case dashboardProtectionAllowlistAdd(triggerOrigin: String?)
case dashboardProtectionAllowlistRemove(triggerOrigin: String?)
Expand Down Expand Up @@ -695,6 +698,9 @@ enum GeneralPixel: PixelKitEventV2 {
case .duckPlayerYouTubeNavigationIdle30:
return "duckplayer_youtube_overlay_idle-30"

case .privacyFeedHistoryLinkOpened:
return "privacy_feed_history_link_opened"

case .dashboardProtectionAllowlistAdd:
return "mp_wla"
case .dashboardProtectionAllowlistRemove:
Expand Down

0 comments on commit e13c743

Please sign in to comment.