Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit cf906c6

Browse files
Removed the VPN waitlist beta pixels (#2555)
Task/Issue URL: https://app.asana.com/0/0/1207008939337649/f iOS PR: ## Description Removes all VPN waitlist beta pixels.
1 parent 885b869 commit cf906c6

10 files changed

+3
-56
lines changed

DuckDuckGo/Application/AppDelegate.swift

-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,6 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
586586
#if NETWORK_PROTECTION
587587
if response.notification.request.identifier == NetworkProtectionWaitlist.notificationIdentifier {
588588
if NetworkProtectionWaitlist().readyToAcceptTermsAndConditions {
589-
DailyPixel.fire(pixel: .networkProtectionWaitlistNotificationTapped, frequency: .dailyAndCount)
590589
NetworkProtectionWaitlistViewControllerPresenter.show()
591590
}
592591
}

DuckDuckGo/Fire/View/FireViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//
1818

1919
import Cocoa
20-
@preconcurrency import Lottie
20+
import Lottie
2121
import Combine
2222

2323
@MainActor

DuckDuckGo/MainWindow/MainViewController.swift

-9
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ final class MainViewController: NSViewController {
199199
presentWaitlistThankYouPromptIfNecessary()
200200

201201
#if NETWORK_PROTECTION
202-
sendActiveNetworkProtectionWaitlistUserPixel()
203202
refreshNetworkProtectionMessages()
204203
#endif
205204

@@ -450,14 +449,6 @@ final class MainViewController: NSViewController {
450449
NSApp.mainMenuTyped.stopMenuItem.isEnabled = selectedTabViewModel.isLoading
451450
}
452451

453-
#if NETWORK_PROTECTION
454-
private func sendActiveNetworkProtectionWaitlistUserPixel() {
455-
if DefaultNetworkProtectionVisibility().waitlistIsOngoing {
456-
DailyPixel.fire(pixel: .networkProtectionWaitlistUserActive, frequency: .dailyOnly)
457-
}
458-
}
459-
#endif
460-
461452
func presentWaitlistThankYouPromptIfNecessary() {
462453
guard let window = self.view.window else {
463454
assertionFailure("Couldn't get main view controller's window")

DuckDuckGo/NavigationBar/View/MoreOptionsMenu.swift

-2
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,6 @@ final class MoreOptionsMenu: NSMenu {
364364
}
365365
}
366366
#endif
367-
368-
DailyPixel.fire(pixel: .networkProtectionWaitlistEntryPointMenuItemDisplayed, frequency: .dailyAndCount, includeAppVersionParameter: true)
369367
} else {
370368
networkProtectionFeatureVisibility.disableForWaitlistUsers()
371369
}

DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift

-2
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,10 @@ final class NavigationBarViewController: NSViewController {
344344

345345
if NetworkProtectionWaitlist().shouldShowWaitlistViewController {
346346
NetworkProtectionWaitlistViewControllerPresenter.show()
347-
DailyPixel.fire(pixel: .networkProtectionWaitlistIntroDisplayed, frequency: .dailyAndCount)
348347
} else if NetworkProtectionKeychainTokenStore().isFeatureActivated {
349348
popovers.toggleNetworkProtectionPopover(usingView: networkProtectionButton, withDelegate: networkProtectionButtonModel)
350349
} else {
351350
NetworkProtectionWaitlistViewControllerPresenter.show()
352-
DailyPixel.fire(pixel: .networkProtectionWaitlistIntroDisplayed, frequency: .dailyAndCount)
353351
}
354352
}
355353
#endif

DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/NetworkProtectionNavBarButtonModel.swift

-3
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ final class NetworkProtectionNavBarButtonModel: NSObject, ObservableObject {
180180
let networkProtectionVisibility = DefaultNetworkProtectionVisibility()
181181
if networkProtectionVisibility.isNetworkProtectionBetaVisible() {
182182
if NetworkProtectionWaitlist().readyToAcceptTermsAndConditions {
183-
DailyPixel.fire(pixel: .networkProtectionWaitlistEntryPointToolbarButtonDisplayed,
184-
frequency: .dailyOnly,
185-
includeAppVersionParameter: true)
186183
showButton = true
187184
return
188185
}

DuckDuckGo/Statistics/PixelEvent.swift

-24
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,6 @@ extension Pixel {
165165
case vpnBreakageReport(category: String, description: String, metadata: String)
166166

167167
// VPN
168-
case networkProtectionWaitlistUserActive
169-
case networkProtectionWaitlistEntryPointMenuItemDisplayed
170-
case networkProtectionWaitlistEntryPointToolbarButtonDisplayed
171-
case networkProtectionWaitlistIntroDisplayed
172-
case networkProtectionWaitlistNotificationShown
173-
case networkProtectionWaitlistNotificationTapped
174-
case networkProtectionWaitlistTermsAndConditionsDisplayed
175-
case networkProtectionWaitlistTermsAndConditionsAccepted
176168
case networkProtectionRemoteMessageDisplayed(messageID: String)
177169
case networkProtectionRemoteMessageDismissed(messageID: String)
178170
case networkProtectionRemoteMessageOpened(messageID: String)
@@ -573,22 +565,6 @@ extension Pixel.Event {
573565
case .vpnBreakageReport:
574566
return "m_mac_vpn_breakage_report"
575567

576-
case .networkProtectionWaitlistUserActive:
577-
return "m_mac_netp_waitlist_user_active"
578-
case .networkProtectionWaitlistEntryPointMenuItemDisplayed:
579-
return "m_mac_netp_imp_settings_entry_menu_item"
580-
case .networkProtectionWaitlistEntryPointToolbarButtonDisplayed:
581-
return "m_mac_netp_imp_settings_entry_toolbar_button"
582-
case .networkProtectionWaitlistIntroDisplayed:
583-
return "m_mac_netp_imp_intro_screen"
584-
case .networkProtectionWaitlistNotificationShown:
585-
return "m_mac_netp_ev_waitlist_notification_shown"
586-
case .networkProtectionWaitlistNotificationTapped:
587-
return "m_mac_netp_ev_waitlist_notification_launched"
588-
case .networkProtectionWaitlistTermsAndConditionsDisplayed:
589-
return "m_mac_netp_imp_terms"
590-
case .networkProtectionWaitlistTermsAndConditionsAccepted:
591-
return "m_mac_netp_ev_terms_accepted"
592568
case .networkProtectionRemoteMessageDisplayed(let messageID):
593569
return "m_mac_netp_remote_message_displayed_\(messageID)"
594570
case .networkProtectionRemoteMessageDismissed(let messageID):

DuckDuckGo/Statistics/PixelParameters.swift

-8
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,6 @@ extension Pixel.Event {
124124
.duckPlayerSettingAlways,
125125
.duckPlayerSettingNever,
126126
.duckPlayerSettingBackToDefault,
127-
.networkProtectionWaitlistEntryPointMenuItemDisplayed,
128-
.networkProtectionWaitlistEntryPointToolbarButtonDisplayed,
129-
.networkProtectionWaitlistNotificationShown,
130-
.networkProtectionWaitlistNotificationTapped,
131-
.networkProtectionWaitlistTermsAndConditionsDisplayed,
132-
.networkProtectionWaitlistTermsAndConditionsAccepted,
133-
.networkProtectionWaitlistUserActive,
134-
.networkProtectionWaitlistIntroDisplayed,
135127
.networkProtectionRemoteMessageDisplayed,
136128
.networkProtectionRemoteMessageDismissed,
137129
.networkProtectionRemoteMessageOpened,

DuckDuckGo/Waitlist/Waitlist.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ struct NetworkProtectionWaitlist: Waitlist {
222222
do {
223223
try await networkProtectionCodeRedemption.redeem(inviteCode)
224224
NotificationCenter.default.post(name: .networkProtectionWaitlistAccessChanged, object: nil)
225-
sendInviteCodeAvailableNotification {
226-
DailyPixel.fire(pixel: .networkProtectionWaitlistNotificationShown, frequency: .dailyAndCount)
227-
}
225+
sendInviteCodeAvailableNotification(completion: nil)
228226
completion(nil)
229227
} catch {
230228
assertionFailure("Failed to redeem invite code")

DuckDuckGo/Waitlist/WaitlistTermsAndConditionsActionHandler.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ struct NetworkProtectionWaitlistTermsAndConditionsActionHandler: WaitlistTermsAn
3636
var acceptedTermsAndConditions: Bool
3737

3838
func didShow() {
39-
DailyPixel.fire(pixel: .networkProtectionWaitlistTermsAndConditionsDisplayed, frequency: .dailyAndCount)
39+
// Intentional no-op
4040
}
4141

4242
mutating func didAccept() {
4343
acceptedTermsAndConditions = true
4444
// Remove delivered NetP notifications in case the user didn't click them.
4545
UNUserNotificationCenter.current().removeDeliveredNotifications(withIdentifiers: [NetworkProtectionWaitlist.notificationIdentifier])
46-
47-
DailyPixel.fire(pixel: .networkProtectionWaitlistTermsAndConditionsAccepted, frequency: .dailyAndCount)
4846
}
4947
}
5048

0 commit comments

Comments
 (0)