Research · Analytics

Cloudflare Analytics vs Google Analytics: why the numbers don't match

The short answer

Cloudflare counts every page it serves, whoever asked. Google Analytics counts only browsers that run its script. Bots, link previews and uptime checks typically ask for a page and run nothing, so Cloudflare counts them and Google Analytics does not see them.

On our own site in one week, Cloudflare showed 17,560 visits. A script in the browser, which is how Google Analytics counts, started 264 sessions. Cloudflare's visits were 67 times the script's sessions. That is one small site, and we used our own script, not Google's.

One site, one week, three countsharvv.com, November 23 to 30, 2026. One small site, so read the shape and not the size.
VisitsCloudflare dashboard
17,560
Sessions where a script ranthe way Google Analytics counts, before most bot filtering
264
Sessions that look like peoplebots, staff and tests taken out
213
See the numbers
CountNumberShare of Cloudflare visits
Visits (Cloudflare)17,560100%
Sessions where a script ran2641.5%
Sessions that look like people2131.2%

Data: Harvv and the Cloudflare dashboard, one site, one week

Why is Cloudflare higher than Google Analytics?

Because they count in different places. Cloudflare sits in front of your server and sees every page it serves, whoever asked. Google Analytics is a script inside the page, so it only reports when a browser loads the page and runs that script.

Cloudflare says so itself: its visitor numbers are "probably higher" than other tools report, because script-based tools miss bots and crawlers that do not run JavaScript (Cloudflare: about analytics).

Google also removes bots on its known-bot list. It says you cannot turn that off or see how much it removed (Google: known bot-traffic exclusion).

Who made up the gap?

Mostly callers that Cloudflare could not match to a browser. Of the 18,180 page views Cloudflare counted, 12,080 (66%) were in its "Unknown" row.

Who asked for the pages Cloudflare counted18,180 page views by the browser Cloudflare recognized, same site and week. Cloudflare lists its top nine; the rest are not shown.
Unknown or other
12,080 (66%)
Chrome
2,920 (16%)
Headless Chrome
876 (5%)
Chrome on a phone
501 (3%)
Safari on a phone
324 (2%)
Firefox
301 (2%)
Bingbot
297 (2%)
Safari
257 (1%)
curl
188 (1%)
See the numbers
Browser, as Cloudflare names itPage viewsShare
Unknown or other12,08066%
Chrome2,92016%
Headless Chrome8765%
Chrome on a phone5013%
Safari on a phone3242%
Firefox3012%
Bingbot2972%
Safari2571%
curl1881%

Data: Harvv and the Cloudflare dashboard, one site, one week

Cloudflare also lists callers by the name they sent. The top nine made 8,156 of the 18,180 page views, and we cannot see the rest. Facebook's link preview and Meta's indexer made 3,155 of the 18,180 page views (17%). Our own dashboard monitor, SEO checker and test runner made at least 3,246 (18%). None of them is a visitor. Our AI crawlers list says what each AI company's bot is for.

The nine most common callers, by the name they sent. 18,180 page views in all.
CallerPage views
Facebook link preview (facebookexternalhit)2,570
Our own dashboard monitor2,050
Our own SEO checker701
Headless Chrome on Linux681
Meta web indexer585
Our own test runner (Playwright)495
LinkupBot441
Chrome 81 on a Mac (a 2020 browser)339
Bingbot294

Some rows carry a browser's name and are still doubtful. 339 page views named Chrome 81, a browser from 2020. That is unlikely to be 339 real visits.

Why are Cloudflare's visits almost the same as its page views?

Cloudflare counts a visit when a page view comes from another website or a direct link. It checks whether the referrer matches your hostname (Cloudflare: zone analytics). A request with no referrer has nothing to match, so we read it as a new visit. A person clicking around your site makes one visit and several page views.

Bots typically send no referrer, so each page one asks for is a new visit. Here 17,050 of 18,180 page views (94%) had no referrer, which is why 17,560 visits sits so close to 18,180 page views. Nearly equal numbers mean few page views came from a click inside the site. Here that was because most callers were machines. A site where most people read one page and leave would look the same.

For scale: 167 of the 18,180 page views arrived from Google.

Which is more accurate, Cloudflare or Google Analytics?

They answer different questions. Cloudflare is accurate about load on your server: every page it serves, to a person or a machine. A script's number is closer to a count of people, and it is still not exact. It is wrong both ways.

How large the bot share runs on other sites is in Shopify bot traffic, measured.

Does Cloudflare Web Analytics match Google Analytics?

It should get much closer. We did not test it. Cloudflare has at least two products with similar names (Cloudflare: types of analytics). The Analytics tab on your domain counts requests at the network, and that is the number in this post. Cloudflare Web Analytics is a separate script in the page (Cloudflare: about Web Analytics), so it counts the way Google Analytics does.

They would still not agree exactly. Cloudflare counts visits by referrer, and Google counts sessions. We go through what the script version counts and misses in Cloudflare Web Analytics: is it accurate?

Which number should you use?

  1. Server load, cost and attacks: Cloudflare. A bot's request costs you the same as a person's.
  2. Marketing and sales: the script. Ads, search and conversion rates are about people, so start from the count that leaves most machines out. To ask an AI about those numbers, see our Google Analytics MCP setup guide.
  3. Do not divide one by the other. Orders from your store over visits from Cloudflare gives a conversion rate lower than the real one. On our site it would be many times lower.
  4. Check your own gap. In Cloudflare, open Analytics, then Visitors, and read the "Top browsers" list. A large "Unknown" row is a sign that much of your gap is machines.

What this does not show

How we measured this

How this was written. The Harvv numbers on this page come from our own data. I drafted it with an AI assistant, checked every number and claim against the query or source behind it, and edited the final text.

See who is really on your site.

Install Harvv and ask it how many of your visits were people. One script, 72 event types across 10 categories, no recordings or form values. Free for one site, no card.