Dashboard

← Back to Guides

Cloudflare Web Analytics

Privacy-first, free analytics. No cookies, accurate traffic data, Core Web Vitals.

What is Cloudflare Web Analytics?

Cloudflare Web Analytics gives you accurate website traffic data without using cookies or tracking individual visitors. It is completely free with no usage limits. Since it does not use cookies, it is not affected by ad blockers and does not require GDPR consent banners.

Tip: Use Cloudflare Web Analytics alongside Google Analytics. CF Analytics gives accurate traffic numbers, while GA4 provides conversion tracking and marketing insights.

Step 1: Get Your Analytics Token

  1. Log in to your Cloudflare Dashboard at dash.cloudflare.com
  2. Go to Web Analytics in the left sidebar (under Account Home)
  3. Click "Add a site"
  4. Enter your domain: bestphuketguide.com
  5. Choose "JS Snippet" as setup method
  6. Copy the token from the snippet. It looks like this:
data-cf-beacon='{"token": "abc123def456"}'

Your token is the value inside the quotes: abc123def456

Step 2: Configure in Admin Panel

  1. Go to Settings in your admin panel
  2. Click the "Analytics" tab
  3. Find "Cloudflare Web Analytics Token"
  4. Paste your token
  5. Click "Save Analytics Settings"

The beacon script will automatically load on every page of your public site.

What You Get

MetricDescription
Page ViewsTotal pages viewed
VisitsUnique sessions
Top PagesMost visited URLs
Top ReferrersWhere traffic comes from
CountriesVisitor locations
BrowsersChrome, Safari, Firefox, etc.
Core Web VitalsLCP, FID, CLS performance

CF Analytics vs Google Analytics

FeatureCloudflareGoogle Analytics
PriceFreeFree (with limits)
CookiesNoneUses cookies
GDPR consentNot requiredRequired
Ad blocker proofYesOften blocked
Conversion trackingNoYes
Custom eventsNoYes
Tip: Use both. Cloudflare for accurate traffic numbers. Google Analytics for conversion tracking and ad optimization.

All Analytics Options in Admin

Your admin Analytics tab supports all of these (configure any combination):

  • GTM Container ID: Google Tag Manager (manages all tags)
  • GA4 Measurement ID: Google Analytics 4 (conversion tracking)
  • Facebook Pixel ID: Meta advertising pixel
  • Cloudflare Web Analytics Token: Privacy-first traffic data
  • Custom Head Scripts: Any additional tracking code

Cost

Cloudflare Web Analytics is completely free with unlimited page views.

Related Guides