Matomo

Last Updated 28 days ago

Screen9 player supports collecting statistics to the Matomo Analytics Platform (both, On-Premise and Cloud editions). You'll need to purchase Media Analytics plugin if you are using On-Premise edition. Please contact your sales representative to enable this option on your account.

In order to integrate Matomo analytics with Screen9, you'll need to generate the "Tracking code" in Matomo Administration → Measurables → Tracking Code:

image


Copy this code snippet and paste it in the Screen9 Console → Settings → Connections → Statistics → Matomo:

image
  • trackPageView() - This will track a page visit for screen9.com preview/embed code. If you are interested in only media/player events, please comment/remove this tracking code section.

To ensure that cookies work correctly when Matomo is embedded in an iframe, you must set the cookie attribute to SameSite=None.

This means the cookie will also be sent in cross-site requests (in this case, within an iframe). 

You should add the following code to the JavaScript tracking code in Matomo:

_paq.push(['setCookieSameSite', 'None'])

Additionally, you must add the Secure attribute, which ensures that cookies are only sent over HTTPS connections (this is required when SameSite=None is used).

_paq.push(['setSecureCookie', true]);

Then you can see media plays in the Matomo Media section:

image

The media will be presented with the media title and media ID in brackets as shown in the above screenshot.

Iframe embeds

If you are using iframe embed codes you might want to prevent Matomo from creating new visits on every page view by adding a setting to your tracking code as described in https://matomo.org/faq/how-to/how-do-i-track-a-website-within-an-iframe/.

Cookies

If your account is set up to disable all cookies until user makes a consent to use them, the matomo plugin will also automatically set the disableCookies flag as described in https://matomo.org/faq/general/faq_157/. This has an impact on collected statistics as described in https://matomo.org/faq/general/faq_156/.

Play (Views) Statistics

Matomo tracks every replay of a video as a new play (view) and the time spent watching the video restarts from the beginning of the video at each replay of the media.
For more information about Matomo statistics, see Matomo doc: https://matomo.org/docs/media-analytics/

This website relies on cookies to function, but no personal data is ever stored in the cookies.
OK

Loading ...