PDF tracking


(bourdonj) #1

Hello, I’ve just installed Piwik 0.2.30 and download tracking doesn’t work.
All my pages are formatted like http://www.mysite.fr/index.php?page=XXXX where XXX is the name of a php file which is included.

In this XXXX.php file there are links to PDF files which are in subdirectories.

I put the piwik javascript code in the section of my index.php file.

All the XXX pages are correctly displayed in the “pages” section of Piwik (/index.php?page=XXXX) but there is no tracking of PDF files (even in the mysql tables).

The same problem occurs even if I add class="piwik_download’ to my href link.

What’s wrong ?
Thank you


(beermad) #2

[quote=bourdonj @ Feb 27 2009, 10:17 AM]Hello, I’ve just installed Piwik 0.2.30 and download tracking doesn’t work.
All my pages are formatted like http://www.mysite.fr/index.php?page=XXXX where XXX is the name of a php file which is included.[/quote]
Possibly related to the problem discussed in this thread?


(vipsoft) #3

bourdonj: If the patch in ticket 566 doesn’t work for you, provide a url to the page where your download tracking doesn’t work. Thanks.


(bourdonj) #4

I applied the #566 patch but it still doesn’t work.
Here is one of my page
Welcome Page
There is a link called “Informations sur le séjour” with a PDF icon next to it.
This link is not recorded in piwik.


(vipsoft) #5

Your Piwik tracking code needs to be before the (body end) tag, similar to what you did for your PMV tracking code. Where it is now, your document and DOM is not sufficiently available/ready for Piwik to add its listeners.


(bourdonj) #6

Thanks a lot. It works !