WordPress.org

Ready to get started?Download WordPress

Forums

Is there a way to monitor how many times a file has been downloaded? (5 posts)

  1. ahrenba
    Member
    Posted 5 years ago #

    Hey guys,

    I have hosted a couple files on my blog and am looking for a way to track or monitor how many times they have been downloaded?

    What's the best way to do this? Is there a plugin? Some code maybe?

  2. iridiax
    Member
    Posted 5 years ago #

    This is the sort of thing that shows up in site logs.

  3. ahrenba
    Member
    Posted 5 years ago #

    Yeah, but I am looking for something more easier/user friendly.

  4. Samuel B
    moderator
    Posted 5 years ago #

  5. Ogre
    Member
    Posted 5 years ago #

    The site log log is too hard?

    grep 'filename.ext' /var/log/apache2/access.log | awk '{print $1}' | sort | uniq | wc -l

    What could be simpler? Ok, I'm being a jerk. :)

Topic Closed

This topic has been closed to new replies.

About this Topic