- Posts: 12
COMMUNITY FORUM
Hits counter when using Jotcache
- Alexandros Androutsos
-
- Offline
- New Member
However It did not work for me. I actually have the module published as we speak below the k2 article content right above the footer position. I've used the mainbottom-a postition and selected to hide the title. You can see in page: www.coffeespots.gr/hot-news/item/515-new-horizons that it's not working. Am I doing something wrong?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alexandros Androutsos
-
- Offline
- New Member
- Posts: 12
I also had the title shown to be sure that it was correctly published The title appeared right below the article content. However the counters would not update. Right now the module IS published but I changed the title from show to hide because it's a live site.
is there a way to troubleshoot this?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alexandros Androutsos
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Make sure that this module is not being cached. By default this setting is located in the module's advanced setting.
Keep in mind that I do not know if Jotcache caches modules as well. This is something you need to look into it.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alexandros Androutsos
-
- Offline
- New Member
- Posts: 12
Besides I do not use Jotcache. Only normal joomla cache.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
"There is a hack that works with Conservative and Progressive cache but not with System Cache."
The hits are counted but they are only displayed when cache is cleared. Make sure that this is not the case with your site.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alexandros Androutsos
-
- Offline
- New Member
- Posts: 12
I check the counters from the backend not the frontend so they will not change when cache is cleared. I've also tried to check the db but I see that the db is not updated so clearing the cache will not produce anything new.
Please Log in or Create an account to join the conversation.
- NormanBLN
-
- Offline
- Junior Member
- Posts: 29
I have the same problem - is the joomla cache on, is the visitor counter off :(
We do what you wrote:
1) New modul 'K2 Tool'
2) copy our JavaScript inside
3) set on Parse PHP-Code" on "yes" and excluded the caching from this modul
4) we set the modul on a frond end modul position
(yes, modul is on 'public')
What can we do?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- HamidReza Sayyad Daryabakhsh
-
- Offline
- New Member
SAME Problem!
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
Hi,
Have you read the whole thread? Have you tried the code provided in the previous messages? I also suggest to ask the developers of JotCache for this.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alexandros Androutsos
-
- Offline
- New Member
- Posts: 12
The articles counter of Joomla CM work fine. K2 does not count unless the cache is cleared or expired.
We better face the problem from a stand point of status. K2 hits counter does not work with caching on. Is there a way to make it work?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
I don't get your criticism. The guy posted a question in the thread named "Hits counter when using Jotcache" that's why i answered about JotCache.
Regarding your question, K2 hits are not counted when cache is enabled. It's exactly the same behavior with Joomla! articles. When cache is enabled hits are not counted there either.
Finally, K2 is an open source project. If you have a solution for counting hits when caching is enabled you can always create a pull request at the K2 repository at github.com/joomlaworks/k2 .
Hits are there to provide an indicator not exact statistics. If you want exact statistics Google analytics is the way to go.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alexandros Androutsos
-
- Offline
- New Member
- Posts: 12
Lefteris wrote: @Alexandros Androutsos
I don't get your criticism. The guy posted a question in the thread named "Hits counter when using Jotcache" that's why i answered about JotCache.
Λευτέρη,
Please don't get me wrong. I was not trying to be critical. I simply pointed out that although the topic seems to take for granted that the counter issue is connected to Jotcache, I say that the issue is there even without jotcache. So trying to troubleshoot jotcache is probably not a direct way to solve the problem.
That is not correct. I have cache enabled on all my joomla sites and k2 hits are not counted despite the fact that article hits are. Joomla's articles hit counter works with cache turned on. Now on one of my sites, the one I need the hits counter to work for k2 articles too, I have jreviews installed. Jreviews listing view counter is very important and it counts the hits of each listing perfectly. That is just a reflection of the joomla article hits counter (as jreviews listings are saved as Joomla! articles). I've been testing and using that counter for 3 years and it works despite the fact that I have cache on.Lefteris wrote: Regarding your question, K2 hits are not counted when cache is enabled. It's exactly the same behavior with Joomla! articles. When cache is enabled hits are not counted there either.
All in all, The joomla hits counter works with cache turned on.
Now, I realise that in some cases, using Jotcache to manage the joomla's cache might make the article hit counter to freeze as well. That means that it's a combination of joomla+jotcache that needs troubleshooting when it comes to joomla article hit counter.
However K2 seems to be facing the same issue, with or without Jotcache so I'd suggest solving the issue without the addon first. (that's just a suggestion though - it might turn out that using jotcache might actually provide an indirect solution to the problem)
I don't have a solution yet. I actually hoped that the solutions suggested in this thread might help me.Lefteris wrote: Finally, K2 is an open source project. If you have a solution for counting hits when caching is enabled you can always create a pull request at the K2 repository at github.com/joomlaworks/k2 .
It's not a matter of accuracy, it's only a matter of convenience. It's much easier to follow the trending and popular articles using the backend interface as far as I'm concerned. As far as accuracy goes though, Google analytics is also not very accurate since it uses javascript. Besides, there is no real "accurate" way to count traffic as far as I know. So item hit counter might not be so inaccurate as you suggest.Lefteris wrote: Hits are there to provide an indicator not exact statistics. If you want exact statistics Google analytics is the way to go.
That brings me to the final question. How does the hit counter work? Is it Javascript? Cause if it is, we might be able to use jch optimize and instruct it to not cache the code of the counter. Just a thought.
Thank you.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
Extensions that do count correctly hits when caching is on are probably using AJAX requests to bypass the Joomla! caching and other possible caching layers like CDNs etc.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alexandros Androutsos
-
- Offline
- New Member
- Posts: 12
I guess to truly troubleshoot I should setup a site with the bare joomla and k2 and test stuff.
Please Log in or Create an account to join the conversation.
- carlostegs
-
- Offline
- Senior Member
- Posts: 60
HITS OF k2 ARE static
Use system k2 in Joomla 3.4 in the NEWS of Gavick templante
I'm Hits problems, which are frozen and would like to know if they can help me?
Has a solution to solve the problem and Hits of the articles, to start working?
I notice that when I unplug the JOTCACHE the HITS back to work
I tried to use the K2 code that teach this Forum topic
creating a module and placing the code, but in my case it did not work or something went wrong
Can detail me better as I
Looking forward to a possible aid
Thank you so much
Success
Jose Carlos
Please Log in or Create an account to join the conversation.
- carlostegs
-
- Offline
- Senior Member
- Posts: 60
Hello!
Help!
I tried using this code that indicates in a K2 module and it does not funiconou
In my case the continued stopped HITS, as this only occurs with the connected cache.
I read a lot this forum and could not run yet.
Its put me closer so I can make it work and solve the problem of standing HITS.
Can you help me
thank you
Success
Please Log in or Create an account to join the conversation.