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

[FEATURE] [FRONTEND] Increment chapter view count only if user has engaged with the H5P content #675

Open
3 tasks
0xMurage opened this issue Apr 1, 2021 · 3 comments

Comments

@0xMurage
Copy link
Collaborator

0xMurage commented Apr 1, 2021

Describe the user story:

The number of chapter views should be posted to the backend only if the user has started engaging with the content through the H5P player.

Tasks (where applicable)

  • Listen to interaction xAPI event emitted by the player at an appropriate time depending on the content type. Reference available here
  • Post view count only if the identified statement (above) is emitted by the player

Acceptance Criteria

  • View count doesn't increment when a user (only) visits the chapter page without interacting with chapter H5P content

Screenshots where applicable

@mosesokemwa
Copy link
Collaborator

Currently we have 3 triggers for a counter

  • On page load of a chapter page
  • Spent at least 10-30secs a chapter page
  • And lastly, if the chapter is completed

The final view count the user see's is based on the 2nd trigger, and the other two we need for analytics.

How does this ticket seek to improve the above?

@mimidotsuser

@0xMurage
Copy link
Collaborator Author

0xMurage commented Apr 1, 2021

@mosesokemwa this ticket seeks to ensure the user plays the content before we count it as a view. Spending some seconds on the page usually doesn't translate to the user having started viewing the H5P content

@mosesokemwa
Copy link
Collaborator

Wasn't clear in ticket what changes you were planning on making. I agree that a timer does not necessarily represent a correct page view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants