Essential Grid & Matomo Media Analytics

Hi there,

we use essential grid to show videos in a lightbox.
Unfortunately, Matomo Media analytics does not recognize the player and does not track the playback.
Jason from matomo team wrote:
"You just need to use _paq.push([‘MediaAnalytics::scanForMedia’]); there shouldn’t be a need for your to use the element id. When you click on the video it probably runs a function to open the player? At the end of that function you would want to scan for the media. "

I tried this in
Essential Grid -> Settings -> API / JavaScript with no success.
Any idea, how to implement the line above?
https://developer.matomo.org/guides/media-analytics/reference

Thank you,
Michael

Hello Michael,

Thanks for writing in! Have you installed the Matomo plugin? You can get it here: https://wordpress.org/plugins/search/Matomo/

And then you can insert the JS line in your grid settings. You may need further assistance from the creators of the plugin for further assistance.

Thanks.

Yes, I have installed the plugin.
Where should the JS line go? Is this:
Essential Grid -> Settings -> API / JavaScript with no success.
the right place? Are these scripts called after the end of the player function?

"When you click on the video it probably runs a function to open the player? At the end of that function you would want to scan for the media. “”

Thank you.

Hi @mickna,

Would you mind sharing your website credentials so that we can check and confirm? To do that, please give us the following information in a Secure Note.

  • WordPress Login URL
  • Admin level username and password

You can find the Secure Note button at the bottom of your posts.

Thank you.

Thank you so much for investigating!
Secure Note is added.

Michael

Hello Michael,

You need to access the lightbox function that opens the player. Please check out these documentations:

Be advised that custom coding is beyond the scope of our support. You may need further assistance from a 3rd party developer who are an expert with these plugins.

Thank you for your understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.