PHPackages                             leblanc-simon/google-analytics-bundle - 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. leblanc-simon/google-analytics-bundle

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

leblanc-simon/google-analytics-bundle
=====================================

Add the javascript code for Google Analytics

1.0.0(9y ago)014MITPHPPHP &gt;=5.5.9

Since Mar 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/leblanc-simon/google-analytics-bundle)[ Packagist](https://packagist.org/packages/leblanc-simon/google-analytics-bundle)[ RSS](/packages/leblanc-simon-google-analytics-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

GoogleAnalyticsBundle
=====================

[](#googleanalyticsbundle)

Description
-----------

[](#description)

this bundle inject the Google Analytics javascript code when an ID is defined

Installation
------------

[](#installation)

- install the bundle

```
composer require leblanc-simon/google-analytics-bundle
```

- activate the bundle

```
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new LeblancSimon\GoogleAnalyticsBundle\LeblancSimonGoogleAnalyticsBundle(),
        ];
    }
}
```

Nothing else to do. The HTML will be automatically injected for the text/html response.

Customization
-------------

[](#customization)

### Configuration

[](#configuration)

you can customized the bundle with a configuration :

```
leblanc_simon_google_analytics:
    # The ID of the Google Analytics account
    id: Google Analytics ID
    # The template use in the injection
    template: 'LeblancSimonGoogleAnalyticsBundle::google_analytics.html.twig'
```

or just via `parameters.yml` (think to add it in the `parameters.yml.dist`) :

```
google_analytics.id: 'Google Analytics ID'
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fc78f90d0b6d0192015d2262e2d8349c17a46b28c23f0f8ea9f0399ebf8d038?d=identicon)[leblanc-simon](/maintainers/leblanc-simon)

---

Top Contributors

[![leblanc-simon](https://avatars.githubusercontent.com/u/605746?v=4)](https://github.com/leblanc-simon "leblanc-simon (1 commits)")

### Embed Badge

![Health badge](/badges/leblanc-simon-google-analytics-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/leblanc-simon-google-analytics-bundle/health.svg)](https://phpackages.com/packages/leblanc-simon-google-analytics-bundle)
```

###  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.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

32642.2k23](/packages/symfony-ai-bundle)[sylius/taxonomy-bundle

Flexible categorization system for Symfony.

26411.5k9](/packages/sylius-taxonomy-bundle)[sylius/inventory-bundle

Flexible inventory management for Symfony applications.

19189.5k6](/packages/sylius-inventory-bundle)[yceruto/formflow-bundle

Create and manage multistep forms

2414.8k](/packages/yceruto-formflow-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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