How to enable file:// protocol tracking
By default, Matomo 5+ does not track data for the file:// protocol which is used to access local files. For environments where tracking the file:// protocol is appropriate, Matomo can be configured to track this data.
To enable file:// protocol tracking in Matomo version 5 and above, please add the below tracking code to your JavaScript tracking code.
      _paq.push(['enableFileTracking']);
Why is no data tracked for local files?
Tracking on the file:// protocol is now disabled by default to prevent unintended tracking of personal data if someone downloads a page from your website, stores it locally and then opens it with their browser.