Hi all, I use JDownloads and I want to connect it to my analytics tool : piwik.
I want Piwik to record each downloads. But I don't know how to do that. Can you help me please ?
Thanks ;)
Hi there,
as far as I know, Matomo (formerly Piwik) is
recording downloads automatically, but I guess only if it is a direct link to a file. But you can add a css class to the generated download button / link as
described here. I dont know where in the jD files the link / button is generated (e.g. for the placeholder {url_download} in the jD templates), but I think Arno can clarify that. But altering the jD files isn't a good idea, cause after an update the changes are gone and you have to do it again and again.
Another solution I could think of, is to
defining a goal in Matomo, where you can use regular expressions for URL patterns, to catch and record the downloads as a goal, if a special URL pattern is matching (with Firefox you can use the
Network Monitor to find out how the URLs for the downloads looks like).
I have not testet nor done it by myself, cause the protocol of jD is sufficient for me. If you need a better advice than this, I think it would be more helpful to ask it at the Matomo community, like Arno said already.