Web Analytics · Comparison

Cloudflare Web Analytics vs. PostHog

Last verified 33 days ago · 39 sources · Updated automatically

Cloudflare Web Analytics and PostHog compared across Company facts, Pricing, Analytics capabilities, Privacy & compliance, Data ownership & deployment and Platform & integrations — every fact sourced and re-verified from each vendor's public material.

Cloudflare Web Analytics logo

Cloudflare Web Analytics

Free, privacy-first web analytics that tracks page views without cookies or fingerprinting.

Founded2009
HQ San Francisco, CA
PostHog logo

PostHog

All-in-one open-source platform for product analytics, web analytics, session replay, and feature flags.

Founded2020
HQ San Francisco, CA

Company facts

Headquarters
San Francisco, CA
San Francisco, CA PostHog is incorporated in San Francisco, CA but is a remote-first company with team across 20+ countries.
Employees
5.2k
202 Approximately 202 employees as of May 2026 per Tracxn; ~185 per April 2026 LinkedIn data.

Pricing

Offers Free Tier
Cloudflare Web Analytics is entirely free — there are no paid tiers for this product.
PostHog offers a perpetual free tier: 1M events/month at no cost, no credit card required, no expiry.
Free Trial Length (Days)
0 days
0 days No free trial period — PostHog provides a perpetual free tier instead of a time-limited trial.
Entry Plan Pageview Limit (Monthly)
1M Free tier includes 1M events/month. PostHog meters 'events' (not raw pageviews); each pageview fires as one event.
Entry Plan Website Limit
10 sites Soft limit of 10 sites per account (free product; raisable via Cloudflare support).
6 sites 6 projects on the paid (pay-as-you-go) plan; PostHog tracks per project. Free plan includes 1 project.

Analytics capabilities

Real-Time Dashboard
No live/current-visitors view; real-time dashboard updates are for paid zone analytics, not the free Web Analytics product.
PostHog's web analytics dashboard includes real-time data with live visitor activity.
Custom Event Tracking
Web Analytics tracks only pageviews/visits; custom event tracking requires the separate Zaraz product.
PostHog supports custom event tracking via JS SDK (posthog.capture()), autocapture, and data attributes.
Goal / Conversion Tracking
No goal or conversion rate reporting in Cloudflare Web Analytics.
Web analytics dashboard supports conversion goals: define a key event or action, see total/unique conversions and conversion rate.
Funnels
No
PostHog supports multi-step funnels with step-to-step drop-off analysis, breakdowns, and timings.
Ecommerce / Revenue Tracking
Revenue tracking is a Zaraz product feature, not part of Cloudflare Web Analytics.
PostHog supports revenue tracking: capture monetary values on events, Stripe integration, currency conversion, MRR/ARPU dashboards.
Heatmaps
No
PostHog includes click heatmaps, scroll maps, and rage-click detection as part of the platform (toolbar overlay).

Privacy & compliance

Cookieless Tracking
Cookieless by default — does not use cookies or localStorage to collect usage metrics.
PostHog supports cookieless tracking mode (cookieless_mode: always) where no persistent ID is stored in the browser.
Consent Banner Required
No cookie banner needed for Web Analytics alone; the tool sets no cookies and collects no personal identifiers.
Default PostHog configuration uses cookies/localStorage and requires a consent banner. Cookieless mode removes the requirement but is not the default.
GDPR Compliant
Cloudflare maintains a GDPR trust page and uses EU Standard Contractual Clauses for data transfers.
PostHog explicitly claims GDPR compliance with EU Cloud hosting, DPA, cookieless option, and data anonymization.
EU Data Residency
Free Web Analytics product does not offer EU data residency; Data Localization Suite is a separate enterprise add-on.
PostHog Cloud EU stores all data in AWS eu-central-1 (Frankfurt, Germany). Available at no extra cost.

Data ownership & deployment

Open Source
Proprietary cloud product. Counterscale is a separate MIT-licensed community project, not Cloudflare Web Analytics.
PostHog is open source under MIT license (with a proprietary EE directory). A fully FOSS mirror (posthog-foss) is also published.
License
proprietary
MIT Core product is MIT-licensed; /ee directory with enterprise features uses a separate proprietary license.
Self-Hostable
No
PostHog supports self-hosting via Docker Compose with documented install guides. Free for self-hosters.
Data Retention (Months)
6 mo Free plan retains approximately 6 months of analytics history.
84 mo Paid plans retain event data for 7 years (84 months); after 1 year data may move to cold storage (slower queries).
Unlimited Data Retention
No
Data retention is 7 years (84 months) on paid plans — finite, not unlimited.
Google Analytics Import
No
PostHog documents a GA-to-PostHog migration path via BigQuery export + Python SDK import, with official step-by-step docs.
Raw Data Export
Web Analytics (RUM) data is queryable and pageable via the GraphQL Analytics API; no in-dashboard CSV button.
PostHog supports raw event-level data export via Exports API, batch exports to S3/Postgres, and real-time pipeline destinations.

Platform & integrations

Has API
GraphQL Analytics API provides programmatic access to Web Analytics data.
PostHog provides a comprehensive REST API for querying analytics data, dashboards, exports, and more.
Tracking Script Size (KB)
11.2 KB Measured compressed transfer size.
66.7 KB Initial array.js payload; PostHog lazy-loads additional modules.
Official WordPress Plugin
No official Cloudflare-published WordPress plugin specifically for Web Analytics; community plugins exist.
No official PostHog-published WordPress plugin. PostHog docs describe manual snippet insertion; multiple third-party community plugins exist.
Email Reports
Weekly email digest reports available via Cloudflare's Notifications system.
PostHog supports scheduled email subscriptions for dashboards and insights (weekly, monthly, or custom schedule).
Public Dashboard Sharing
No public or shareable-link dashboard; sharing requires granting Cloudflare account access.
PostHog supports fully public dashboard sharing via a shareable link, no account required to view. Embeddable via iframe.

The verdict

Cloudflare Web Analytics logo Cloudflare Web Analytics
Best for simple, banner-free privacy traffic counts

The lighter, simpler option: entirely free with no event cap, cookieless by default with no consent banner required, and an 11.2 KB script versus PostHog's 66.7 KB. It also allows 10 sites on the free product against PostHog's single free project. The tradeoff is depth: no custom events, goals, funnels, heatmaps, or real-time view.

Full profile
PostHog logo PostHog
Best for product analytics depth and data ownership

The deeper, more flexible pick: custom events, conversion goals, funnels, heatmaps, revenue tracking, and a real-time dashboard, none of which Cloudflare Web Analytics offers. It is also MIT open source and self-hostable, with EU data residency, GA import, public dashboard sharing, and 84-month retention versus 6. Costs: a heavier 66.7 KB script and a consent banner by default.

Full profile

Sources · 39 verified references

sec.gov posthog.com tracxn.com cloudflare.com developers.cloudflare.com plausible.io + 5 more

Affiliate disclosure. DecisionWire may earn a commission when you sign up through links on this page. Commissions never influence our data, scores, or rankings.