Media Analytics : Ausha Audio Player

Hello,

I recently integrated Ausha iframes on my site. These are podcast audio players. The iframe contains a tag

Have a nice day,
Lethimok

Hi @Klethimonier. I hope you are doing well.

If your website uses the same Ausha, you need to let the media tracker know as soon as the Ausha player is available by calling the MediaAnalytics::scanForMedia method:

_paq.push(['MediaAnalytics::scanForMedia']);

I hope this helps. Please let us know how it goes.

Hello,

the “scan for media” does not seem to work on our pages integrating an Ausha player.
In parallel with the forum, I contacted Matomo premium support who told me this:

Currently, Media Analytics in Matomo supports a wide range of players, including HTML5 audio and video players, YouTube, SoundCloud, Vimeo, JW Player, and others like VideoJS, MediaElement.js, and Brightcove. These are supported out of the box if they are HTML5-based.

Since the Ausha player is embedded as an iframe, it depends on what data the iframe exposes to the parent page. Unfortunately, it seems the Ausha iframe does not expose sufficient data for Media Analytics to track it natively.

One alternative is to check if Ausha provides an API to retrieve stats from their platform. Additionally, you can track media actions manually in Matomo using the HTTP API. For more information, please refer to this guide: Media Analytics HTTP Tracking API Reference.

This approach allows you to log events (e.g., play, pause, or stop) manually in Matomo, depending on what interactions are available via Ausha.

Finally, the only solution I could find was to overload the native html5 player with CSS and JS to make it look as close as possible to the Ausha player :joy: :smiling_face_with_tear:

Have a nice day,
Lethimok

1 Like