Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)
Matomo/Pleade/Documents
Aller à la navigation
Aller à la recherche
Matomo/Pleade/Documents
[modifier | modifier le wikicode]Consultation d'une notice
[modifier | modifier le wikicode]document.addEventListener('DOMContentLoaded', function () {
var body = document.body;
var docId = body.getAttribute('data-doc-id');
var cote = body.getAttribute('data-cote');
if (docId) {
pleadeTrackEvent('Document', 'Consultation', cote || docId);
}
});
Téléchargement d'un média
[modifier | modifier le wikicode]document.querySelectorAll('a.download-link').forEach(function (link) {
link.addEventListener('click', function () {
var filename = link.getAttribute('data-file') || link.href;
pleadeTrackEvent('Document', 'Download', filename);
});
});
Distinction par type documentaire
[modifier | modifier le wikicode]var docType = document.body.getAttribute('data-doc-type');
if (docType) {
pleadeTrackEvent('Document', 'Type', docType);
}