Download Tracking add page path

Currently it is not possible to evaluate the download pages (Download per Page). Downloads per Page - #9 by TomCz
So we have to add PagePath as an custom dimension to the download tracking. How can I do this in Matomo if I don’t want to implement my own download tracking with events?