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

[DuckPlayer] Overlay Usage Pixels #3565

Merged
merged 4 commits into from
Nov 13, 2024
Merged

Conversation

afterxleep
Copy link
Collaborator

@afterxleep afterxleep commented Nov 11, 2024

Task/Issue URL: https://app.asana.com/0/1204099484721401/1208739766555300/f

Description:

  • Unifies navigation tracking and pixel firing in a single method
  • Adds temporary Overlay usage pixels

Steps to test this PR:

  • Set DuckPlayer to Always ask
  • Filter console messages with duckplayer.youtube.overlay
  • Go to Youtube.com, search for 'Metallica' and open a video (link)
  • While seeing the overlay, tap 'Back'
  • Confirm duckplayer.youtube.overlay.navigation.back is fired.
  • Select another from the list
  • While seeing the overlay, tap 'Reload'
  • Confirm duckplayer.youtube.overlay.navigation.refresh is fired.
  • Scroll down to the recommended videos, and tap another video or a playlist
  • Confirm duckplayer.youtube.overlay.navigation.within-youtube is fired.
  • Tap the "Watch in Duck Player" button
  • Confirm No pixels are fired
  • Go back
  • Tap the URL bar and enter a URL that's not Youtube, such as https://www.example.com
  • Confirm duckplayer.youtube.overlay.navigation.outside-youtube is fired.

Notes:

  • duckplayer.youtube.overlay.navigation.back is only fired when navigating directly to a video. Further back navigation will duckplayer.youtube.overlay.navigation.within-youtube. This is fine as we only want to track bounces on overlay after navigating directly to a video.
  • All the pixels above include unit tests

Implement pixels for youtubeOverlay behavior
@afterxleep afterxleep merged commit 1d14059 into main Nov 13, 2024
68 checks passed
@afterxleep afterxleep deleted the daniel/duckplayer.overlay.pixels branch November 13, 2024 18:52
afterxleep added a commit to duckduckgo/macos-browser that referenced this pull request Nov 14, 2024
Task/Issue URL:
https://app.asana.com/0/1204099484721401/1208739766555303/f

**Description**:
- Adds temporary Overlay usage pixels
- This uses the same approach we use on iOS:
duckduckgo/iOS#3565
samsymons added a commit that referenced this pull request Nov 14, 2024
# By Daniel Bernal (3) and others
# Via GitHub
* main:
  Remove the `ld_classic` build setting (#3575)
  text zoom improvements (#3509)
  Add support for local overrides for feature flags (#3571)
  pixels for bookmarks > favorites tab (#3572)
  Sync BSK with macos (#3561)
  Add possibility to stop page loading (#3553)
  [DuckPlayer] Overlay Usage Pixels (#3565)
  Update pr.yml
  Update pr.yml

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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.

3 participants