How to track hits of a single media file?

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?

3 s
3

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”.

Leave a Comment