-
Notifications
You must be signed in to change notification settings - Fork 5
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
Instead of video title, send video ID to Matomo Media Analytics Plugin #8
Comments
To clarify, the title is currently only sent with Paella 6, and is completely missing with Paella 7. See this comment for more information: #5 (comment) The missing title information was also once a problem in Paella 6 and was fixed with this commit: polimediaupv/paella@2a65b3e |
Thanks @snoesberger for the info. Matomo documentation: Enriching and customising media data tracking |
I'll take a look at this. |
Originally I thought I could change this directly in this project. However, to send the video ID instead of the document title requires changes to the code using |
I don't have the Media Analitycs plugin and I can not test it, but. Is the title currently being sent? According to the documentation:
If the title is currently being sent, you may only need to change the title of the document. document.title = `${videoId} - ${videoTitle}`; or making it configurable in the config. |
We have the Media Analytics plugin installed and at the moment the title information isn't send. The |
Thank you for your links @miesgre ! I have created a solution for the Opencast integration of the paella player by extending
So essentially I am searching for the Is there a better way to access the (I tried to understand the |
I think right now it's the best we can do. The only drawback I see is if at some point the Please make a PR with the changes. |
As I said, I don't have the plugin and I can't test it... |
I have tested @luniki's suggested solution on my local Opencast installation with the Media Analytics plugin and it works fine with single videos. But with multiple videos, no statistics are collected for Media Analytics. I played around a bit and found a solution that works for both single and multiple videos. I also found a way to put the code directly into the pealla-user-tracking plugin instead of the Opencast integration ( |
@miesgre as discussed at the Opencast summit in Zaragoza, here my wish for the Matomo integration.
In the case of the Matomo Media Analytics plugin, the data sent to Matomo includes the title of the video. As the video title is not unique in Opencast, this can cause statistics to be aggregated if several videos have the same name. If we would send the video ID, we could make sure that we collect the statistics for each unique video separately. This would also make it easier to read the statistics for a single unique video from Matomo.
One could also imagine making it configurable whether the video title, ID or other data can be sent.
If you need any further information, please do not hesitate to contact me.
Thanks for having a look at it!
The text was updated successfully, but these errors were encountered: