Why 21YunBox Pricing Contact Log in
Talk to an expert Test your site in China

Does Cloudflare Web Analytics Work in China? Cookieless, but the Beacon Loads Offshore

Cloudflare Web Analytics is cookieless and privacy-first — by Cloudflare's own account it uses no cookies or localStorage and does not fingerprint visitors — so the China question is mostly delivery, not data residency. Its JavaScript beacon loads from Cloudflare's offshore edge, so for mainland visitors it is a cross-border fetch; when it is slow or blocked you lose the data, not the page. A reachability-first look, with the light residency and ICP lines that still apply.

Does Cloudflare Web Analytics work in China?

Whether Cloudflare Web Analytics “works” in China is first a reachability question, not a data-residency one — because Cloudflare built it to be cookieless. It is a privacy-first web-analytics product that drops a small JavaScript beacon in the visitor's browser, and by Cloudflare's own account it collects almost no personal data.

Cloudflare states the product “does not use any client-side state, such as cookies or localStorage, to collect usage metrics” and that it does not “fingerprint” visitors by IP or User-Agent for analytics — so the heavy China headline, a large cross-border transfer of personal data, is light here. What actually decides whether it works is delivery: Cloudflare has you “copy-paste a line of JavaScript” that reports “right from the client browser” to its global edge (static.cloudflareinsights.com), and for a mainland visitor that beacon is fetched across the border. When the offshore fetch is slow or fails you do not break the page — you simply stop seeing those visits, a blind spot over exactly your China audience. The table below is Cloudflare's own wording and the lines that still apply to your site.

This is a delivery-and-risk picture, not a verdict — the residency scope and your site's own filing turn on what you collect and where you host. Our China team can map your analytics blind spots and the in-country path with you →

What Cloudflare Analytics Insight's own documentation says about China

FactPrimary source
In Cloudflare's own words: Cloudflare Web Analytics “does not use any client-side state, such as cookies or localStorage, to collect usage metrics,” and Cloudflare adds that it does not “fingerprint” individuals “via their IP address, User Agent string, or any other data for the purpose of displaying analytics.” The personal-data footprint is deliberately small, which is why the China question here is delivery first, not a heavy PIPL one. Cloudflare — Web Analytics ("Privacy first" section), retrieved 2026-10-07
It works by a client-side beacon. Cloudflare's own sign-up steps say to “Install our lightweight JavaScript beacon” and to copy-paste “a line of JavaScript code into your site to start collecting metrics right from the client browser.” That beacon is served from Cloudflare's global edge (static.cloudflareinsights.com); for a visitor inside mainland China it is fetched across the border, not from in-country. Cloudflare — Web Analytics ("How to sign up" section), retrieved 2026-10-07
Because the beacon runs in the browser and reports to an offshore edge, reachability is the real exposure: an offshore fetch from inside the mainland can be slow, throttled or simply fail, and when it does the page is unaffected (the script is lightweight and loaded late) but the visit goes uncounted — a measurement blind spot over your China audience. We describe this qualitatively on purpose: we publish China performance numbers only with the method, sample and date behind them, and hold no first-party measurement of this specific beacon. Cloudflare — Web Analytics client-side beacon documentation, retrieved 2026-10-07; 21YunBox measurement discipline
Cookieless is not the same as nothing leaving the country. Each beacon call sends a thin slice of visit-level data (the page viewed, referrer, basic timings) to Cloudflare infrastructure outside the mainland, so a small cross-border element under PIPL remains for the handler — you, the site operator, not Cloudflare. Whether it rises to a transfer you must formally clear (notice, separate consent, a CAC mechanism) depends on what else you collect, your role and your volumes. Treat it as a light risk to confirm with counsel, not as either nothing or the whole story. PIPL Chapter III, Articles 38–43
The ICP line sits on your site, not the beacon. A measurement script carries no filing of its own, but a public site shown to mainland visitors from in-country infrastructure turns on an ICP filing (ICP 备案) under State Council Order No. 292 and MIIT Order No. 33, tied to a hosting resource physically inside the mainland. Adding Cloudflare Web Analytics neither creates nor removes that duty. State Council Order No. 292 (Measures for the Administration of Internet Information Services); MIIT Order No. 33

Sources verified by the 21YunBox compliance team on 2026-10-07.

For a China-facing site, the useful question about Cloudflare Web Analytics is not the one you might expect. Cloudflare built the product to be privacy-first and cookieless, so the usual China headline — a cross-border transfer of your visitors’ personal data — is light here, not heavy. What decides whether it actually works for mainland visitors is delivery: Web Analytics is a small JavaScript beacon that runs in the visitor’s browser and reports to Cloudflare’s global edge, and for someone inside mainland China that beacon is fetched across the border. When that offshore fetch is slow or fails, nothing on your page breaks — you simply stop seeing those visits. So the exposure here is a reachability-and-measurement one first, with a light residency thread and a single ICP line sitting behind it.

Cloudflare's Web Analytics product page, Privacy first section, stating that Cloudflare Web Analytics does not use any client-side state such as cookies or localStorage to collect usage metrics, and that it does not fingerprint individuals via their IP address or User Agent string
Cloudflare's own Web Analytics page, under “Privacy first,” states the product's minimal data footprint plainly: “Cloudflare Web Analytics does not use any client-side state, such as cookies or localStorage, to collect usage metrics.” It adds that it does not “fingerprint” individuals “via their IP address, User Agent string, or any other data for the purpose of displaying analytics.” That is why the China question here is delivery first, not a heavy data-residency one. Source: cloudflare.com/web-analytics

Cloudflare Web Analytics in China at a glance

What decides it What it means for a China-facing site
What it is Cloudflare's privacy-first web analytics — a lightweight JavaScript beacon that runs in the visitor's browser. Cookieless by design, so it carries little personal data; the China question is delivery first, not PIPL.
Cookies & personal data In Cloudflare's own words it “does not use any client-side state, such as cookies or localStorage,” and does not “fingerprint” visitors by IP address or User Agent for analytics. A deliberately small footprint.
Where the beacon loads from Cloudflare's global edge (static.cloudflareinsights.com). There is no in-country delivery by default, so for a mainland visitor the beacon is fetched across the border.
Reachable from the mainland? Reachable when the edge is healthy, but an offshore fetch can be slow, throttled or fail. When it does, your page is fine — the visit just goes uncounted. A measurement blind spot, not a broken page.
Residency & ICP A light cross-border element remains — a thin slice of visit data is processed offshore (confirm scope with counsel). The beacon needs no ICP filing of its own; the public site that embeds it does.

Cookieless by design — which is why this is a delivery question

Cloudflare is explicit about how little Web Analytics collects. On its product page it says the tool “does not use any client-side state, such as cookies or localStorage, to collect usage metrics,” and that it does not “fingerprint” individuals “via their IP address, User Agent string, or any other data for the purpose of displaying analytics.” That is a genuinely small data footprint, and it changes how you should judge the product in China. Because it sets no cookies, builds no per-visitor identifier, and ships no rich personal profile offshore, the heavy version of the China question — the large cross-border transfer of personal information that dominates a full identity, consent or login platform — simply is not the headline here. Bolting that story onto a cookieless analytics beacon would not be honest. The question that actually bites is whether the beacon can be fetched, reliably, from inside the mainland — because an analytics call that never arrives is a visitor you never count.

A client-side beacon, fetched from Cloudflare’s offshore edge

Web Analytics works the way Cloudflare’s own setup describes it: you “install our lightweight JavaScript beacon” by copy-pasting “a line of JavaScript code into your site to start collecting metrics right from the client browser.” In practice that is a small script served from Cloudflare’s global analytics edge (static.cloudflareinsights.com) that each visitor’s browser loads and then pings with the page view. For a visitor in San Francisco or Frankfurt that is a local, sub-second round trip. For a visitor inside mainland China it is a request to infrastructure outside the country, and it rides whatever the cross-border network is doing at that moment — which, for any offshore endpoint, can mean a slow, throttled or failed fetch. We put no number on that here: we publish China performance figures only with the method, sample and date behind them, and we hold no first-party measurement of this specific beacon to stand one on. The mechanism is the point. When the beacon stalls or never loads, the page itself is unaffected — the script is small and loaded late, not render-blocking — but the visit goes uncounted. Over a mainland audience that compounds into a measurement blind spot: your China traffic quietly under-reports, and the dashboard you steer by stops reflecting the users you most need to understand.

The residency thread is light — but not zero

Cookieless does not mean nothing leaves the country. Each time the beacon fires, a thin slice of visit-level information — which page was viewed, the referrer, basic performance timings — is sent to Cloudflare infrastructure outside the mainland, and Cloudflare’s edge necessarily sees the connection at the network level even though, by its own account, it does not turn that into a fingerprint for analytics. So there is a cross-border element here; it is simply a small one by design. Under China’s Personal Information Protection Law, processing your mainland users’ personal information on servers abroad is a cross-border matter for the handler — you, the site operator, not Cloudflare — to notice and justify, even when the data set is minimal. Whether that thin slice rises to a transfer you must formally clear depends on what else your site collects, your role, and your volumes; it is worth confirming with counsel rather than assuming either that it is nothing or that it is the whole story.

The ICP line falls on your site, not the beacon

One compliance line here has nothing to do with analytics at all. The beacon carries no filing of its own — it is a measurement script, not a hosted service. But the public site that embeds it does: a website shown to mainland visitors from in-country infrastructure turns on an ICP filing (ICP 备案) under State Council Order No. 292 and MIIT Order No. 33, tied to a hosting resource physically inside the mainland. Adding Cloudflare Web Analytics neither creates nor removes that duty — but a China-facing site that leans on an offshore beacon for its numbers while its own hosting and filing position is unsettled has two separate things to settle, not one.

This is a delivery-and-risk map, not a verdict: whether an unreliable offshore beacon merely dents your China analytics, or your own hosting and data position needs attention, depends on how your site is built, what it collects, and who your visitors are — worth settling with counsel and a look at your real setup.

Where 21YunBox fits — a compliant overlay, not a migration

You keep Cloudflare Web Analytics exactly where it is — the same beacon, the same dashboard, the same single line in your pages. What we take out is the offshore round trip underneath it: the beacon your visitors load is delivered from ICP-filed infrastructure inside the mainland, placed in front of the origin you already run, so the measurement call actually completes for mainland users and your China traffic shows up in the numbers again — no rebuild, no forked codebase, nothing new for your front-end team to learn. Alongside that, our China team looks at the parts an analytics beacon never covers for you: whether the thin cross-border slice it does send needs a formal mechanism for your volumes, and whether the site serving it is itself ICP-filed and hosted in-country. The beacon stays in your pages; what changes is where its bytes come from — so you can finally see the audience you are already serving.

Get a compliance assessment →


Related reading:

Frequently Asked Questions

Does Cloudflare Web Analytics set cookies or track my visitors in China?
By Cloudflare's own documentation, no. It states the product "does not use any client-side state, such as cookies or localStorage, to collect usage metrics," and does not "fingerprint" visitors via their IP address or User Agent for analytics. The personal-data footprint is deliberately small, which is why the main China question is whether its beacon reaches your mainland visitors — not a heavy data-residency one.
If the beacon is slow or blocked in China, what actually happens?
Your page keeps working — the beacon is a small, late-loading script, not render-blocking — but you stop receiving those visits in your analytics. The practical cost is a blind spot: your Chinese traffic quietly under-reports, so the dashboard you use to make decisions stops reflecting the mainland audience you most need to understand.
Can 21YunBox help us see our China visitors and stay compliant?
Yes. Our China team can assess the light cross-border and residency scope for the data your site handles, stand up ICP-filed, in-country delivery of the same Cloudflare beacon so the measurement call actually completes, and check whether the site embedding it needs its own ICP filing. Get in touch to work through your specific case.

ARTICLES RELATED TO CLOUDFLARE ANALYTICS INSIGHT

Make Your Site Work inside the Great Firewall of China

Enter your information, and our staff will assist you in getting a 21YunBox account for China.

Make Your Site Work Within the Great Firewall of China
Make Your Site Work Within the Great Firewall of China

By clicking 'Get Started', I also agree to 21YunBox's Terms of Service and Privacy Policy.