Exclude files from being tracked as downloads

I have links to php files that look like:


file.php?img=someimage.jpg

Piwik tracks this twice (2x) - first as a download of file.php and then as a normal pageview of file.php

I suppose it does so because it sees jpg in the url and thinks it’s an image, when in fact it’s a page. Is there a way to prevent this?

(NB: I have excluded the ‘img’ parameter inside “Global list of Query URL parameters to exclude” )

Hi there, see: JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3
and sections just below - it explains how you can disable download tracking for particular links.

Thanks - that worked great!