Title: evaluating user&#8217;s H5P behaviour
Last modified: April 29, 2021

---

# evaluating user’s H5P behaviour

 *  [eicken71](https://wordpress.org/support/users/eicken71/)
 * (@eicken71)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/evaluating-users-h5p-behaviour/)
 * My website combines H5P with gamipress. H5P erxercises are open for all visitors,
   but if they register as users, they can earn points by completing H5P exercises
   with definied minimum scores.
    Now, it frequently happens that people register
   but seem to do nothing afterwards. This puzzles me. One explanation would be 
   that the H5P exercises I created are too difficult to reach the defined minimum
   scores. In this case their activities will not be recoreded in the gamipress 
   log, so I cannot know whether they tried in vain to solve the H5P tasks. H5P,
   however, apparently logs any completion of an exercise, regardless of the score
   reached. There is a menu item “My results” which shows me which exercises I completed
   while being logged in as administrator. Obviously, this information is useless
   to me. If, however, I could access this H5P log for all users, possibly with 
   user anonymity, I could see which exercises are often completed without reaching
   full score. Is there any way to do this? Perhaps by directly accessing the MySQL
   database? Searching there, however, I could not find the relevant set of data.
   If it is there, what is it called?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fevaluating-users-h5p-behaviour%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/evaluating-users-h5p-behaviour/#post-14381439)
 * I think the easiest way is if you are able to sign the user in somehow so that`
   wp_get_current_user()` would return a user object.
 * Here is the variable that determines if a score will be posted: [https://github.com/h5p/h5p-wordpress-plugin/blob/master/public/class-h5p-plugin.php#L1188](https://github.com/h5p/h5p-wordpress-plugin/blob/master/public/class-h5p-plugin.php#L1188)
   
   If you change this to always be `true` a score will always be posted.
 * Here is where the AJAX request saves the score to the database: [https://github.com/h5p/h5p-wordpress-plugin/blob/master/admin/class-h5p-plugin-admin.php#L757](https://github.com/h5p/h5p-wordpress-plugin/blob/master/admin/class-h5p-plugin-admin.php#L757)
   
   As you can see, a valid user id is required to keep the score unique.

Viewing 1 replies (of 1 total)

The topic ‘evaluating user’s H5P behaviour’ is closed to new replies.

 * ![](https://ps.w.org/h5p/assets/icon.svg?rev=986118)
 * [Interactive Content – H5P](https://wordpress.org/plugins/h5p/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/h5p/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/h5p/)
 * [Active Topics](https://wordpress.org/support/plugin/h5p/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/h5p/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/h5p/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/evaluating-users-h5p-behaviour/#post-14381439)
 * Status: not resolved