Register Downloads of .iso and .txt files

Dear Sirs,
I’ma registered user of your service (valeriodistefano.matomo.cloud)
I need to track urgently downloads of .iso and .txt files. So I changed my Matomo script code so:

var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']);// clicks on URLs finishing by iso or txt will be counted as downloads _paq.push(['addDownloadExtensions', "iso|txt"]); _paq.push(['trackPageView']); (function() (...) Is that right? Can I do anything else to make possible to see .iso and .txt file downlads available in my download section? I'm waiting for your answer as soon as possible, tried to send you this question via web but I received an error message. Valerio

Hi there,

You can also set a class on the link to detect it as a download, please see here: https://developer.matomo.org/guides/tracking-javascript-guide#recording-a-click-as-a-download

Thanks