Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have multiple media files in my WordPress Media Library. Icons, Images, PDF's and the like. I would like to have a stat counter, that gives me a statistic of the downloads/hits of those files, individually.

I already use WP SlimStat to track page view, and I am quite happy with it. However, I have not found a possibility to track those media files.

How can I do this?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You could use Google Analytics for WordPress. Here's an excerpt from their FAQ on how you could set it to track certain file types:

How can I track downloads? Check the box for "Track outbound clicks & downloads", after that, make sure the file types you want to track are listed in the box of extensions to track as downloads. You’ll find this input field under "Advanced".

share|improve this answer
    
Thanks, this answers the question. To me however, Google Analystcs is not an option, because it requires the adoption of Google's privacy policy. –  Marcel Mar 24 at 7:00

Using Google Analytics will only collect clicks on your web pages, it will not count hits from external sites, RSS feeds, apps, etc. For this you'll need to utilise your server log files.

AWStats is good for this but it is overkill for a single file - you'd need to log in, set the timeframe to a large span, then browse for your file... it would be much easier if the WP files admin could check the server logs for definitive all-time hits for each file, but I am yet to find a plugin for this.

share|improve this answer
    
I actually use AWStats for now to some degree, but I find it clumsy and inflexible. –  Marcel Mar 24 at 7:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.