WordPress at a glance

Kama Click Counter: Counting Clicks on Any Link

Here I’m presenting you the plugin that counts the number of clicks on the specified link and displays block of file downloads, on which clicks are counted. It is a more usable alternative to once widely known as «Downloads Manager».


Actually, I’m agreeing that it is terrible to stay without internet connection, but sometimes it is not. My granny was right when she told me that every cloud has its silver lining. Now I have an evidence that it is a truth.

Another breakdown at the automatic telephone station, which periodically disturbs my already unstable nervous system, led me to various thoughts. The sequence of chaotic and useless thoughts ended exactly at the moment when I decided to improve my plugin that counts clicks on a link, with the simple name "Kama Click Counter".

The first version of the plugin I created in March 2011 and it feels to me like my breathing process became, because I deleted the "Downloads Manager". How much I was irritated by the addition of new files in it ...

The second version was born just in these "internet free" days.

Download: Kama Clic Counter
The latest version of the plugin in the wordpress.org plugin directory.
Downloaded: 97, size: 115.9 KB

Look at the Plugin in WordPress Repository.


About the plugin

Kama Click Counter – WordPress plugin, which counts the number of downloads of the file. Also, the plugin is able to count clicks on all other links in the post content or outside of it.

Kama Click Counter tightly associated with the WordPress media library. If the file specified for the count is in the WordPress library, then the link is bound to this file. In case you change the name or description of the file from the plugin, they also change the file in the library and vice versa.

When you delete the file from the library, the link is also removing from the table of links in the plugin but not vice versa. Visually, the binding is visible in the "Attach" field on the statistics page:

Files are loaded from the WordPress file loader or by any other way, there is no matter how. The plugin needs just URL to begin count clicks.

For most convenience, you find the button on the visual editor (TinyMCE). Copy the link to the uploaded file and use the buttons to insert download block into post content:

In the result, the shortcode will be inserted in post content, that later will be replaced by html code. The "Download block" template can be changed in the settings as you like:


Other settings

html class links

The plugin is able to count clicks on all types of links. For counting activation, you need to add count class class="count" to the link. The class name can be changed on the settings page.

The number of clicks for ordinary links

With activation of this option, you can display the statistics of clicks per link "in title attribute" or "text after the link". By default, the number of clicks does not appear in order to minimize the number of queries (requests) to the database.

Distinguish links from different positions

If the box is checked (by default) the plugin will count the same links from different posts separately. In other words, it will be separate link count for every single post. In case you do not need this option, uncheck the box, and clicks on the same links but in different posts will be stored in one place.

Whether to add jQuery

Without check mark. The plugin will count links to the class count only in the content of the article. If this option is set, a little jQuery code will be added to the website and with help of it, you will be able to specify the class "count" for any link on the website and all clicks on it will be recorded in the statistics. There is no sense of turning off this option, it does not load anything, and you can turn it off only in case if you do not use jQuery and you do not want to turn on the library just for this option works.

Edit statistics

Once the link is recorded in the database, its attributes, such as file size, name, description, number of clicks, can be changed. To do it click on the "Edit" link on the stats page and you will be moved on such page:


Uninstalling the plugin

When you remove the plugin with such method, plugin removes substantially all it's parts: the table in the database and its options.

  • @ Godson X3coded.com

    Hi, The Kama Click Counter Settings is not saving. Instead, I get page not found as Response.

    Reply3 mo ago #
    • kama100

      It works on this site and on many other sites of mine. No ideas why it doesn't work for you.

      Reply3 mo ago #
Hello, !     Log In . Register