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 a block of file downloads on which clicks are counted. It is a more convenient alternative to the once widely used «Downloads Manager».


Actually, I agree that it is terrible to be without an internet connection, but it's not always the case. My granny was right when she told me that every cloud has its silver lining.

Another breakdown at the telephone exchange which periodically disturbs my already unstable nervous system led me to some thoughts. The sequence of chaotic and useless thoughts ended exactly at the moment when I decided to improve my "Kama Click Counter" plugin which counts clicks on links.

The first version of the plugin has been created in March 2011 and I immediately noticed that my life became a bit easier because I deleted the "Downloads Manager".

The second version was born in those "internet free" days.

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

Look at the Plugin in the WordPress Repository.


About the plugin

Kama Click Counter is a WordPress plugin which counts the number of file downloads. Also, it's able to count clicks on all links.

Kama Click Counter is 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.

    Reply5 mo ago #
    • kama100

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

      Reply4 mo ago #
Hello, !     Log In . Register