WordPress.org

Ready to get started?Download WordPress

Forums

Download/Hit/Click Counter (2 posts)

  1. BlaenkDenum
    Member
    Posted 5 years ago #

    Hey guys, I google'd to no avail. Does anyone know of a way to count clicks on a specific link, without altering the URL of the download file? In other words, I don't want mysite.com/download.php?src=blah, I want it to be direct.

  2. Roger Theriault
    Member
    Posted 5 years ago #

    1) look in your Apache logs - most accurate way

    2) use JavaScript or jQuery to attach a callback function to the <a> element - doesn't work for non-js browsers

    3) try one of the Google Analytics enablers, and add the download extension to your list of tracked items (some implementations will do as you are asking, some won't) - you don't need to write code

    4) use Apache rewrite rules if you want to mess with the URL of the file, and then use whatever download enabler/counter/redirector you need

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.