From 99b12dd7b0cd82db1a05694af41b924f300dd154 Mon Sep 17 00:00:00 2001 From: Diego Rey Mendez Date: Thu, 21 Mar 2024 18:23:45 +0100 Subject: [PATCH] Makes some changes to a pixel so it's daily and count --- DuckDuckGo/Statistics/PixelEvent.swift | 4 ++-- .../Waitlist/Views/WaitlistThankYouPromptPresenter.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DuckDuckGo/Statistics/PixelEvent.swift b/DuckDuckGo/Statistics/PixelEvent.swift index 518c133738..723284e4b0 100644 --- a/DuckDuckGo/Statistics/PixelEvent.swift +++ b/DuckDuckGo/Statistics/PixelEvent.swift @@ -656,8 +656,8 @@ extension Pixel.Event { // MARK: - Subscription case .privacyProEnabled: return "m_mac_\(appDistribution)_privacy-pro_enabled" - case .privacyProBetaUserThankYouVPN: return "m_mac_\(appDistribution)_privacy-pro_promotion-dialog_shown_vpn_u" - case .privacyProBetaUserThankYouDBP: return "m_mac_\(appDistribution)_privacy-pro_promotion-dialog_shown_dbp_u" + case .privacyProBetaUserThankYouVPN: return "m_mac_\(appDistribution)_privacy-pro_promotion-dialog_shown_vpn" + case .privacyProBetaUserThankYouDBP: return "m_mac_\(appDistribution)_privacy-pro_promotion-dialog_shown_dbp" case .privacyProSubscriptionActive: return "m_mac_\(appDistribution)_privacy-pro_app_subscription_active" case .privacyProOfferScreenImpression: return "m_mac_\(appDistribution)_privacy-pro_offer_screen_impression" case .privacyProPurchaseAttempt: return "m_mac_\(appDistribution)_privacy-pro_terms-conditions_subscribe_click" diff --git a/DuckDuckGo/Waitlist/Views/WaitlistThankYouPromptPresenter.swift b/DuckDuckGo/Waitlist/Views/WaitlistThankYouPromptPresenter.swift index 8fa599cbdc..d3669668ab 100644 --- a/DuckDuckGo/Waitlist/Views/WaitlistThankYouPromptPresenter.swift +++ b/DuckDuckGo/Waitlist/Views/WaitlistThankYouPromptPresenter.swift @@ -63,11 +63,11 @@ final class WaitlistThankYouPromptPresenter { if isPIRBetaTester() { saveDidShowPromptCheck() - Pixel.fire(Pixel.Event.privacyProBetaUserThankYouDBP, limitTo: .initial) + DailyPixel.fire(pixel: Pixel.Event.privacyProBetaUserThankYouDBP, frequency: .dailyAndCount) presentPIRThankYouPrompt(in: window) } else if isVPNBetaTester() { saveDidShowPromptCheck() - Pixel.fire(Pixel.Event.privacyProBetaUserThankYouVPN, limitTo: .initial) + DailyPixel.fire(pixel: Pixel.Event.privacyProBetaUserThankYouVPN, frequency: .dailyAndCount) presentVPNThankYouPrompt(in: window) } }