Skip to content

Commit

Permalink
Makes some changes to a pixel so it's daily and count
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoreymendez committed Mar 21, 2024
1 parent 5e0580f commit 99b12dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo/Statistics/PixelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 99b12dd

Please sign in to comment.