Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Been using CloudFlare for one of our sites for about a week now, and CloudFlare reports 450% more real visitor page views than Google Analytics (so that's not bots or blocked threats).

I understand that there will be discrepancy because CloudFlare is measuring all page requests, Google Analytics is firing off a JavaScript request once the page has downloaded, so I was prepared for a 20-30%, maybe 50% difference, but 450%?

Seems like there is a problem somewhere. I have used the Google Analytics debugger for chrome and everything seems to work fine. The GA code is in the head so should be fired quite promptly.

Is such a big gap normal? If so, why, and if not, what on earth is causing it?


Sorry, I don't think I was clear, I understood the differences between the CF and GA stats before I started with CF, and expected them to be different. It is the size of the difference that is concerning.

CF clearly separates bots & crawlers from regular visitors, so the figure I am comparing with GA is just the regular visitors; so the difference says that only 1 in 5 of visitors trigger Google Analytics?

"your CloudFlare visitor number is most likely higher"

Doesn't do it justice!

share|improve this question
I have the same problem with even a greater discrepancy. I think the number of visitors can be the reason. How many page-views does your GA report for a month? For me the number of page-views reported by CF for a specific period is 223.000.000 while the number reported by GA is 22.000.000. This definitely can not be due to robots or .js. I think this is due to data limit of GA as reported by itself they don't guarantee to deliver right data for more than 10m page-views a month. Anyway this is what I think and still I'm not sure. – Manoochehr Nov 6 '14 at 13:59

I have observed similar differences when comparing Apache logs with analytics and have seen a (one day) ratio of 1000:1. It is remotely possible that you have some userbase that blocks Google-Analytics with products like NoScript and Ghostery, or doesn't run any javascript at all. I have found that Piwik gives better reports and can be setup such that tracker blockers do not block its script and users with no javascript can still be tracked via a 1x1 pixel image tracking scheme. However, I have no actual experience with CloudFlare or CDNs in general, so I don't know if it impacts Piwik's reporting.

share|improve this answer
80% blocking GA seems very high to me, does that sound normal to you? Out of curiosity, What did you use to analyse apache logs and filter out bots & threats? – CodeMonkey Apr 20 '13 at 21:24
I think the typical percentage of users actively blocking through plugins would be less than 5%, but I have no real basis for this other than observing browsing habits of friends, co-workers, etc. For Apache logs I just use AWStats - doesn't filter anything, at least not how I have it set up. I switched to Piwik because one of my sites doesn't run any scripting and for other sites I just like the reports more. – Paul Apr 21 '13 at 1:24

CloudFlare acknowledge this and provide the following explanation:

CloudFlare Analytics vs. Other Services

Google Analytics and other web-based analytics programs track visitors that trigger JavaScript. As a result, threats, bots and automated crawlers are not recorded since these visitors typically do not trigger JavaScript. These services also don't track visitors who leave a page before it is fully loaded or have Javascript disabled. CloudFlare tracks all of your traffic by requests, so your CloudFlare visitor number is most likely higher.

Keep in mind: CloudFlare can only track visitors that go through the CloudFlare system, which is represented by an orange cloud on your DNS settings page.

They claim that their own analytics "are often more accurate than other services that rely on JavaScript."

share|improve this answer
thanks for your time, but I understand the reasoning, it's that my mind is blown by the scale of the difference! I had updated my question with a bit more detail – CodeMonkey Apr 13 '13 at 12:11

I've never looked at my Cloudflare Analytics until now, but yours are actually closer to Analytics than mine are. Cloudflare reports 20x the number of unique visits compared to Google, and it's approximately the same for Pageviews.

share|improve this answer
Interesting, so is that something you are likely to investigate further? – CodeMonkey Apr 20 '13 at 21:25
I looked through the logs a bit, and it seems to be mostly bots causing the discrepancy. That, and I have an "up-time" checker that runs on Google Docs which is hitting the site every 5 minutes. – nathangiesbrecht Apr 21 '13 at 15:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.