# Great discrepancy between Google Analytics and own counter

**URL:** <https://www.ruby-forum.com/t/great-discrepancy-between-google-analytics-and-own-counter/164256>\
**Category:** Rails\
**Created:** [March 30, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/great-discrepancy-between-google-analytics-and-own-counter/164256 "2009-03-30T15:27:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisdwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Post date:** [March 30, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/great-discrepancy-between-google-analytics-and-own-counter/164256/1 "2009-03-30T15:27:29Z")

</div>

Got Google Analytics running on one of my websites. Google defines a  
pageview as the most occuring event. Every refresh, every link clicked  
to a different part of the page, even loading from cache is an  
additional pageview

[http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=57164](http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=57164)

Now it should be known that GA is JS based, and will report directly to  
Google from the client’s browser that page X has been visited. This is  
why it can also count hits from the client’s cache.

Now I have written my own little banner rotation system in one of my  
projects, which also contains a viewcounter.

For testing purposes I have only 1 banner, and it is displayed on every  
page that is also tracked by Google Analytics. The viewcounter for my  
banners works serverside, and actually counts the times the banner was  
requested (times rendered on serverside to be precise)

Now over a period of a month GA has accumulated around 150 views, where  
my banner system reports close to 1100. Almost a factor 10 difference!

Now obviously both ways are pretty different. For example, my banner  
system will miss hits from the cache, where GA’s JS will be blocked by  
browsers that have JS disabled or are incapable of. And my system will  
also count visits that are terminated before the website got fully  
loaded where GA’s JS will only be executed at the complete page load.

Has anyone got any experience with pageview counters and can you tell me  
if a factor 10 difference is acceptable? Because to me it seems it is  
quite a big and unreliable difference.

---

<div class="post-metadata">

**Author:** ![chrisdwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Post date:** [March 30, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/great-discrepancy-between-google-analytics-and-own-counter/164256/2 "2009-03-30T15:46:48Z")

</div>

> Has anyone got any experience with pageview counters and can you tell me  
> if a factor 10 difference is acceptable? Because to me it seems it is  
> quite a big and unreliable difference.

Do you filter bots and spiders? Because they visit very often websites.  
Maybe google filters them and you don’t?

---

<div class="post-metadata">

**Author:** ![chrisdwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Post date:** [March 30, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/great-discrepancy-between-google-analytics-and-own-counter/164256/3 "2009-03-30T16:04:50Z")

</div>

On Mon, Mar 30, 2009 at 8:27 AM, Chris D.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Has anyone got any experience with pageview counters and can you tell me  
> if a factor 10 difference is acceptable? Because to me it seems it is  
> quite a big and unreliable difference.

I found the same thing. My webalizer page view stats, for example,  
are about 8-10 times higher than what GA reports for page views.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![chrisdwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Post date:** [March 30, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/great-discrepancy-between-google-analytics-and-own-counter/164256/4 "2009-03-30T16:36:00Z")

</div>

Is it not that GA only reports hits where the user has allowed his  
browser  
to send data to Google? I for example definitely do not want google  
knowing  
what I do so have disabled this. Or am I misunderstanding something?  
Colin

2009/3/30 Greg D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
