PHPackages                             pixelopen/sulu-plausiblebundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pixelopen/sulu-plausiblebundle

ActiveSulu-bundle[Utility &amp; Helpers](/categories/utility)

pixelopen/sulu-plausiblebundle
==============================

This bundle allows you to integrate Plausible analytics statistics into the Sulu administration interface via an embedded iframe.

2.6.1(1y ago)0124MITPHPPHP ^8.2

Since Jun 28Pushed 1y agoCompare

[ Source](https://github.com/Pixel-Open/sulu-plausiblebundle)[ Packagist](https://packagist.org/packages/pixelopen/sulu-plausiblebundle)[ RSS](/packages/pixelopen-sulu-plausiblebundle/feed)WikiDiscussions develop Synced today

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Plausible Bundle for Sulu
==========================

[](#plausible-bundle-for-sulu)

This bundle allows you to integrate Plausible analytics statistics into the Sulu administration interface via an embedded iframe. [![Minimum PHP Version](https://camo.githubusercontent.com/e013d25225712daef79077a26c4a666153efa97434544fe6ad4641b529dd549e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e322d677265656e)](https://php.net/)[![Minimum Sulu Version](https://camo.githubusercontent.com/41ac6dc947faae456473023550dff677190cf95730511eb076f6d06ac4a2690a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73756c752d253345253344253230322e362d677265656e)](https://symfony.com)[![GitHub release](https://camo.githubusercontent.com/e4b0ba5707fb9575ca00203f17f1e34f3786ea6c78db2d0b9ff8f68de0d4267d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d4f70656e2f73756c752d706c61757369626c6562756e646c65)](https://github.com/Pixel-Open/sulu-plausiblebundle/releases)[![Quality Gate Status](https://camo.githubusercontent.com/18eecf2f68f2427c907b78be26e9b504daced59dfa9e5d0c85fc81562a3b5179/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d506978656c2d4f70656e5f73756c752d706c61757369626c6562756e646c65266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=Pixel-Open_sulu-plausiblebundle)

[![screenshot.png](src/Resources/doc/screenshot.png)](src/Resources/doc/screenshot.png)

❤️ Features
-----------

[](#️-features)

- ✅ Display Plausible statistics in Sulu admin
- ✅ Configuration via environment variables
- ✅ Support for custom Plausible instances
- ✅ Interface integrated with Sulu design
- ✅ Responsive and optimized for administration
- ✅ Multilingual support (English/French)
- ✅ Translation system using Sulu standards

🚀 Installation
--------------

[](#-installation)

1. Install the bundle with composer

```
composer require pixelopen/sulu-plausiblebundle
```

2. Create the file plausible.yaml in the config/packages folder

```
plausible:
  domain: '%env(PLAUSIBLE_DOMAIN)%'
  base_url: '%env(default:plausible_default_url:PLAUSIBLE_BASE_URL)%'
  auth_key: '%env(PLAUSIBLE_AUTH_KEY)%'

parameters:
  plausible_default_url: 'https://plausible.io'
```

3. Configure the environment variables in your `.env` file:

```
# Plausible Configuration
PLAUSIBLE_DOMAIN=your-domain.com
PLAUSIBLE_BASE_URL=https://plausible.io
PLAUSIBLE_AUTH_KEY=your-auth-key
```

4. Add the plausible.js file to the assets/admin folder located in the vendor/pixelopen/sulu-plausiblebundle/src/Resources/js/plausible.js folder.
5. Add plausible script on app.js to the asset/admin folder :

```
import './plausible';
```

6. Install all npm dependencies and build the admin UI ([see all options](https://docs.sulu.io/en/2.5/cookbook/build-admin-frontend.html)):

```
cd assets/admin
npm install
npm run build
```

⚙️ Configuration
----------------

[](#️-configuration)

### Environment Variables

[](#environment-variables)

- `PLAUSIBLE_DOMAIN`: The domain configured in Plausible (required)
- `PLAUSIBLE_BASE_URL`: The base URL of your Plausible instance (default: )
- `PLAUSIBLE_AUTH_KEY`: Authentication key for shared links (optional but recommended)

### Advanced Configuration

[](#advanced-configuration)

You can customize the configuration in `config/packages/plausible.yaml`:

```
plausible:
    domain: 'my-site.com'
    base_url: 'https://analytics.my-domain.com'
    auth_key: '%env(PLAUSIBLE_AUTH_KEY)%'
```

📖 Usage
-------

[](#-usage)

1. Log in to the Sulu administration
2. Add permission from User roles
3. Click on "Statistics" in the navigation menu
4. Statistics are displayed in an integrated iframe

✅ Requirements
--------------

[](#-requirements)

- Sulu CMS ^2.6
- PHP ^8.2
- A Plausible account with a configured domain
- Public sharing enabled in Plausible for your site

🏳️ Translations
---------------

[](#️-translations)

The bundle includes full translation support:

### Supported Languages

[](#supported-languages)

- **English** (`admin.en.json`)
- **French** (`admin.fr.json`)

### Translation Keys

[](#translation-keys)

- `plausible.statistics` - Main navigation title
- `plausible.configuration_missing` - Error message for missing config
- `plausible.domain_not_configured` - Domain configuration error
- `plausible.check_env_variable` - Environment variable check message
- `plausible.domain` - Domain label
- `plausible.statistics_for` - Iframe title with domain interpolation

### Adding New Languages

[](#adding-new-languages)

To add support for additional languages, create new translation files:

```
src/Resources/translations/admin.{locale}.json

```

📝 Notes
-------

[](#-notes)

- Ensure that public sharing is enabled in your Plausible settings
- The iframe uses the parameters: `embed=true&theme=light&background=transparent`
- The bundle automatically integrates into the administration navigation
- All user-facing text uses Sulu's translation system for internationalization support

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance49

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

369d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/56179468?v=4)[Angel Miranda](/maintainers/pixeldev)[@pixeldev](https://github.com/pixeldev)

---

Top Contributors

[![matthieu2607](https://avatars.githubusercontent.com/u/14790414?v=4)](https://github.com/matthieu2607 "matthieu2607 (9 commits)")

---

Tags

plausible-analyticssulu-bundle

### Embed Badge

![Health badge](/badges/pixelopen-sulu-plausiblebundle/health.svg)

```
[![Health](https://phpackages.com/badges/pixelopen-sulu-plausiblebundle/health.svg)](https://phpackages.com/packages/pixelopen-sulu-plausiblebundle)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[sulu/skeleton

Project template for starting your new project based on the Sulu content management system

29735.5k](/packages/sulu-skeleton)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

56146.1k2](/packages/sulu-headless-bundle)

PHPackages © 2026

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