Problem with tracking downloads in Wordpress

I use Piwik and Wordpress and it works fine together so far. But I have problems, tracking my downloads¹ with the Download Monitor Plugin² from Mike Jolley. I asked the developer to maybe look into this, but he says he has no experience with Piwik. He said, I need a custom solution hooked into the download event³, if Piwik has an API to manually trigger a “view”. Can anyone help with this?


¹ Topic: Tracking Downloads with Piwik « WordPress.org Forums
² Download Monitor — WordPress Plugins
³ download-monitor/class-dlm-download-handler.php at master · download-monitor/download-monitor · GitHub

do you mean that you want to track a click on a particular link as an outlink or something? here is how to do this, there are several techniques JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

Hope this helps, if not let me know what you need exactly

Handy solution. I added the CSS-Class to the Template of Wordpress Download Monitor. Seems to work! :wink: