Paella plugin: org.opencast.paella.matomo.userTrackingDataPlugin

This plugin allows to use Matomo service to track usage data.

The configurations for this plugin are done for each tenant. So you need to modify the plugins section of the paella config file.

Configuration

You need to enabled both the es.upv.paella.userEventTracker and the org.opencast.paella.matomo.userTrackingDataPlugin plugin.

{
    "es.upv.paella.userEventTracker": {
        "enabled": true,
        "context": "userTracking",
        "events": [
            "PLAY",
            "PAUSE",
            "STOP",
            "ENDED",
            "SEEK",
            "FULLSCREEN_CHANGED",
            "VOLUME_CHANGED",
            "CAPTIONS_CHANGED",
            "BUTTON_PRESS",
            "SHOW_POPUP",
            "HIDE_POPUP",
            "ENTER_FULLSCREEN",
            "EXIT_FULLSCREEN",
            "VOLUME_CHANGED",
            "CAPTIONS_ENABLED",
            "CAPTIONS_DISABLED",
            "LAYOUT_CHANGED",
            "PLAYBACK_RATE_CHANGED",
            "VIDEO_QUALITY_CHANGED",
            "RESIZE_END"
        ]
    },
    "org.opencast.paella.matomo.userTrackingDataPlugin": {
        "enabled": true,
        "context": [
            "userTracking"
        ],
        "server": "//matomo.server.com/",
        "siteId": "1",
        "trackerUrl": {
            "php": "matomo.php",
            "js": "matomo.js"
        },
        "matomoGlobalLoaded": false,
        "mediaAnalyticsTitle": "${videoId}",
        "cookieType": "tracking",
        "logUserId": true,
        "events": {
            "category": "PaellaPlayer",
            "action": "${event}",
            "name": "${eventData}"
        },
        "customDimensions": {
            "1": "${videoId}",
            "2": "${metadata.series} - ${metadata.seriestitle}",
            "3": "${metadata.presenters}"
        }
    }
}

Configuration parameters:

Available template Vars: