PHPackages                             samuelmc/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. [API Development](/categories/api)
4. /
5. samuelmc/google-analytics-bundle

ActiveSymfony-bundle[API Development](/categories/api)

samuelmc/google-analytics-bundle
================================

Google Analytics Bundle for Symfony

2.0.0(9y ago)165MITPHPPHP &gt;=5.5.9

Since Jul 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/samuelmc/google-analytics-bundle)[ Packagist](https://packagist.org/packages/samuelmc/google-analytics-bundle)[ RSS](/packages/samuelmc-google-analytics-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (8)Versions (9)Used By (0)

google-analytics-bundle *(SamuelGaBundle)*
==========================================

[](#google-analytics-bundle-samuelgabundle)

**Google Analytics Bundle for Symfony**

[![SensioLabsInsight](https://camo.githubusercontent.com/b52455b994d660bdfea26901d2aa46a087a4ab861b7c88a0dae343418444e1fb/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36666339323463322d363431312d346361302d613064362d6139393462366263373761332f6269672e706e67)](https://insight.sensiolabs.com/projects/6fc924c2-6411-4ca0-a0d6-a994b6bc77a3)

This bundle adds the Google Analytics code to every page except those that match the "exclude\_path" parameter.

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

[](#installation)

composer require samuelmc/google-analytics-bundle ([view on packagist](https://packagist.org/packages/samuelmc/google-analytics-bundle))

add the bundle in AppKernel:

```
new Samuelmc\GaBundle\SamuelGaBundle()
```

import the services in config.yml:

```
imports:
    - { resource: security.yml }
    - { resource: services.yml }
    ...
    - { resource: "@SamuelmcGaBundle/Resources/config/services.yml" }
```

Configuration
-------------

[](#configuration)

there are two parameters to configure under samuel\_ga:

- tracking\_id: your Google Analytics tracker code.
- exclude\_paths: a regex string which filters out paths that should not be tracked by Google Analytics. Default: '(^/(\_profiler|\_wdt).+)'

```
samuelmc_ga:
    tracking_id: "UA-..."
    exclude_paths: '(^\/(_profiler|_wdt).+)'
```

\##License

[![MIT Licence](https://camo.githubusercontent.com/fabb40ab22588a0746bb0916ed92739171bde7fb31f281c627aa588bcba62cc2/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f6d69742f6d69742e7376673f763d313033)](https://opensource.org/licenses/mit-license.php)

***© Samuel Moncarey***

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~51 days

Recently: every ~80 days

Total

8

Last Release

3289d ago

Major Versions

1.0.x-dev → 2.0.0-alpha2017-06-30

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13014590?v=4)[Samuel Moncarey](/maintainers/samuelmc)[@samuelmc](https://github.com/samuelmc)

---

Top Contributors

[![samuelmc](https://avatars.githubusercontent.com/u/13014590?v=4)](https://github.com/samuelmc "samuelmc (21 commits)")

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M731](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M560](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k60](/packages/open-dxp-opendxp)

PHPackages © 2026

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