Skip to content

Conversation

@maximzavadskiy
Copy link
Contributor

fix(PLAY-1179): send usage analytics only when media_id is loaded

@maximzavadskiy maximzavadskiy force-pushed the fix/PLAY-1179/usage_analytics_correction branch 2 times, most recently from f46bbc6 to b720c00 Compare September 19, 2025 15:11
@maximzavadskiy maximzavadskiy marked this pull request as ready for review September 19, 2025 15:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes analytics tracking to only send usage events when a media_id is loaded, preventing analytics events from being sent for media without proper identifiers.

  • Adds a check to ensure media_id or stream_target_id exists before sending analytics
  • Implements event listener on SOURCE event to track when media is loaded
  • Adds once-only tracking to prevent duplicate analytics events

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@ondreian ondreian left a comment

Choose a reason for hiding this comment

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

🚢

@maximzavadskiy maximzavadskiy force-pushed the fix/PLAY-1179/usage_analytics_correction branch from 1176664 to b122ada Compare September 19, 2025 15:17
@maximzavadskiy maximzavadskiy merged commit 2a6eeda into main Sep 22, 2025
1 check passed
@maximzavadskiy maximzavadskiy deleted the fix/PLAY-1179/usage_analytics_correction branch September 22, 2025 09:11
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