How Cloudflare Analytics Works
Cloudflare Analytics works in a fundamentally different way from traditional visitor tracking tools. Instead of injecting JavaScript into the visitor's browser, Cloudflare counts requests at the CDN level -- on the server side -- before the page even reaches the user's browser.
What does that mean in practice? There's no script to load. No cookies being set. No data traveling to third-party servers. Every visit is recorded directly on Cloudflare's infrastructure, which your traffic already passes through.
The data you get is clean and straightforward: visitor count, page views, geographic location, device and browser type, traffic sources, and HTTP status codes. For most business presentation websites, that's everything you need to make informed decisions.
How Google Analytics 4 Works
Google Analytics 4 (GA4) takes a client-side approach. You embed a JavaScript snippet (gtag.js) on every page, which tracks what the user does -- which pages they visit, how long they stay, where they click, how far they scroll. All of that data gets sent to Google's servers, where it's processed and displayed in a dashboard.
This approach yields extremely detailed data. GA4 can track specific user interactions, conversions, e-commerce transactions, and user behavior through an entire funnel from first visit to purchase. The problem is the price of all that detailed tracking: slower pages, the need for cookies, GDPR complications, and vulnerability to ad blockers.
Privacy and GDPR Compliance
This is where the difference between the two systems becomes stark.
Google Analytics and cookie banners
GA4 uses cookies to track users across sessions and return visits. Under the European General Data Protection Regulation (GDPR) and the ePrivacy Directive, you must obtain explicit user consent before setting such cookies. That means you need a cookie banner.
The reality of cookie banners is bleak. Most visitors either immediately click "Reject" or simply leave the site when they see the popup. Research shows that only 20-30% of users actively accept cookies on consent banners. That means for 70-80% of your visitors, you have zero data because you're legally required to respect their choice.
This creates a paradox: the tool that's supposed to give you insight into visitor behavior actually only works for a minority of them.
Cloudflare without cookies
Cloudflare Analytics doesn't use cookies at all. It doesn't collect personal data. It doesn't identify individual users. All it does is count anonymous requests at the CDN level.
The result? You don't need a cookie banner. You don't need user consent. You don't need a cookie policy. Your site is automatically GDPR-compliant when it comes to analytics. Visitors get a clean experience without popups, and you get complete data on all visitors -- not just the ones who clicked "Accept."
Data Accuracy and Ad Blockers
This might be the most important practical argument. Google Analytics has a systemic problem that many website owners don't realize.
According to research, between 25% and 42% of internet users use some form of ad blocker. Virtually all ad blockers on the market automatically block the Google Analytics script because it loads from well-known Google domains that appear on every blocklist.
What does that mean for your data? If GA4 says you have 1,000 visitors per month, the actual number is probably closer to 1,400-1,700. A third to nearly half of your visitors are completely invisible.
Cloudflare Analytics counts visits at the CDN level, before the request even reaches the user's browser. Ad blockers can't block something that doesn't execute in the browser. Cloudflare captures every single request, so the numbers are close to 100% of actual traffic.
Impact on Page Speed
Every kilobyte of JavaScript on a page has a measurable impact on load time, and by extension on user experience and SEO rankings. Google itself states that page speed is a ranking factor in search results.
What Google Analytics adds to your page
- Core gtag.js script -- about 45 KB of compressed JavaScript
- Additional tracking modules -- 15-30 KB depending on configuration
- HTTP requests -- at least 2-4 extra requests to google-analytics.com and googletagmanager.com
- JavaScript execution -- parsing and running the script consumes CPU time, especially on lower-end mobile devices
In practice, Google Analytics adds 200-400 milliseconds to total page load time. On mobile networks with higher latency, that number can be even greater. It's a difference users can feel, and Google PageSpeed definitely measures it.
Cloudflare: zero client-side impact
Cloudflare Analytics doesn't add a single byte of code to your page. There's no script to load, no HTTP requests to make, no JavaScript to execute. Your page loads just as fast as if no analytics system existed at all. For a website that prioritizes speed and accessibility, that's a significant advantage.