Any idea why or what circumstances might cause the Joomla article hit counts to be significantly different than what Google Analytics reports? We recently moved from a shared hosting account to a VPS and at that point the hit counts in Joomla started to be a lot less than those in GA.
Is it possible that Joomla is only counting uniques instead of all hits? It seems that all of the articles are reporting roughly 2/3 less hits in Joomla than in GA.
Thank you for any insight you might have on this.
Hit counter issues
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Explorer
- Posts: 449
- Joined: Sun Dec 04, 2005 7:27 pm
- Contact:
- pe7er
- Joomla! Master
- Posts: 24974
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: Hit counter issues
Do you use server cache?
Do you use any Joomla cache?
Do you use any Joomla cache?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
- JAVesey
- Joomla! Hero
- Posts: 2634
- Joined: Tue May 14, 2013 1:21 pm
- Location: Cardiff, Wales, UK
- Contact:
Re: Hit counter issues
To legitimately compare one with the other you need to make sure that the two counts are using the same metrics.
It all rather depends upon what's being counted and over what time period.
John V
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28
Cardiff, Wales, UK
Joomla 5.1.0 "live" site on PHP 8.2.15 and MariaDB 10.11.7
Joomla 5.1.0 on XAMMP for OSX with PHP 8.2.4 and MariaDB 10.4.28
-
- Joomla! Explorer
- Posts: 449
- Joined: Sun Dec 04, 2005 7:27 pm
- Contact:
-
- Joomla! Explorer
- Posts: 449
- Joined: Sun Dec 04, 2005 7:27 pm
- Contact:
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: Hit counter issues
Of course the hit counts will be different. Google Analytics uses a small piece of Javascript to see how many hits a web-page has (including hits from bots and non browser-based web agents) and Joomla uses PHP at the time a page view (from the com_content component) to update the hit count and store the value in the database. There's nothing particularly remarkable about this.
If you look at the PHP associated with com_content you can see where and how the database information is updated. If you want more information I suggest you ask a question at GitHub and see what the J! developers have to say. I don't have the time (or, perhaps, I don't have the inclination) to look at the PHP code for the com_content component to see how this is done and, besides, however it's done, if the author of the code is still around then they can answer it quicker than me.
I accept the difference in the hit count—between what GA says and what J! says—as a "fact". I don't have any confidence in the accuracy of those counts; they're indicators of which pages are being looked at by someone or something but the numbers, themselves, can be disputed. Page caching doesn't normally affect these counters unless people enable the System - Page Cache plugin (which should never be enabled unless you have web content that is never updated) and, even then, I don't know if enabling that plugin would make any difference.
If you look at the PHP associated with com_content you can see where and how the database information is updated. If you want more information I suggest you ask a question at GitHub and see what the J! developers have to say. I don't have the time (or, perhaps, I don't have the inclination) to look at the PHP code for the com_content component to see how this is done and, besides, however it's done, if the author of the code is still around then they can answer it quicker than me.
I accept the difference in the hit count—between what GA says and what J! says—as a "fact". I don't have any confidence in the accuracy of those counts; they're indicators of which pages are being looked at by someone or something but the numbers, themselves, can be disputed. Page caching doesn't normally affect these counters unless people enable the System - Page Cache plugin (which should never be enabled unless you have web content that is never updated) and, even then, I don't know if enabling that plugin would make any difference.