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.
See the numbers
| Count | Number | Share of Cloudflare visits |
|---|---|---|
| Visits (Cloudflare) | 17,560 | 100% |
| Sessions where a script ran | 264 | 1.5% |
| Sessions that look like people | 213 | 1.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.
See the numbers
| Browser, as Cloudflare names it | Page views | Share |
|---|---|---|
| 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% |
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.
| Caller | Page views |
|---|---|
| Facebook link preview (facebookexternalhit) | 2,570 |
| Our own dashboard monitor | 2,050 |
| Our own SEO checker | 701 |
| Headless Chrome on Linux | 681 |
| Meta web indexer | 585 |
| Our own test runner (Playwright) | 495 |
| LinkupBot | 441 |
| Chrome 81 on a Mac (a 2020 browser) | 339 |
| Bingbot | 294 |
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.
- It counts some bots. A bot that runs a real browser runs the script too. Of the 264 sessions, 41 were flagged as bots and 10 were our own staff or tests. That left 213.
- Some of the rest are doubtful. 80 of those 213 sessions lasted under three seconds with no scrolling. Some are people who left at once. Some are bots nobody has flagged yet. We cannot tell which from this data.
- It misses some people. A visitor whose browser blocks the script is not counted. We did not measure how many that was.
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?
- Server load, cost and attacks: Cloudflare. A bot's request costs you the same as a person's.
- 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.
- 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.
- 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
- It is one site in one week. Our site is small, so machines are a large share of it. We made at least 3,246 of the 18,180 page views (18%) ourselves. We would expect a smaller gap on a busy store, and we did not measure one here.
- We did not run Google Analytics on the site. Our own script stands in for it because both count the same way. Google's number would differ, since it removes bots by its own list, and we do not know by how much.
- We did not count visitors who block scripts, so 213 misses some people. It may also still hold some bots.
- Cloudflare's count covers every hostname under the domain. On the one day we checked in our server logs, about 4% of page requests went to a subdomain such as our docs.
- What would change our mind: a site where Cloudflare's "Unknown" browsers are a small share and the two counts still differ many times over. That would point to something other than machines.
How we measured this
- One site, harvv.com, for the seven days ending November 30, 2026 at 12:21 UTC. Both counts cover the same seven days.
- Cloudflare's numbers are from the Cloudflare dashboard: the domain's Analytics tab, Visitors view, "Last 7 days". Cloudflare rounds them, and its lists show the top nine rows only.
- The script's numbers are sessions started by Harvv's own script on the same site. "Flagged as bots" uses Harvv's bot rules. Staff and test sessions are our own signed-in use, automated tests and two test visits we made that week. Bot flags are as they stood on November 30. Harvv turns away some known bots before a session starts, so 264 may be low for "a script ran". We did not count how many were turned away.
- The site sits behind Cloudflare, so every page request passes through it before it reaches us.
- Cloudflare's and Google's rules are quoted from their help pages, read on November 30, 2026.
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.