Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Conversation

@ayoy
Copy link
Collaborator

@ayoy ayoy commented Aug 21, 2023

Task/Issue URL: https://app.asana.com/0/1177771139624306/1205296919343346/f

Description:
This change adds several pixels to learn about Duck Player usage patterns.

Steps to test this PR:

  1. Run the app from Xcode
  2. Enable Pixel Logging from Main Menu -> Debug
  3. Go to Settings -> Duck Player
  4. Select "Always open YouTube videos Duck Player", verify that m.mac.duck-player.setting.always is fired
  5. Select "Never use Duck Player", verify that m.mac.duck-player.setting.never is fired
  6. Select the default option, verify that m.mac.duck-player.setting.back-to-default is fired
  7. Go to YouTube and to a video page.
  8. Click "Watch here" and verify that no pixels are fired
  9. Refresh the page, click "Watch in Duck Player" and verify that m.mac.duck-player.view-from.youtube.main-overlay was fired and also that m.mac.duck-player.daily-unique-view was fired
  10. Refresh the page, check "Remember my choice", click "Watch in Duck Player" and verify that m.mac.duck-player.view-from.youtube.main-overlay was fired, m.mac.duck-player.setting.always was fired, and also that m.mac.duck-player.daily-unique-view was not fired
  11. Search for something on SERP
  12. Open videos vertical
  13. Click on any video, verify that m.mac.duck-player.view-from.serp was fired
  14. Go to Settings -> Duck Player, switch back to the default setting.
  15. Refresh videos vertical, click on any video, click "Watch in Duck Player" and verify that m.mac.duck-player.view-from.serp was fired
  16. Go back to videos verticall, click on any video, check "Remember my choice" and click "Watch in Duck Player", verify that m.mac.duck-player.setting.always and m.mac.duck-player.view-from.serp were fired
  17. Go to YouTube and click on a video; verify that m.mac.duck-player.view-from.youtube.automatic was fired.
  18. Open YouTube video directly: https://www.youtube.com/watch?v=dQw4w9WgXcQ; verify that m.mac.duck-player.view-from.other was fired.
  19. Repeat the previous step with the following URL: https://youtu.be/dQw4w9WgXcQ; verify that m.mac.duck-player.view-from.other was fired.
  20. Disable Duck Player, open YouTube URL and verify that no pixels are fired.
  21. Set Duck Player to the default setting, go to youtube.com, click on a dax icon on a thumbnail overlay. Verify that m.mac.duck-player.view-from.youtube.hover-button was fired.

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

Copy link
Collaborator

@SabrinaTardio SabrinaTardio left a comment

Choose a reason for hiding this comment

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

LGTM 🥇

@ayoy ayoy assigned ayoy and unassigned SabrinaTardio Aug 22, 2023
@ayoy ayoy merged commit 23a6134 into develop Aug 22, 2023
@ayoy ayoy deleted the dominik/duck-player-pixels branch August 22, 2023 08:49
diegoreymendez pushed a commit that referenced this pull request Aug 23, 2023
Task/Issue URL: https://app.asana.com/0/1177771139624306/1205296919343346/f

Description:
This change adds several pixels to learn about Duck Player usage patterns.
samsymons added a commit that referenced this pull request Aug 23, 2023
# By Diego Rey Mendez (7) and others
# Via Sam Symons (2) and others
* develop: (26 commits)
  Improve Sync-related database cleaning logic (#1529)
  Update onboarding-related error states (#1504)
  Prevents launching our menu agent without an auth code. (#1516)
  Autofill UI letter icons (#1535)
  Cleans up some code (#1517)
  Revert "Autofill Letter Icons" (#1534)
  Adds remote pre-commit installer, which includes automatic fix for linter (#1369)
  Autofill Letter Icons (#1475)
  change context menu for mailto links (#1513)
  Updates the version to 1.53.1
  Updated the embedded files for 1.53.1
  Update the phased rollout tester to avoid caching the config (#1520)
  Require Duck Player scheme URL to be passed from YouTube Overlay User Script (#1519)
  Add pixels related to Duck Player usage (#1515)
  only allow error reloads on http(s) urls (#1523)
  Standardize TDS Loading Error handling (#1524)
  Move pixel sender logic into the main view controller (#1528)
  Update the phased rollout tester to avoid caching the config (#1520)
  Set version to 1.52.3.
  Move pixel sender logic into the main view controller (#1528)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	DuckDuckGo/AppDelegate/AppDelegate.swift
#	DuckDuckGo/Common/Localizables/UserText.swift
#	DuckDuckGo/Common/Utilities/UserDefaultsWrapper.swift
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants