How to track downloading a PDF from an Email



I have the following question.

We are sending newsletters to customers with a direkt link in the HTML-Body. Thru the link they have direct access to a link like “InterNetX: Domains, Server und SSL-Zertifikate für Profis!

The question is how to track this download.

It is actually not possible to build the tracking code within the pdf. I have already tried to build it directly within the HTML-mail however no tracking of direct downloads was possible.

Can you give me a hint how to try it?

Thank you.



Build a html page with js piwik tracking code and redirect with js (location.href) after some seconds to the pdf.

Or: Use a php site which is using the Piwik api and then redirects.