PDF tracking

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

[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?

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.

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.

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.

Thanks a lot. It works !