PHPackages                             aimeos/laravel-analytics-cloudflare - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. aimeos/laravel-analytics-cloudflare

ActiveLibrary

aimeos/laravel-analytics-cloudflare
===================================

Cloudflare driver for Laravel Analytics Bridge

03PHP

Since Mar 16Pushed 1mo agoCompare

[ Source](https://github.com/aimeos/laravel-analytics-cloudflare)[ Packagist](https://packagist.org/packages/aimeos/laravel-analytics-cloudflare)[ RSS](/packages/aimeos-laravel-analytics-cloudflare/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-analytics-cloudflare
============================

[](#laravel-analytics-cloudflare)

Cloudflare driver for Laravel Analytics bridge.

Cloudflare Web Analytics requires two credentials to query data via the Analytics API:

- **siteTag** → A unique identifier for your website.
- **API Token** → An access token that authorizes your app to query the GraphQL API.

1. Find Your `siteTag`
----------------------

[](#1-find-your-sitetag)

The `siteTag` is generated when you enable **Web Analytics** for a domain.

1. Log in to [Cloudflare Dashboard](https://dash.cloudflare.com/).
2. Select your **website** from the list.
3. In the sidebar, go to **Analytics → Web Analytics**.
4. If you haven’t yet enabled Web Analytics, click **Enable Web Analytics** and follow the setup.
5. Cloudflare will show you a **JavaScript snippet** to embed in your site. Example: ```

    ```
6. Copy the `siteTag` value from inside the `data-cf-beacon` attribute.

> **Note**: The `siteTag` is unique per domain you configure.

---

2. Create an API Token
----------------------

[](#2-create-an-api-token)

You need a token to access the **Cloudflare GraphQL Analytics API**.

1. Go to your [Cloudflare Dashboard → My Profile → API Tokens](https://dash.cloudflare.com/profile/api-tokens).
2. Click **Create Token**.
3. Choose **Create Custom Token**.
4. Add permissions:
    - **Account → Analytics → Read**
    - (If you only want Web Analytics, this scope is enough.)
5. Select the **account** that contains your website.
6. Save and copy the generated **API Token**.

3. Configure in Analytics Bridge
--------------------------------

[](#3-configure-in-analytics-bridge)

The `./config/analytics-bridge.php` file already contains:

```
return [
    'default' => env('ANALYTICS_DRIVER'),

    'drivers' => [
        'cloudflare' => [
            'siteTag' => env('CLOUDFLARE_SITETAG'),
            'token' => env('CLOUDFLARE_TOKEN'),
        ],
        /* ... */
    ],
    /* ... */
];
```

Add the required key/value pairs to your `.env` file:

```
ANALYTICS_DRIVER="cloudflare"
CLOUDFLARE_SITETAG="..."
CLOUDFLARE_TOKEN="..."

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance59

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccdc84033584516c77fb6aa7f85dc7048f2fbcd08867fc6abf115d094bab5eef?d=identicon)[aimeos](/maintainers/aimeos)

---

Top Contributors

[![aimeos](https://avatars.githubusercontent.com/u/8647429?v=4)](https://github.com/aimeos "aimeos (2 commits)")

### Embed Badge

![Health badge](/badges/aimeos-laravel-analytics-cloudflare/health.svg)

```
[![Health](https://phpackages.com/badges/aimeos-laravel-analytics-cloudflare/health.svg)](https://phpackages.com/packages/aimeos-laravel-analytics-cloudflare)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
