On my website, downloads are identified by numeric ids that are part of the url. Any subsequent filenames are ignored and lead to the same content.
http://mysite.com/1/2/leo.pdf http://mysite.com/1/2/dummy.pdf http://mysite.com/1/2
… all yield the same file, because the id that identifies the file is “1/2”.
Thus when tracking downloads with Matomo I’d like to reduce the urls to the relevant parts and chop any trailing text.
Or is there an easy way to do it on the server side?