From 44695726a4da0bc889df602d966964ef5b76d3db Mon Sep 17 00:00:00 2001 From: Elle Sullivan Date: Mon, 28 Oct 2024 14:18:03 +0000 Subject: [PATCH] Remove noisy PIR pixels (#3459) Task/Issue URL: https://app.asana.com/0/1203581873609357/1207850832493111/f Tech Design URL: CC: **Description**: V simple, removes a couple of pixels that fired a lot and one user in particular has not been happy about **Steps to test this PR**: 1. Check PIR still works **Definition of Done**: * [ ] Does this PR satisfy our [Definition of Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)? --- ###### Internal references: [Pull Request Review Checklist](https://app.asana.com/0/1202500774821704/1203764234894239/f) [Software Engineering Expectations](https://app.asana.com/0/59792373528535/199064865822552) [Technical Design Template](https://app.asana.com/0/59792373528535/184709971311943) [Pull Request Documentation](https://app.asana.com/0/1202500774821704/1204012835277482/f) --- .../DBP/DataBrokerProtectionFeatureGatekeeper.swift | 2 -- .../DBP/DataBrokerProtectionPixelsHandler.swift | 2 -- .../Pixels/DataBrokerProtectionPixels.swift | 12 ------------ 3 files changed, 16 deletions(-) diff --git a/DuckDuckGo/DBP/DataBrokerProtectionFeatureGatekeeper.swift b/DuckDuckGo/DBP/DataBrokerProtectionFeatureGatekeeper.swift index 0affd1fb34..82979817cc 100644 --- a/DuckDuckGo/DBP/DataBrokerProtectionFeatureGatekeeper.swift +++ b/DuckDuckGo/DBP/DataBrokerProtectionFeatureGatekeeper.swift @@ -118,12 +118,10 @@ private extension DefaultDataBrokerProtectionFeatureGatekeeper { func firePrerequisitePixelsAndLogIfNecessary(hasEntitlements: Bool, isAuthenticatedResult: Bool) { if !hasEntitlements { - pixelHandler.fire(.gatekeeperEntitlementsInvalid) Logger.dataBrokerProtection.error("DBP feature Gatekeeper: Entitlement check failed") } if !isAuthenticatedResult { - pixelHandler.fire(.gatekeeperNotAuthenticated) Logger.dataBrokerProtection.error("DBP feature Gatekeeper: Authentication check failed") } } diff --git a/DuckDuckGo/DBP/DataBrokerProtectionPixelsHandler.swift b/DuckDuckGo/DBP/DataBrokerProtectionPixelsHandler.swift index 7051c22287..cc4c928d89 100644 --- a/DuckDuckGo/DBP/DataBrokerProtectionPixelsHandler.swift +++ b/DuckDuckGo/DBP/DataBrokerProtectionPixelsHandler.swift @@ -105,8 +105,6 @@ public class DataBrokerProtectionPixelsHandler: EventMapping