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.
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: ''
.
<!DOCTYPE html> <!-- Our HTML5 document must start with a valid DOCTYPE --> <html> <head> <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 --> <script> var _paq = window._paq = window._paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function () { var u = "https://your-site.matomo.cloud/"; _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 = '//cdn.matomo.cloud/your-site.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g, s); })(); </script> </head> <body> <!-- Include Radiant Media Player JavaScript library --> <script src="https://cdn.radiantmediatechs.com/rmp/9.15.16/js/rmp.min.js"></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 --> <script> 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: [ 'https://your-poster-url.jpg' ] } }; const rmp = new RadiantMP('rmp'); rmp.init(settings); </script> </body> </html>
©2015-2024 Radiant Media Player. All Rights Reserved.