Piwik’s JavaScript tracking API is flexible enough that you can implement your use case using trackLink().
Semantically, the name attribute wasn’t intended for this purpose, and syntactically, doesn’t allow the full range of characters permissible in a pathname/filename. (Even underscores were poorly supported in older browsers.)
I got another question in this way…
Do you know if it’s possible to make a search in the document which has been downloaded and not the URL ?
For example, How many time the file “test20100102.pdf” has been downloaded ?
The search looks for only in the URL “www…”