jDownloadsownloads.com


Author Topic: Support for piwik?  (Read 187 times)

0 Members and 1 Guest are viewing this topic.

Offline carpaking

  • Newbie
  • *
  • Posts: 1
Support for piwik?
« 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 ;)
« Last Edit: 18.01.2019 13:01:20 by Arno »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.384
    • jDownloads.com
Re: Hi all, i have a question
« Reply #1 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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline LUCiD

  • Newbie
  • *
  • Posts: 16
    • LUCiD iMAGiNATiON
Re: Support for piwik?
« Reply #2 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.
« Last Edit: 17.02.2019 19:04:46 by LUCiD »
Best regards / Beste Grüße