Skip to content

Paella player user tracking Matomo config property trackerUrl not supported #1280

Closed
@snoesberger

Description

@snoesberger

The paella player user tracking plugin allows you to define tracking files other than matomo.js and matomo.php for Matomo (see the trackerUrl property here https://github.com/polimediaupv/paella-user-tracking?tab=readme-ov-file#matomo-user-tracking-data-plugin).
This configuration seems to be ignored by Tobira, the defaults matomo.php and matomo.js are always used. (The same paella player user tracking config works fine in Opencast)

I tested this with the following config:

...
# Matomo integration (optional). Currently only used by Paella if configured.
[matomo]
# URL of your Matomo server. Example: "https://matomo.myuni.edu/matomo/".
#
# Note: Adding `matomo.js` to the URL configured here should result in a
# URL to a publicly accessible JS file.
server = "https://our-matomo-server.org/"

# Matomo site ID, e.g. `side_id = "1"`
site_id = "1"


[player]
# Additional Paella plugin configuration (JSON object). This is merged
# into the `plugins` object in the Tobira-internal Paella config.
# Warning: this could break Paella if used incorrectly. This is mostly
# intended to configure user tracking, e.g.:
#
# ```
# paella_plugin_config = """{
#     "es.upv.paella.userEventTracker": { ... },
#     "es.upv.paella.matomo.userTrackingDataPlugin": { ... }
# }"""
# ```
#
# Default value: "{}"
paella_plugin_config = """{
        "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"
            ]
        },
        "es.upv.paella.matomo.userTrackingDataPlugin": {
                "enabled": true,
                "context": [
                        "userTracking"
                ],
                "trackerUrl": {
                        "php": "777.php",
                        "js": "777.js"
                },
                "matomoGlobalLoaded": true,
                "cookieType": "tracking",
                "events": {
                        "category": "Tobira-PaellaPlayer",
                        "action": "${event}",
                        "name": "${eventData}"
                },
                "customDimensions": {
                        "1": "${videoId}",
                        "2": "${metadata.series}",
                        "3": "${metadata.title}"
                }
        }
}"""

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done ✔️

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions