Page 1 of 1
Phoca Download and Piwik
Posted: 12 Jan 2016, 17:40
by Lutz
Joomla 3.4.8
Phoca Download 3.0.3
Piwik 2.15.0
Hello,
I'm using Phoca Download and Piwik. Unfortunately Piwik doesn't count downloads. I've searched the web but havn't found a solution.
Do you have an advice what to do?
Many thanks,
Lutz
Re: Phoca Download and Piwik
Posted: 12 Jan 2016, 18:18
by Benno
Hi Lutz,
ich gehe mal bei Deinem Vornamen davon aus, dass Du deutschsprachig bist:
Warum willst Du die Anzahl von Downloads einer Datei mit Piwik zählen, wenn das unter Statistik in Phoca Download bereits gemacht wird? Warum das mit Piwik nicht geht, kann ich Dir nicht sagen (Ich verwende es nicht), ich benutze ein externes Statistik Programm (AWStats).
Freundliche Grüße,
Benno
Re: Phoca Download and Piwik
Posted: 13 Jan 2016, 12:10
by Lutz
Hallo Benno,
ist ganz einfach. Ich schaue öfters in Piwik in die Statistik, als dass ich mich bei Joomla an meiner Website anmelde. In Piwik sehe ich es gleich auf einen Blick, in Joomla muss ich mich erst bis zur Phoca Statistik durchklicken.
Und mit den Vorgängerversionen von Joomla, Piwik und Phoca Download hat es funktioniert. Leider sind meine HTML-, PHP- und CSS-Kenntnisse nicht so gut, dass ich den Grund herausfinden könnte, warum es jetzt nicht mehr geht.
Viele Grüße,
Lutz
Re: Phoca Download and Piwik
Posted: 15 Jan 2016, 00:26
by Jan
Hi, I don't have any experiences with Piwik so cannot give any clue advice, but did you ask Piwik developers?
Jan
Re: Phoca Download and Piwik
Posted: 15 Jan 2016, 20:54
by Lutz
Hi,
I found a solution.
Piwik count downloads if it recognizes a file extension. Unfortunately phoca links end with the download alias.
A second possibility is to extend the link with the css class
piwik_download.
I changed the file default_files.php. The appropriate line is
Code: Select all
$linkDownloadB = '<a class="" href="'. JRoute::_(PhocaDownloadRoute::getFileRoute($v->id,$this->category[0]->id,$v->alias ....
I changed it to
Code: Select all
$linkDownloadB = '<a class="piwik_download" href="'. JRoute::_(PhocaDownloadRoute::getFileRoute($v->id,$this->category[0]->id,$v->alias...
Now everything is fine.
Lutz
Re: Phoca Download and Piwik
Posted: 16 Jan 2016, 13:24
by Benno
Danke für diese Anleitung!
Freundliche grüße,
Benno