Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
snoesberger opened this issue Nov 15, 2024 · 0 comments

Comments

@snoesberger
Copy link

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}"
                }
        }
}"""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant