Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fire a pixel when removing the VPN configuration #3014

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

samsymons
Copy link
Contributor

@samsymons samsymons commented Jul 1, 2024

Task/Issue URL: https://app.asana.com/0/414235014887631/1207698850203829/f
Tech Design URL:
CC:

Description:

This PR adds a pixel that reports when the VPN configuration has been removed, and why.

Steps to test this PR:

  1. Install the VPN and then sign out of Privacy Pro
  2. Check that you see a pixel in the logs, and that the configuration was removed
  3. Check the codebase to make sure we aren't calling removeFromPreferences() anywhere outside of the tunnel controller, to make sure there are no paths that aren't covered by the pixel
  4. Check that the removal reasons make sense

Definition of Done (Internal Only):

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than '

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

Include the reason for the removal, to allow for debugging.
Comment on lines -539 to -549
private func stopTunnelAndShowThankYouMessagingIfNeeded() {
if accountManager.isUserAuthenticated {
return
}

if AppDependencyProvider.shared.vpnFeatureVisibility.isPrivacyProLaunched() && !accountManager.isUserAuthenticated {
Task {
await self.stopAndRemoveVPN(with: "subscription-check")
}
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bit outdated. We no longer show "thank you" messaging, and this function was checking isUserAuthenticated twice. I moved this into stopAndRemoveVPNIfNotAuthenticated since that's really what we were doing here.

@samsymons samsymons merged commit 53a405f into main Jul 1, 2024
14 checks passed
@samsymons samsymons deleted the sam/vpn-deactivation-pixel branch July 1, 2024 19:59
samsymons added a commit that referenced this pull request Jul 1, 2024
* main:
  Fire a pixel when removing the VPN configuration (#3014)
  Release 7.127.0-0 (#3020)
  point to BSK branch (#3016)
  [DuckPlayer] - 3. URL management & FE comms (#3007)
  Bump BSK version (#3011)
  New Tab Page layout and base elements (#3008)
  Remove Privacy Pro from device once expired account is deleted (#3009)
  Improvements to subscription settings (#2959)
  Toggle reports limiter (#3005)
  Duck Player info Modal (#3006)
  Silence tunnel startup noise with no access token available (#2993)
  In case Pending Deletion flag is nil, populate it with 'false' value (#2997)
  VPN uninstall not stopping agent in App Store build (#2999)
  Update VPN metadata to include entitlement (#3002)
samsymons added a commit that referenced this pull request Jul 4, 2024
* main: (24 commits)
  Add pixels to measure baseline for New Tab Page sections (#3024)
  backgrounding UI tests (#3021)
  improve bookmarks and favorites UI tests (#3019)
  [DuckPlayer] - 4. Remote Config (#3018)
  Updates BSK
  Fix issue when cancelling a download (#3030)
  Tentative fix for a crash and connectivity issues (#3027)
  autofill UI tests (#3012)
  scripts for running UI tests (#3000)
  Integrate RemoteMessaging with NewTabPage (#3017)
  Update to iOS 15 deployment target (#3001)
  Fire a pixel when removing the VPN configuration (#3014)
  Release 7.127.0-0 (#3020)
  point to BSK branch (#3016)
  [DuckPlayer] - 3. URL management & FE comms (#3007)
  Bump BSK version (#3011)
  New Tab Page layout and base elements (#3008)
  Remove Privacy Pro from device once expired account is deleted (#3009)
  Improvements to subscription settings (#2959)
  Toggle reports limiter (#3005)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants