Matomo Analytics

Scope of support

Matomo Analytics (previously Piwik) is a powerful web analytics platform that gives you 100% data ownership, a Google Analytics alternative that protects your data and your customers' privacy. Matomo Analytics is available for on-premise or cloud set up. Matomo Analytics is a popular web analytics platform, especially in Europe, and can help with compliance to data laws like GDPR.

We have integrated Matomo Analytics into Radiant Media Player so that you can start using Matomo Analytics and our player is a snap. Our integration is based on Matomo Media Analytics and is specially optimised to capture and send video and audio data to Matomo platform.

Matomo Analytics settings

enableMatomoTracking: Boolean

Enables Matomo Analytics for Radiant Media Player, including wiring the player to your Matomo JavaScript tag. Default: false.

dataMatomoTitle: String

By default the player will use contentMetadata.title to tie the player to a Matomo analytics session. If you do not have a contentMetadata.title setting or you want to have a specific title for Matomo you can use dataMatomoTitle. Default: ''.

Player code example

<!DOCTYPE html>
<!-- Our HTML5 document must start with a valid DOCTYPE -->
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>TODO supply a title</title>
  <!-- Include Matomo Analytics tag - use your own from Matomo platform -->
    var _paq = window._paq = window._paq || [];
    (function () {
      var u = "";
      _paq.push(['setTrackerUrl', u + 'matomo.php']);
      _paq.push(['setSiteId', '1']);
      var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
      g.type = 'text/javascript'; g.async = true; g.src = '//'; s.parentNode.insertBefore(g, s);
  <!-- Include Radiant Media Player JavaScript library -->
  <script src=""></script>
  <!-- Add a div container with a unique id - video and UI elements will be appended to this container -->
  <div id="rmp"></div>
  <!-- Set up player configuration options -->
    const src = {
      hls: 'https://your-hls-url.m3u8'
    // Then we set our player settings
    const settings = {
      licenseKey: 'your-license-key',
      src: src,
      width: 640,
      height: 360,
      // Matomo Analytics settings
      enableMatomoTracking: true,
      dataMatomoTitle: 'my test video for Matomo',
      contentMetadata: {
        poster: [
    const rmp = new RadiantMP('rmp');
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License.

©2015-2024 Radiant Media Player. All Rights Reserved.