jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: carpaking on 18.01.2019 08:49:53

Title: Support for piwik?
Post by: carpaking on 18.01.2019 08:49:53
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 ;)
Title: Re: Hi all, i have a question
Post by: Arno on 18.01.2019 13:00:54
Hi,
I have no experiences with this script. Maybe should you post it better in the piwik forum.
Title: Re: Support for piwik?
Post by: LUCiD on 17.02.2019 18:49:02
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.