Title: AJAX Hits Counter + Popular Posts Widget
Author: kutsy
Published: <strong>20 de agosto de 2012</strong>
Last modified: 5 de marzo de 2021

---

Buscar plugins

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://s.w.org/plugins/geopattern-icon/ajax-hits-counter.svg)

# AJAX Hits Counter + Popular Posts Widget

 Por [kutsy](https://profiles.wordpress.org/kutsy/)

[Descargar](https://downloads.wordpress.org/plugin/ajax-hits-counter.0.10.210305.zip)

 * [Detalles](https://es.wordpress.org/plugins/ajax-hits-counter/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/ajax-hits-counter/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/ajax-hits-counter/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/ajax-hits-counter/#developers)

 [Soporte](https://wordpress.org/support/plugin/ajax-hits-counter/)

## Descripción

Plugin counts posts views (hits) by using external AJAX based counter script of 
this plugin, which is best solution for caching whole page or using other cache 
plugins.
 Plugin also include widget «Popular Posts» for displaying popular posts(
based on hits count) with different visibility settings and using predefined placeholders,
such as `{post_id}`, `{post_title}`, `{post_title_N}`, `{post_excerpt_N}`, `{post_author}`,`{
post_author_link}`, `{permalink}`, `{post_date}`, `{thumbnail-[medium|...|64x64]}`,`{
post_categories}`, `{post_hits}` and `{post_comments_count}`.

You can show hits count in Posts/Pages Loop simply adding this line: `<?php echo(
ajax_hits_counter_get_hits(get_the_ID())); ?>` or equivalent `<?= ajax_hits_counter_get_hits(
get_the_ID()) ?>`
 Or you can use this shortcode: `[hits]`. Plugin also have JavaScript-
callback function (on client) for «success» (`ajaxHitsCounterSuccessCallback(xhr)`)
and for «failed» (`ajaxHitsCounterFailedCallback(xhr)`) result status of hits incrementation.

#### Features

 * AJAX based counter ignores most bots/crawlers
 * Ability to reset the counter to any number any time
 * Plugin not require using any third party code and/or JavaScript-frameworks
 * Sortable admin column
 * Can be shown anywhere on the site using «Popular Posts Widget», shortcode `[hits]`,
   php-code `<?= ajax_hits_counter_get_hits(get_the_ID()) ?>`
 * Data import from WP-PostViews («Tools»->»Import»)
 * W3 Cache/WP SuperCache compatible
 * Excluding counts from administrators

## Capturas

[⌊Popular Posts Widget⌉⌊Popular Posts Widget⌉[

Popular Posts Widget

[⌊Edit Hits Count in Admin Dashboard⌉⌊Edit Hits Count in Admin Dashboard⌉[

Edit Hits Count in Admin Dashboard

[⌊Column with hits count in Admin Dashboard⌉⌊Column with hits count in Admin Dashboard⌉[

Column with hits count in Admin Dashboard

[⌊AJAX Hits Counter General Settings⌉⌊AJAX Hits Counter General Settings⌉[

AJAX Hits Counter General Settings

## Instalación

From your WordPress dashboard: 1. Open «Plugins» > «Add New» page 2. Search for ‘
AJAX Hits Counter’ 3. Activate ‘AJAX Hits Counter + Popular Posts Widget’ from your
Plugins page. Now widget counts hits automatically. 4. Optional. You can enable «
Popular Posts Widget» in Widgets Management.

From WordPress.org: 1. Download ‘AJAX Hits Counter + Popular Posts Widget’ from 
[plugin’s page](https://wordpress.org/plugins/ajax-hits-counter/) 2. Upload archive
from «Add Plugins» page or you can upload directory `ajax-hits-counter` to your `/
wp-content/plugins/` directory 3. Activate ‘AJAX Hits Counter + Popular Posts Widget’
from your «Plugins» page. Now widget counts hits automatically. 4. Optional. You
can enable «Popular Posts Widget» in Widgets Management.

## Reseñas

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

### 󠀁[Really Great Plugin](https://wordpress.org/support/topic/really-great-plugin-196/)󠁿

 [John Webber](https://profiles.wordpress.org/bilion/) 22 de mayo de 2022

I don't understand why more people aren't using this. It lets you write the HTMl
and CSS. I absolutely love that approach.

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

### 󠀁[User interface](https://wordpress.org/support/topic/user-interface-8/)󠁿

 [judikaelsab](https://profiles.wordpress.org/judikaelsab/) 26 de abril de 2021

User interface for configure the hits are so short. Please add more fields.

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

### 󠀁[Best Plugin](https://wordpress.org/support/topic/best-plugin-1019/)󠁿

 [Anonymous User 17676736](https://profiles.wordpress.org/anonymized-17676736/) 
6 de marzo de 2021 1 respuesta

No que diz respeito a funcionalidade prometida este plugin é o melhor de todos. 
Eu estou feliz porque você atualizou este plugin depois de muito tempo. Parabéns,
eu continuarei usando e recomendo.

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

### 󠀁[Works great](https://wordpress.org/support/topic/works-great-4648/)󠁿

 [CHROMEIS](https://profiles.wordpress.org/kamrankhan-1/) 29 de enero de 2018

Worked great for as long as I used. I'm removing because I don't need it anymore
🙂

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

### 󠀁[Отлично!](https://wordpress.org/support/topic/%d0%9e%d1%82%d0%bb%d0%b8%d1%87%d0%bd%d0%be-68/)󠁿

 [campusboy](https://profiles.wordpress.org/campusboy1987/) 3 de septiembre de 2016

Прекрасный плагин для подсчёта количества просмотров страницы! Спасибо автору!

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

### 󠀁[This is a good !](https://wordpress.org/support/topic/this-is-a-good/)󠁿

 [Alex-Ti](https://profiles.wordpress.org/alex-ti/) 3 de septiembre de 2016

Thank you!

 [ Leer todas las 16 reseñas ](https://wordpress.org/support/plugin/ajax-hits-counter/reviews/)

## Colaboradores y desarrolladores

«AJAX Hits Counter + Popular Posts Widget» es un software de código abierto. Las
siguientes personas han colaborado con este plugin.

Colaboradores

 *   [ kutsy ](https://profiles.wordpress.org/kutsy/)

[Traduce «AJAX Hits Counter + Popular Posts Widget» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/ajax-hits-counter)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/ajax-hits-counter/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/ajax-hits-counter/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/ajax-hits-counter/)
por [RSS](https://plugins.trac.wordpress.org/log/ajax-hits-counter/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 0.10.210305 [2021-03-05]

 * Updated for support WordPress 5.7
 * Updated screenshots

#### 0.9.10 [2018-03-09]

 * Response of increment hits now in JSON format
 * You can use callback function for «success» (`ajaxHitsCounterSuccessCallback(
   xhr)`) or «failed» (`ajaxHitsCounterFailedCallback(xhr)`) result status of increment
   hits script

#### 0.9.9 [2014-12-19]

 * Added option in Settings: «Don’t count hits of admin users». Currently it works
   only with normal (not «rapid») counting script. Thanks for the idea to [vvvv](https://wordpress.org/support/profile/vvvv).
 * Updated screenshots with WordPress 4.1

#### 0.9.8 [2014-12-18]

 * Added possibility to set Hits Count format from predefined. Thanks for the idea
   to [emik91](https://wordpress.org/support/profile/emik91), [Dre_MPMG](https://wordpress.org/support/profile/dre_mpmg),
   [Pulseframe](https://wordpress.org/support/profile/pulseframe).
 * Added possibility to exclude Posts/Pages by their IDs. Thanks for the idea to
   [pFrog](https://wordpress.org/support/profile/pfrog).

#### 0.9.7 [2013-12-28]

 * Bug fixes and visual fixes for WordPress 3.8

#### 0.9.6 [2013-11-29]

 * Added translation in serbo-croatian (`sr_RS`) language. Thanks to [Borisa Djuraskovic](http://webhostinghub.com).

#### 0.9.5 [2013-11-29]

 * Replace `filter_var()` for PHP < 5.2.0 support.

#### 0.9.4 [2013-11-18]

 * Added translation in spanish (`es_ES`) language. Thanks to [Maria Ramos](http://webhostinghub.com).

#### 0.9.3 [2013-11-14]

 * Added translations in russian (`ru_RU`) and ukrainian (`uk_UA`) languages.

#### 0.9.2 [2013-10-22]

 * Bug fixes

#### 0.9.1 [2013-10-22]

 * Added shortcode `[hits]` (or `[hits id=12345]`). Thanks for the idea to [AsankaD](https://wordpress.org/support/profile/asankad).
 * Small bugs fixes

#### 0.9.0 [2013-10-22]

 * Added very fast (rapid) alternative hits counter script that used WP constant`
   SHORTINIT`. You can choose script type via Settings checkbox in admin area.
 * Changed design of Popular Posts Widget

#### 0.8.8 [2013-09-15]

 * Added classes for `<li>` elements: `item-num-<NUMBER_IN_ORDER>` and `item-id-
   <POST_ID>`
 * Added coefficients for Hits count and Comments count in `Sorting Algorithm`.
 * Added hits column for Pages in admin dashboard.
 * Added meta box for change hits count for Pages in admin dashboard.

#### 0.8.7 [2013-09-03]

 * Added counting for pages type too. Now you can choose post types to display in
   Popular Posts Widget: `Pages & Posts`, `Posts only` or `Pages only`.

#### 0.8.6 [2013-09-02]

 * Added import views count (hits) from plugin [WP-PostViews](https://wordpress.org/plugins/wp-postviews/)
   to hits of [AJAX Hits Counter](https://wordpress.org/plugins/ajax-hits-counter/).
   Accessible from menu: `Tools` > `Import` > `AJAX Hits Counter: Import from WP-
   PostViews`. Thanks for the idea to [fabinhoalmeida](https://wordpress.org/support/profile/fabinhoalmeida).

#### 0.8.5 [2013-08-29]

 * Added `Exclude category` option. It means that Popular Posts Widget will exclude
   posts from selected category. In future I do it for more than one category. Thanks
   for the idea to [fenomeno0chris](https://wordpress.org/support/profile/fenomeno0chris).
 * New look of Popular Posts Widget

#### 0.8.4 [2013-08-28]

 * Small fixes

#### 0.8.3 [2013-08-28]

 * Added Custom CSS box. Now you can add your styles from Widget Management

#### 0.8.2 [2013-03-29]

 * Display meta box for change hits count only for administrators.
 * Improved logic of hits counting

#### 0.8.1 [2013-03-28]

 * Added meta box for change hits count in admin dashboard. Thanks for the idea 
   to [benben123](https://wordpress.org/support/profile/benben123).
 * Rewritten on objects.

#### 0.8.0 [2013-03-28]

 * Added `Current Category / Any` option. It means that Popular Posts Widget will
   display only posts from current navigated category or for any category for other
   pages. Thanks for the idea to [benben123](https://wordpress.org/support/profile/benben123).
 * Added Posts date range selection. Now you can select posts publication date range,
   such as `day`, `week`, `month`, `3 months`, `6 months`, `year` and `all time`.
   Thanks for the idea to [whatwillb](https://wordpress.org/support/profile/whatwillb).
 * Added placeholder `{post_title_N}` to Popular Posts Widget, where `N` – is words
   count. Thanks for the idea to [fenomeno0chris](https://wordpress.org/support/profile/fenomeno0chris).
 * Updated logic of `{post_excerpt_N}`.

#### 0.7.6 [2013-02-27]

 * Cache lifetime bug fix in Popular Posts Widget

#### 0.7.5 [2013-02-25]

 * Fix some bugs in Popular Posts Widget

#### 0.7.4 [2013-02-22]

 * Fix some bugs in Popular Posts Widget

#### 0.7.3 [2013-02-22]

 * Added category filter to Popular Posts Widget. Thanks for the idea to [benben123](https://wordpress.org/support/profile/benben123).
 * Updated screenshot

#### 0.7.2 [2013-01-22]

 * Added new function `ajax_hits_counter_get_hits($post_id)` for displaying hits
   count in your custom theme.
    Example: `echo(ajax_hits_counter_get_hits(get_the_ID()).'
   hits');`

#### 0.7.1 [2013-01-03]

 * JS optimization

#### 0.7.0 [2013-01-03]

 * For plugin’s work you DON’T need anymore any JS-framework, such as jQuery, MooTools,
   script.aculo.us etc.

#### 0.6.2 [2012-12-27]

 * Fix some bugs in Popular Posts Widget

#### 0.6.1 [2012-12-27]

 * `readme.txt` updates

#### 0.6.0 [2012-11-24]

 * Fix some bugs in Popular Posts Widget

#### 0.5.9 [2012-11-24]

 * Fix some bugs in Popular Posts Widget

#### 0.5.8 [2012-11-23]

 * Added placeholder `{post_excerpt_N}` to Popular Posts Widget, where `N` – is 
   words count. Thanks for the idea to [meetanik](https://wordpress.org/support/profile/meetanik).
 * Update screenshot of Popular Posts Widget

#### 0.5.7 [2012-11-07]

 * Fix some bugs in Popular Posts Widget

#### 0.5.6 [2012-11-06]

 * Update screenshot of Popular Posts Widget

#### 0.5.5 [2012-11-06]

 * Added placeholders `{post_author}` and `{post_author_link}` to Popular Posts 
   Widget. Thanks for the idea to [ebreuers](https://wordpress.org/support/profile/ebreuers).

#### 0.5.4 [2012-11-06]

 * Added Sorting Algorithm (`Hits`, `Comments`, `Hits + Comments`) to Popular Posts
   Widget
 * Added placeholder `{post_comments_count}` to Popular Posts Widget

#### 0.5.3 [2012-09-22]

 * Added placeholder `{post_hits}` to Popular Posts Widget

#### 0.5.2 [2012-09-05]

 * Fixed small bug

#### 0.5.1 [2012-09-05]

 * Fixed small bug with already in cache data

#### 0.5 [2012-09-05]

 * Added placeholders `{post_date}` and `{post_categories}` to Popular Posts Widget
 * Some performance optimizations

#### 0.4 [2012-09-04]

 * Now you can customize Popular Posts Widget output by using placeholders `{post_id}`,`{
   post_title}`, `{permalink}` and `{thumbnail-[thumbnail|large|medium|...|64x64]}`

#### 0.3.1 [2012-09-03]

 * Fixed bug with displaying posts in Popular Posts Widget

#### 0.3 [2012-09-03]

 * Fixed Transient cache usage for Popular Posts Widget
 * Added cleaning widget transient cache on `save_post` action

#### 0.2 [2012-09-03]

 * Added Popular Posts Widget

#### 0.1 [2012-08-27]

 * AJAX Hits Counter initialization commit

## Meta

 *  Versión **0.10.210305**
 *  Última actualización **hace 6 años**
 *  Instalaciones activas **900+**
 *  Versión de WordPress ** 3.0 o superior **
 *  Probado hasta **5.7.21**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/ajax-hits-counter/)
 * Etiquetas:
 * [ajax](https://es.wordpress.org/plugins/tags/ajax/)[count](https://es.wordpress.org/plugins/tags/count/)
   [hits](https://es.wordpress.org/plugins/tags/hits/)[nginx](https://es.wordpress.org/plugins/tags/nginx/)
   [views](https://es.wordpress.org/plugins/tags/views/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/ajax-hits-counter/advanced/)

## Valoraciones

 4.9 de 5 estrellas.

 *  [  16 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/ajax-hits-counter/reviews/?filter=5)
 *  [  0 valoraciones de 4 estrellas     ](https://wordpress.org/support/plugin/ajax-hits-counter/reviews/?filter=4)
 *  [  1 valoración de 3 estrellas     ](https://wordpress.org/support/plugin/ajax-hits-counter/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/ajax-hits-counter/reviews/?filter=2)
 *  [  0 valoraciones de 1 estrellas     ](https://wordpress.org/support/plugin/ajax-hits-counter/reviews/?filter=1)

[Tu valoración](https://wordpress.org/support/plugin/ajax-hits-counter/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/ajax-hits-counter/reviews/)

## Colaboradores

 *   [ kutsy ](https://profiles.wordpress.org/kutsy/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/ajax-hits-counter/)