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

Fix counting impressions based using distinct play_id instead of page_view_id (close #72) #73

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

matus-tomlein
Copy link
Contributor

Issue #72

Description & motivation

This PR changes how impressions are counted in the media stats table – instead of counting the distinct page views, it counts the distinct play ids (so the player instances). This has the advantage that if more than one video is displayed on the page, the impressions are counted for each video and the subsequent play rate is counted correctly.

This causes a change in the data which might require users to rerun their models, so I think it is a breaking change. To be honest, nobody asked as for this, so we are not under pressure to release this if we have doubts about whether this is what we want or about the breaking change.

Checklist

  • I have verified that these changes work locally
  • I have updated the README.md (if applicable)
  • I have added tests & descriptions to my models (and macros if applicable)
  • I have raised a documentation PR if applicable (Link here if required)

@matus-tomlein matus-tomlein marked this pull request as ready for review June 14, 2024 11:12
@matus-tomlein matus-tomlein requested a review from a team as a code owner June 14, 2024 11:12
Copy link
Contributor

@rlh1994 rlh1994 left a comment

Choose a reason for hiding this comment

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

Again just change target branch

@matus-tomlein matus-tomlein changed the base branch from main to release/0.8.0 June 18, 2024 08:48
@matus-tomlein matus-tomlein changed the title Fix counting impressions based using distinct play_id instead of page_view_id (close#72) Fix counting impressions based using distinct play_id instead of page_view_id (close #72) Jun 19, 2024
@matus-tomlein matus-tomlein merged commit c699ee2 into release/0.8.0 Jun 19, 2024
5 checks passed
@matus-tomlein matus-tomlein deleted the issue/72-fix_impressions branch June 19, 2024 13:42
matus-tomlein added a commit that referenced this pull request Jun 20, 2024
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.

2 participants