Support video media analytic

This commit is contained in:
Chocobozzz
2022-03-15 14:09:07 +01:00
parent e7aa6925e5
commit 840d539a47
2 changed files with 11 additions and 2 deletions

View File

@ -41,6 +41,13 @@ function initMatomo (registerHook, peertubeHelpers) {
window._paq.push(['trackPageView']);
}
})
registerHook({
target: 'action:video-watch.player.loaded',
handler: function () {
window._paq.push(['MediaAnalytics::scanForMedia', window.document]);
}
})
})
}