opencast-ilias / OpenCast

Opencast plugin for ILIAS LMS. The plugin shows a Opencast series as an ILIAS object. This version of the ILIAS plugin for Opencast is operated and developed collaboratively by a community. The University of Bern acts as coordinative maintainer.
GNU General Public License v3.0
13 stars 14 forks source link

Event title information is not sent to Matomo Media Analytics plugin #323

Closed snoesberger closed 1 month ago

snoesberger commented 3 months ago

Describe the bug In order for the Matomo Media Analytics plugin to work correctly, the paella player user tracking plugin needs to send a video title information. Without this information, all statistics within the Matomo Media Analytics plugin will be combined under a video with the title "unknown". At the moment there is no information about the title being sent from the OpenCast plugin to Matomo at all. According to this documentation the title information is extracted from one of these sources:

Media Analytics will detect the media title by searching for the following pieces of information:

  • firstly, the data-matomo-title HTML attribute.
  • next, the data-piwik-title HTML attribute.
  • Media title from YouTube / Vimeo player.
  • title HTML attribute.
  • finally, the alt HTML attribute.

To Reproduce Steps to reproduce the behavior:

  1. Matomo with Media Analytics active
  2. ILIAS Opencast Plugin Paella Player configured to send data to Matomo
  3. Play different videos
  4. All statistics in Matomo summarized under "unknown"

Expected behavior Would it be possible to add the Opencast event-ID with the mentioned HTML attribute to the paella player within the Opencast Plugin? (I'd prefer to use the event ID instead of the event title to be sure to have a unique identifier.)

Environment (please complete the following information):

snoesberger commented 2 months ago

I have found a solution to set the title information for the Media Analytics plugin directly in the paella user tracking plugin. My suggestions can be found in this PR: https://github.com/polimediaupv/paella-user-tracking/pull/11

snoesberger commented 1 month ago

@ferishili as mentioned in the matrix chat: The new version 1.42.5 of the paella-user-tracking plugin is fixing this issue. Can you please include this version into the ILIAS-plugin?