By default, Matomo 5+ does not track data for the file:// protocol used to access local files. This is 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.

For environments where tracking the file:// protocol is appropriate, Matomo can be configured to track this data by adding _paq.push(['enableFileTracking']); to the JavaScript tracker options.

Previous FAQ: How do I remove the tracked domain or hostname from all page URLs?