From f27ba719175c65c2081ac8d8834bbdd42ec5f930 Mon Sep 17 00:00:00 2001 From: Diego Rey Mendez Date: Fri, 14 Jun 2024 23:50:09 +0200 Subject: [PATCH] Make the VPN uninstall pixels daily and count (#2854) Task/Issue URL: https://app.asana.com/0/0/1207541445344648/f Description Makes the VPN uninstall attempt pixels daily and count. --- DuckDuckGo/Waitlist/VPNUninstaller.swift | 2 +- DuckDuckGoVPN/VPNUninstaller.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DuckDuckGo/Waitlist/VPNUninstaller.swift b/DuckDuckGo/Waitlist/VPNUninstaller.swift index 20d3b621a4..ef3a39bc50 100644 --- a/DuckDuckGo/Waitlist/VPNUninstaller.swift +++ b/DuckDuckGo/Waitlist/VPNUninstaller.swift @@ -165,7 +165,7 @@ final class VPNUninstaller: VPNUninstalling { /// @MainActor func uninstall(removeSystemExtension: Bool) async throws { - pixelKit?.fire(IPCUninstallAttempt.begin) + pixelKit?.fire(IPCUninstallAttempt.begin, frequency: .dailyAndCount) do { // We can do this optimistically as it has little if any impact. diff --git a/DuckDuckGoVPN/VPNUninstaller.swift b/DuckDuckGoVPN/VPNUninstaller.swift index 2d675fbee4..1ae6a706cb 100644 --- a/DuckDuckGoVPN/VPNUninstaller.swift +++ b/DuckDuckGoVPN/VPNUninstaller.swift @@ -48,7 +48,7 @@ final class VPNUninstaller: VPNUninstalling { } func uninstall(includingSystemExtension: Bool) async throws { - pixelKit?.fire(VPNUninstallAttempt.begin) + pixelKit?.fire(VPNUninstallAttempt.begin, frequency: .dailyAndCount) do { try await removeSystemExtension()