Phoca Download and Piwik

Phoca Download - download manager
Lutz
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Jan 2014, 16:17

Phoca Download and Piwik

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9611
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Download and Piwik

Post 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
Lutz
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Jan 2014, 16:17

Re: Phoca Download and Piwik

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download and Piwik

Post by Jan »

Hi, I don't have any experiences with Piwik so cannot give any clue advice, but did you ask Piwik developers?

Jan
If you find Phoca extensions useful, please support the project
Lutz
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Jan 2014, 16:17

Re: Phoca Download and Piwik

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9611
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Download and Piwik

Post by Benno »

Danke für diese Anleitung! :twisted:

Freundliche grüße,
Benno
Post Reply