Title: Kama Click Counter
Author: Timur Kamaev
Published: <strong>September 9, 2014</strong>
Last modified: October 27, 2025

---

Search plugins

![](https://ps.w.org/kama-clic-counter/assets/icon-256x256.png?rev=3056424)

# Kama Click Counter

 By [Timur Kamaev](https://profiles.wordpress.org/tkama/)

[Download](https://downloads.wordpress.org/plugin/kama-clic-counter.zip)

 * [Details](https://test.wordpress.org/plugins/kama-clic-counter/#description)
 * [Reviews](https://test.wordpress.org/plugins/kama-clic-counter/#reviews)
 * [Development](https://test.wordpress.org/plugins/kama-clic-counter/#developers)

 [Support](https://wordpress.org/support/plugin/kama-clic-counter/)

## Description

With this plugin, you can gather statistics on clicks for file downloads or any 
other link across the site.

To insert a file download block, use the `[download url="any file URL"]` shortcode.

The plugin does not include additional tools for uploading files. All files must
be uploaded using the standard WordPress media uploader. The URLs are then used 
to create the download block.

Additionally, the plugin includes:

 * A button in the visual editor for quickly inserting the file download block shortcode.
 * A customizable widget that allows you to display a list of “Top Downloads” or“
   Top Link Clicks.”

## Screenshots

 * [[
 * Statistics page.
 * [[
 * Plugin settings page.
 * [[
 * Single link edit page.
 * [[
 * TinyMCE visual editor downloads button.

## FAQ

### How can I customize the download block with CSS?

You can customize CSS styles on the plugin options page. Alternatively, you can 
add CSS styles to the `style.css` file of your theme.

## Reviews

![](https://secure.gravatar.com/avatar/817bedc5d7a8ddde653f8b388524b3b2d3c13c10d19d14e03b3446f571f2cb5f?
s=60&d=retro&r=g)

### 󠀁[Отличный плагин!](https://wordpress.org/support/topic/%d0%be%d1%82%d0%bb%d0%b8%d1%87%d0%bd%d1%8b%d0%b9-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd-834/)󠁿

 [velozavr](https://profiles.wordpress.org/velozavr/) August 12, 2022

Использую этот плагин для своего проекта. Все красиво, все наглядно. Есть пожелания
сделать возможность вставлять файлы/ссылки не во всю строку по ширине, а допустим
фиксированного размера (200 х 200 px.) или размеры указать в процентах. Это нужно
для того, чтобы я в ряд мог разместить 3 файла для скачивания или сделать обтекание
текстом. Пока не понятно как измерить размер и цвет шрифта на кнопках для скачивания
файлов. В целом плагин очень хороший! Большое спасибо разработчикам! I use this 
plugin for my project. Everything is beautiful, everything is clear. There are wishes
to make it possible to insert files / links not in the entire line in width, but
let's say a fixed size (200 x 200 px.) Or specify the dimensions as a percentage.
This is necessary so that I can place 3 files in a row for download or make text
wrapping. It is not yet clear how to measure the size and color of the font on the
buttons for downloading files. In general, the plugin is very good! Many thanks 
to the developers!

![](https://secure.gravatar.com/avatar/5a404330d3a2bc92a2d2e4a0173a2d01c4d73e1a51b02f041c43a22534fb7f37?
s=60&d=retro&r=g)

### 󠀁[incoming foreign link](https://wordpress.org/support/topic/thumbs-up-167/)󠁿

 [Desta](https://profiles.wordpress.org/wybowo/) May 26, 2021

There is a foreign link that enters the list of download addresses, you must update
it immediately.

![](https://secure.gravatar.com/avatar/81bbdcf265aec075a45725d7b4bf8651cf5cf44682eea1499085878392578fb1?
s=60&d=retro&r=g)

### 󠀁[Causes jquery problem](https://wordpress.org/support/topic/causes-jquery-problem/)󠁿

 [Sina Saeedi](https://profiles.wordpress.org/melodymag/) October 3, 2020

It causes jQuery problem in Enfold theme.

![](https://secure.gravatar.com/avatar/1a6232c9f39283794de99be2d6faf9d44748bc4a1e38d8d1d7607510a31cd243?
s=60&d=retro&r=g)

### 󠀁[Error: empty SQL result](https://wordpress.org/support/topic/error-empty-sql-result/)󠁿

 [russell793](https://profiles.wordpress.org/russell793/) September 3, 2016

Showing this Error Message Error: empty SQL result Can anyone help?

![](https://secure.gravatar.com/avatar/023660ad492509d7beef7b2bd1802f8ee69675dceb8472d5ed2fdbaf6c5bfeea?
s=60&d=retro&r=g)

### 󠀁[Doesn't count all clicks in the tracked links](https://wordpress.org/support/topic/doesnt-count-all-clicks-in-the-tracked-links/)󠁿

 [ricardocorreia32](https://profiles.wordpress.org/ricardocorreia32/) September 
3, 2016 2 replies

It just count the clicks done with the left-click mouse button. Doesn’t count clicks
done with the mouse wheel, which opens in new tab. Also doesn’t count clicks from
mobile browsers. Tested with iPhone and Android. I think it’s not hard to track 
all clicks with an onclick event, using jQuery perhaps. In any case Kama Click Counter
is good for a start, just needs improvement. Good work!

![](https://secure.gravatar.com/avatar/994be7485546f2d01d90a30ee2d8b8be12109c3520d7724d7bfbae85e9fcd1c4?
s=60&d=retro&r=g)

### 󠀁[Это очень крутой плагин](https://wordpress.org/support/topic/%d0%ad%d1%82%d0%be-%d0%be%d1%87%d0%b5%d0%bd%d1%8c-%d0%ba%d1%80%d1%83%d1%82%d0%be%d0%b9-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd/)󠁿

 [alex.duki](https://profiles.wordpress.org/alexduki/) September 3, 2016

Это действительно то, что нужно для меня. Очень крутое решение. Очень крутые возможности.
Спасибо, Тимур!

 [ Read all 8 reviews ](https://wordpress.org/support/plugin/kama-clic-counter/reviews/)

## Contributors & Developers

“Kama Click Counter” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Timur Kamaev ](https://profiles.wordpress.org/tkama/)

“Kama Click Counter” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/kama-clic-counter/contributors)
for their contributions.

[Translate “Kama Click Counter” into your language.](https://translate.wordpress.org/projects/wp-plugins/kama-clic-counter)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/kama-clic-counter/),
check out the [SVN repository](https://plugins.svn.wordpress.org/kama-clic-counter/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/kama-clic-counter/)
by [RSS](https://plugins.trac.wordpress.org/log/kama-clic-counter/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 4.1.1

 * FIX: Minor bugfix on options update.

#### 4.1.0

 * NEW: clicks_in_month, clicks_prev_month DB fields added. Now the plugin tracks
   clicks per month.
 * NEW: Unit tests infrastructure added and some code covered with unit tests.
 * FIX: Possible XSS protection: escapes and sanitizations added for widget as well.
 * CHG: Referer check logic removed because of incorrect working.
 * IMP: modify_links in content minor performance improvements.
 * IMP: Download Template separeted from HTML and now added in HEAD.
 * IMP: Link_Item Object added.
 * IMP: idna_convert.php phpstan fixes.
 * IMP: Some jQuery deps removed. NPM packages updated.
 * IMP: Other improvements & bugfixes.
 * IMP: Upgrader logic improved.
 * IMP: Multisite support for Uninstall.

#### 4.0.4

 * IMP: To make it harder to add any links to the DB via a simple GET request, added
   additional check that the referer matches the current site. Thanks to Carmine
   Cappetti.
 * IMP: Minor improvements.

#### 4.0.3

 * FIX: Bugfix the counter not worked after the last updates for the count click
   of Download block. And more.
 * IMP: Minor improvements.

#### 4.0.2

 * CHG: Min PHP version 7.0 >> 7.1.
 * FIX: Plugin `init` moved to `after_setup_theme` hook to avoid some conflicts.
 * IMP: minor improvements.
 * UPD: Tested up to: WP 6.8.0

#### 4.0.1

 * FIX: Bug in `counter.js` script.

#### 4.0.0

 * CHG: Requires PHP >= 7.0.
 * DEL: Removed backcompat code.
 * IMP: Code refactored.
 * ADD: PHP class autoloader.
 * ADD: PHP namespaces.
 * CHG: Filter `kcc_admin_access` renamed to `kcc_manage_access`.
 * CHG: Filter `parce_kcc_url` renamed to `click_counter__parse_kcc_url`.
 * CHG: Filter `get_url_icon` renamed to `click_counter__get_icon_url`.

#### 3.6.10

 * IMP: Minor improvements.

#### 3.6.9

 * IMP: Performance improvements; no jQuery dependency for base count JS.

#### 3.6.8.2

 * FIX: Bug in previous version.

#### 3.6.8.1

 * FIX: Protocol for external links issue (leaving `//`).
 * FIX: Compatibility with PHP 7.4.

#### 3.6.8

 * FIX: Wrong URL count with query parameters.
 * FIX: Bug in widget loop.
 * FIX: Other minor fixes.

#### 3.6.7.3

 * FIX: `<title>` parsing issue.

#### 3.6.7

 * FIX: Wrong counting with “hide link under id” option enabled.
 * FIX: Minor code fixes.

#### 3.6.6

 * FIX: `access_role` option not saved.
 * ADD: `desc` attribute to shortcode.

#### 3.6.5

 * FIX: Filesize parsing issue due to missing HTTP protocol.

#### 3.6.4.2

 * CHG: Minor changes to download block HTML markup and CSS styles.

#### 3.6.4

 * ADD: `urldecode` for incoming URLs when saving to DB. Thanks to Mark Carson.
 * NEW: Exclude URL counting filter added (see options page).

#### 3.6.3

 * FIX: `esc_url()` for `wp_redirect()` to avoid spaces deletion. Thanks to Mark
   Carson.

#### 3.6.2

 * ADD: `in_post` field on edit link admin page to change associated post ID.
 * ADD: Sanitize data on edit link POST request.
 * NEW: Save URLs without protocol (`//site.ru/foo`).
 * FIX: Admin list search starting from pagination page.
 * FIX: Detection of URLs without protocol.
 * FIX: Title detection for protocol-less URLs using WP HTTP API.
 * FIX: Minor bug fixes.

#### 3.6.1

 * ADD: `title` attribute for `[download]` shortcode.
 * ADD: Improved TinyMCE button modal window (browse media library).
 * FIX: Count clicks from mouse wheel and context menu.

#### 3.6.0

 * CHG: Class name `KCClick` changed to `KCCounter`.
 * CHG: Icon in TinyMCE visual editor updated.

#### 3.5.1

 * CHG: Move localization to translate.wordpress.org.
 * FIX: Minor code fix.

#### 3.5.0

 * FIX: XSS vulnerability fixed.
 * CHG: Class name `KCC` changed to `KCClick`.
 * CHG: Translate PHP code to English (Russian moved to localization file).

#### 3.4.9

 * FIX: Remove admin-bar link for roles without plugin access.

#### 3.4.8

 * ADD: “Clicks per day” data on edit link screen.

#### 3.4.7 – 3.4.7.3

 * FIX: Table structure to support `utf8mb4_unicode_ci` charset.

#### 3.4.6

 * ADD: `get_url_icon` filter to manage icons.

#### 3.4.5

 * ADD: Administrator option to assign plugin access to other WP roles.
 * ADD: Option to add KCC Stats link to admin bar.
 * DEL: Removed `HTTP_REFERER` block on direct KCC URL use.

#### 3.4.4

 * CHG: `is_file` extension check method for URL.
 * ADD: `kcc_is_file` filter.
 * ADD: Widget option to set link to post instead of file.
 * DEL: Removed `kcc_file_ext` filter.

#### 3.4.3

 * ADD: Hooks `parce_kcc_url`, `kcc_count_before`, `kcc_count_after`.
 * ADD: Second parameter `$args` to `kcc_insert_link_data` filter.
 * ADD: Punycode support for link filtering.
 * FIX: Count clicks from mouse wheel, touch, and ctrl+click.

#### 3.4.2

 * ADD: `kcc_admin_access` filter to change access capability.
 * FIX: Redirect protection fix.

#### 3.4.1

 * FIX: KCC URL parsing issue.

#### 3.4.0

 * ADD: Option to hide URL in download block.
 * ADD: `link_url` column index in DB for performance.
 * ADD: Hooks `get_kcc_url`, `kcc_redefine_redirect`, `kcc_file_ext`, `kcc_insert_link_data`.
 * ADD: Replace ugly URL with original URL on hover.
 * ADD: Replace “edit link” text in download block with icon.
 * FIX: Duplicate URL updates (e.g., containing `%` symbol).
 * FIX: XSS protection added.
 * FIX: Code structure fixes.

#### 3.3.2

 * FIX: PHP notice.

#### 3.3.1

 * ADD: `de_DE` localization. Thanks to Volker Typke.

#### 3.3.0

 * ADD: Localization on plugin page.
 * ADD: Menu to admin page.
 * FIX: Antivirus false positive detection.

#### 3.2.34

 * FIX: Admin CSS changes.

#### 3.2.3.3

 * ADD: jQuery links now hidden with `#kcc` anchor and `onclick` attribute.
 * FIX: `parse_url` bug when URL contained “=” character.

#### 3.2.3.2

 * FIX: Redirect to URL with space (`" "`) character.
 * ADD: Round “clicks per day” value to one decimal on admin stats page.

#### 3.2.3.1

 * FIX: “Back to stat” link on “edit link” admin page.

#### 3.2.3

 * FIX: Redirects to HTTPS were not working correctly.
 * FIX: PHP < 5.3 support.
 * FIX: “Go back” button on “edit link” admin page.
 * FIX: Localization issues.

#### 3.2.2

 * ADD: “Go back” button on “edit link” admin page.

#### 3.2.1

 * CHG: Auto-replace old shortcodes `[download=""]` with `[download url=""]` in 
   DB during update.

#### 3.2

 * ADD: Widget feature.

## Meta

 *  Version **4.1.1**
 *  Last updated **7 months ago**
 *  Active installations **900+**
 *  WordPress version ** 5.9 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/kama-clic-counter/) and [Russian](https://ru.wordpress.org/plugins/kama-clic-counter/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/kama-clic-counter)
 * Tags
 * [analytics](https://test.wordpress.org/plugins/tags/analytics/)[Counter](https://test.wordpress.org/plugins/tags/counter/)
   [statistics](https://test.wordpress.org/plugins/tags/statistics/)
 *  [Advanced View](https://test.wordpress.org/plugins/kama-clic-counter/advanced/)

## Ratings

 3.9 out of 5 stars.

 *  [  6 5-star reviews     ](https://wordpress.org/support/plugin/kama-clic-counter/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/kama-clic-counter/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/kama-clic-counter/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/kama-clic-counter/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/kama-clic-counter/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/kama-clic-counter/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/kama-clic-counter/reviews/)

## Contributors

 *   [ Timur Kamaev ](https://profiles.wordpress.org/tkama/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/kama-clic-counter/)