J4 Issue ? ?
avatar PhilETaylor
PhilETaylor
3 May 2017

The hit counter has been around since Mambo days

It kills mysql caching as the content rows are updated to store the hit counter

Suggestions include:

  1. Moving the hits counting to a new table, with support for real increment storage like redis/memcache by default and storage into the db periodically

  2. Remove hit counting in favour of external services like Google Analytics only.

  3. more suggestions?

avatar PhilETaylor PhilETaylor - open - 3 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 May 2017
Category com_content
avatar Fedik
Fedik - comment - 3 May 2017

I think to remove it is a good idea,
In general it is useless, it counts the bots, users ... everything ?

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 May 2017
Status New Discussion
avatar brianteeman
brianteeman - comment - 3 May 2017

You would be amazed at the number of users that really demand this sort of thing. removing it would be a bad idea. iirc didnt @rdeutz do a PR to resolve the issue of hit counting and cache hits

avatar PhilETaylor
PhilETaylor - comment - 3 May 2017

well hit counter doesnt even increment if caching is enabled - its simply not fit for use for so many reasons.

If it is to stay then it should be decoupled from the content item, and implemented in an extendable architectured way

avatar brianteeman
brianteeman - comment - 3 May 2017

well hit counter doesnt even increment if caching is enabled - its simply not fit for use for so many reasons.

That is what the PR from @rdeutz resolved.

avatar n9iels
n9iels - comment - 3 May 2017

I think a lot of users are actually using this numbers so removing is not the best option. It might be not accurate but it says at least something about the popularity of an article. Maybe transparency about how these numbers are built is a better idea, this might be the plugin description or a tooltip.

avatar PhilETaylor
PhilETaylor - comment - 3 May 2017

That is what the PR from @rdeutz resolved.

partially but the looks of it. #15792

avatar alikon
alikon - comment - 3 May 2017

i'd prefer to go with option 1 Moving the hits counting to a new table

storage with redis/memcache as an option

avatar Ruud68
Ruud68 - comment - 4 May 2017

I run several blog sites: hit counter is a 'must' > this is valuable feedback for both the blogger (how popular is my blog) as for the reader (many hits is a good blog).
In current version hit counter IS updated with caching enabled, only showing the actual hit counter is shown on page refresh.
Removing hit counter is a bad idea :S


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15771.

avatar mabdelaziz77
mabdelaziz77 - comment - 4 May 2017

My vote is for option 1, the hits counter is a must feature for any cms!
Also, many of listing and sorting functionalities are based on hits counter, so it is better to keep it with improvements as suggested.

avatar woluweb
woluweb - comment - 4 May 2017

I don't take those hit counters litteraly, but still it is quite handy.
Say you want to rewrite the texts of your website for example, you see immediatly which are most popular.

So removing it would not be a good option.
But if they are a problem as they are now, they can indeed be put in another table or whatever.

So option 1

avatar elkuku
elkuku - comment - 4 May 2017

I wouldn't mind if you decide to decouple it, so it gets its own repo and bug tracker where people can concentrate on fixing bugs and adding new features, if they wish.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15771.

avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman
brianteeman - comment - 13 Jul 2018

@wilsonge can we have a decision on this please. If it is an accepted proposal it will need quite a bit of work and so it should start soon

avatar csthomas
csthomas - comment - 13 Jul 2018

Option 3.

Create a new parameter in the com_content component, where you can choose whether you want to or not, count hits.

It can be joined with Option 1.

avatar ReLater
ReLater - comment - 13 Jul 2018

As long as the hit counter also counts hits of deactivated articles and 404 pages and as long it counts hits even if the site is offline and counts reloading of pages and coming back to the same page during navigation for the same session and doesn't identify stupid bots "that never forget" and pushes up the article on the starting page and ... it's complete senseless and not reliable eyewash.

EDIT: ... and print views ...

Everybody who is relying on this stupid, undifferentiated "statistic" is making a mistake.

Nearly any Hoster is providing statistic tools based upon access logs.
Anybody can use several other statistic tools for no money.

Remove it completely!
Decouple it as a plugin that is clever enough to identify a minimum of these nonsense counts if you think it's worth to have it.

Sorry for harsh words!

avatar brianteeman
brianteeman - comment - 13 Jul 2018

None of those alternatives (while more accurate) can be used on a site that wants to display the hits or to sort articles based on hits

avatar ReLater
ReLater - comment - 13 Jul 2018

You could also show random numbers as hits ;-) Just a joke.

avatar joomla-cms-bot joomla-cms-bot - edited - 21 Aug 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Aug 2018
Title
[4.0RFC] Remove Hit Counter from Joomla
[4.0] [RFC] Remove Hit Counter from Joomla
avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Aug 2018
avatar effrit
effrit - comment - 27 Sep 2018

Create a new parameter in the com_content component, where you can choose whether you want to or not, count hits.

I guess it's most easiest and safe way. One option and one condition in controller.
#22413

avatar stutteringp0et
stutteringp0et - comment - 22 Oct 2018

It seems like something that could happily live in a plugin. onContentPrepare could be used to trigger it, counting hits in a separate table. If you want it, enable it, if not, leave it disabled. It could easily work for extensions other than com_content by using context like is used in the categories table.

With some planning, it could probably be done within a week.

avatar effrit
effrit - comment - 22 Oct 2018

i am just curios, if disabling hits options already merged in 3.9 it will be in 4.0? or we must do another PR?
#22413
also for those who interesting in more accurate counter i made plugin (sorry, it's pending on JED, so http://effrit.com/joomla ). U can also change it so it will stop increment hits for articles.

avatar effrit
effrit - comment - 22 Oct 2018

i am just curios, if disabling hits options already merged in 3.9 it will be in 4.0? or we must do another PR?
#22413
also for those who interesting in more accurate counter i made plugin (sorry, it's pending on JED, so http://effrit.com/joomla ). U can also change it so it will stop increment hits for articles.

avatar effrit
effrit - comment - 22 Oct 2018

i am just curios, if disabling hits options already merged in 3.9 it will be in 4.0? or we must do another PR?
#22413
also for those who interesting in more accurate counter i made plugin (sorry, it's pending on JED, so http://effrit.com/joomla ). U can also change it so it will stop increment hits for articles.

avatar effrit
effrit - comment - 22 Oct 2018

i am just curios, if disabling hits options already merged in 3.9 it will be in 4.0? or we must do another PR?
#22413
also for those who interesting in more accurate counter i made plugin (sorry, it's pending on JED, so effrit.com/joomla ). U can also change it so it will stop increment hits for articles.

avatar effrit
effrit - comment - 22 Oct 2018

i am just curios, if disabling hits options already merged in 3.9 it will be in 4.0? or we must do another PR?
#22413
also for those who interesting in more accurate counter i made plugin.

avatar stutteringp0et
stutteringp0et - comment - 4 Feb 2019

This is still in RFC phase? Is anyone working on this? A core plugin could be integrated in article sorting and article output. It just needs a decision to move forward.

avatar mbabker
mbabker - comment - 4 Feb 2019

A core plugin could be integrated in article sorting and article output.

Not really. Hit tracking either needs to be baked into the component or not a feature at all, anything that deals with models and database queries can't have conditionally added filters without either MVC overrides, introducing plugin hooks to allow for query manipulation, or you have the current state of affairs with a few features (i.e. voting) where the plugin adds the UI features but the controller to handle the vote submission or the sort/filter logic is baked into the component itself.

avatar PhilETaylor PhilETaylor - change - 10 Feb 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-02-10 21:31:32
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 10 Feb 2019

Add a Comment

Login with GitHub to post a comment