Moodle log entries

Hi,

Thank you for the Moodle H5P plugin, it is definitely way ahead of any of the other content plugins available for moodle. 

I am hoping someone can address some issues I am seeing with what is being logged by the H5P activities. I have embedded H5P actvities in my courses. I am using Moodle 3.4 and H5P 1.9. When a course is viewed automatic log entries for each of the H5P activities in that module are created so it reads like the activity has been accessed when it wasn't. There is no way to distibguish these entries for legitiamate access/ interaction with the activity as any subsequent entry has the same description and other data. For example I have interactive videos in each module and they are logged as viewed when the module opens and also when played. I would like to be able to see from the logs what activities have actually been accessed by users. Please advise how this might be possible?

Happy to update code where needed to achieve this?!

Thanks!
Claire
 

thomasmars's picture

Hi Claire,

If you have embedded content on your course page the content will be marked as "viewed" when it is loaded, so this is the expected behaviour. If you do not wish the content to be loaded you can force the user to click a link to the actual assignment to take it, or develop logic for loading the content conditionally. H5P does not record any other events through Moodle's logging api for H5P content.

We do however dispatch "xAPI"-events from the H5P content types if you wish to pick these up and dispatch logging API events to Moodle when these xAPI events are caught. You can read more about xAPI events at https://h5p.org/documentation/x-api.