Cloudflare Web Analytics

Cloudflare Web Analytics

Cloudflare Web Analytics is a privacy-focused web analytics service. Scripts track page views and Core Web Vitals performance metrics without setting cookies or collecting personally identifiable information. Data is aggregated at the edge and does not build individual visitor profiles.

Overview

Cloudflare Web Analytics is a privacy-oriented analytics service that measures website traffic and performance without using cookies or collecting personally identifiable information. It operates through a lightweight JavaScript beacon that reports page views and Core Web Vitals performance metrics (Largest Contentful Paint, First Input Delay, Cumulative Layout Shift) directly to Cloudflare's edge network. The service is designed as a privacy-first alternative to traditional analytics platforms that rely on cookies and unique visitor identification.

What This Script Does

The Cloudflare Web Analytics beacon loads as a small JavaScript snippet from Cloudflare's CDN.

  • Script loaded: static.cloudflareinsights.com/beacon.min.js — a lightweight beacon script (~5KB) that collects page performance and traffic data
  • No cookies set: Cloudflare Web Analytics does not set any cookies, use localStorage, or store any identifiers on the visitor's device. This is a core design principle, not a configuration option.
  • No unique identifiers: The service does not generate visitor IDs, session IDs, or browser fingerprints. All data is aggregated — there is no concept of a "unique visitor" in the traditional analytics sense.
  • Data collected per page view: Page URL, referrer, browser user agent (aggregated, not stored per-visitor), page load timing metrics (Core Web Vitals), country derived from IP address (IP is not stored), and HTTP response status code
  • Network request: A single POST request to cloudflareinsights.com transmits the page view data. The request payload contains no personally identifiable information.
  • Performance metrics: The beacon measures real user monitoring (RUM) data including LCP, FID/INP, CLS, TTFB, and page load time, providing Core Web Vitals reporting alongside traffic analytics.

Consent & Compliance

Cloudflare Web Analytics falls under the analytics consent category, though its privacy design simplifies compliance significantly.

Under GDPR and ePrivacy, Cloudflare Web Analytics presents an unusual case for an analytics tool. It sets no cookies and stores no information on the user's device, which means the ePrivacy Directive's cookie consent requirement does not apply. The beacon transmits only aggregated, non-identifying data. IP addresses are used for country-level geolocation but are not stored or logged. Several privacy-focused analyses have concluded that Cloudflare Web Analytics can operate without consent under the ePrivacy Directive because it does not access or store information on the user's terminal equipment. However, the GDPR's broader scope still applies to any processing of personal data (even IP addresses used transiently), and some strict interpretations may still require a legal basis.

Under CCPA/CPRA, the aggregated, non-identifying nature of the data collection means Cloudflare Web Analytics does not process personal information in a way that triggers CCPA obligations for "sale" or "sharing."

Should You Block This Without Consent?

Yes. Despite its privacy-first design, Cloudflare Web Analytics is classified as an analytics service and should be managed under analytics consent for consistency with the site's consent framework. From a strict regulatory perspective, the absence of cookies and unique identifiers means it could operate without consent under the ePrivacy Directive, and some organizations choose to load it without consent on that basis. However, ConsentStack classifies it as analytics, and the conservative approach is to respect that classification in your consent management.

Visit website

Consent Categories

Analytics

Also Known As

cloudflare web analyticscloudflare analytics privacycookie free analyticscloudflare rumprivacy focused analytics

Industries

Computer SecurityComputers Electronics and Technology

Tracked Domains (1)

static.cloudflareinsights.comAnalytics

Frequently Asked Questions

Do I need consent for Cloudflare Web Analytics?

No consent is strictly required under ePrivacy — Cloudflare Web Analytics sets no cookies and stores no identifiers on the visitor's device. However, ConsentStack classifies it as analytics, and the conservative approach is to load it under analytics consent.

What data does Cloudflare Web Analytics collect?

The beacon.min.js script from static.cloudflareinsights.com collects page URL, referrer, browser type, country (derived from IP, not stored), Core Web Vitals (LCP, FID, CLS), and HTTP status. No cookies, no unique visitor IDs, no fingerprinting.

How does ConsentStack handle Cloudflare Web Analytics?

ConsentStack places Cloudflare Web Analytics in the analytics category. Because it sets no cookies and stores no personal data, some operators load it without consent gating. ConsentStack respects whichever approach the site owner configures.

Other Cloudflare Products

Related Vendors

Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Google Analytics
Google Analytics
Google Analytics is the world's most widely deployed web analytics platform. Scripts track page views, sessions, user demographics, traffic sources, and conversion events. Drops cookies to identify returning visitors and attribute user journeys across sessions.
Firebase
Firebase
Firebase is Google's mobile and web application development platform offering authentication, real-time database, cloud functions, and analytics. Web SDK scripts initialize Firebase services and may track app events via Firebase Analytics, which is powered by Google Analytics 4. Widely used in single-page apps and PWAs for backend infrastructure and usage tracking.
Microsoft
Microsoft
Runs Clarity (session recording and heatmaps), the Microsoft Advertising UET tag (conversion tracking), and Bing's remarketing pixel. Clarity injects a recording script that captures mouse movements, clicks, and rage clicks. The UET tag fires conversion events to tie ad clicks to on-site actions across Microsoft's ad network.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
LinkedIn Insight Tag
LinkedIn Insight Tag
LinkedIn Insight Tag is a JavaScript tracking pixel for LinkedIn's advertising and analytics platform. The tag fires on every page view to collect URL, referrer, IP address, and device data for conversion tracking, website demographics reporting, and retargeting audience building. Sets cookies to identify LinkedIn members across advertiser websites.

Manage consent for Cloudflare Web Analytics

ConsentStack automatically detects and manages Cloudflare Web Analytics trackers so your site stays compliant with global privacy regulations.