> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudflare

> Track privacy-friendly traffic metrics for your Sherpo site without extra scripts or cookies.

Cloudflare Web Analytics provides cookieless insights into your site traffic. Sherpo's native integration pushes page views straight to Cloudflare-no need to embed `<script>` tags manually.

***

## Why use Cloudflare Web Analytics?

* **Privacy-first**: No cookies, no personal data collection, yet you still get accurate traffic charts.
* **Lightweight**: Cloudflare's beacon is tiny and won't slow down your Sherpo site.
* **Simple setup**: You only need a token; Sherpo handles script injection for every page.
* **Unlimited sites**: Connect Cloudflare analytics separately for each Sherpo site if you run multiple storefronts.

***

## Generate a Cloudflare token

1. Sign in to your Cloudflare dashboard.
2. Go to **Web Analytics** and add a new **Domain** (e.g., `yourbrand.sherpo.io` or your custom domain).
3. Cloudflare shows a script snippet containing a token (`data-cf-beacon='{"token": "xxxxxxxx"}'`).
4. Copy the token value.

***

## Connect Cloudflare analytics in Sherpo

1. Open **Organization -> Integrations** in Sherpo.
2. Select **Cloudflare Web Analytics**.
3. Click **Configure** and paste the token.
4. Save. Sherpo injects Cloudflare's beacon on every public page for that site (space).

You can edit or remove the token later from the same screen.

***

## Verify data

* In Cloudflare Analytics, select your domain and check the dashboard. You should see page views within minutes.
* Filter by path or referrer to confirm Sherpo pages are being tracked.
* If no data appears, double-check the token and ensure the domain you added in Cloudflare matches your Sherpo site URL.

***

## Tips & best practices

* Use separate tokens for production vs. staging domains to keep reports clean.
* Combine Cloudflare analytics with GA4 or Meta Conversions if you need both cookieless insights and marketing attribution.
* Document which token belongs to which Sherpo site so teammates can update credentials when cloning spaces.

With Cloudflare Web Analytics connected, you get fast, privacy-friendly traffic analytics for every Sherpo-generated page-no extra scripts, cookies, or manual code changes required.
