Downloads files in Google Analytics

In the journal in which we work, different PDF, HTML, EPUB and XML formats are handled. My problem is that XML and EPUB are downloaded automatically and google analytics does not count them.
How can I configure these formats to count the downloads in Google Analytics?