PHPackages                             bt51/googleanalytics-serviceprovider - 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. bt51/googleanalytics-serviceprovider

ActiveLibrary

bt51/googleanalytics-serviceprovider
====================================

Google Analytics service provider for silex

1.0.2(13y ago)148MITPHPPHP &gt;=5.3.2

Since Nov 14Pushed 13y ago1 watchersCompare

[ Source](https://github.com/bt51/GoogleAnalyticsServiceProvider)[ Packagist](https://packagist.org/packages/bt51/googleanalytics-serviceprovider)[ Docs](https://github.com/bt51/GoogleAnalyticsServiceProvider)[ RSS](/packages/bt51-googleanalytics-serviceprovider/feed)WikiDiscussions master Synced 1mo ago

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

GoogleAnalyticsServiceProvider
==============================

[](#googleanalyticsserviceprovider)

The GoogleAnalyticsServiceProvider adds a twig function for GA tracking

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

[](#installation)

Create a composer.json your project

```
{
    "require": {
        "bt51/googleanalytics-serviceprovider": "dev-master"
    }
}

```

Read more on composer here:

Parameters
----------

[](#parameters)

- **ga.configuration**: An array with 'code' as the key and your GA code as the value

Registering
-----------

[](#registering)

See the *example/* directory to see how to register the service

Twig
----

[](#twig)

This service provider adds a twig function to output a view partial with the GA tracking script.

See the *example/* directory for more information on how to use it.

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

4925d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/657b13b4e96a9cc6bc1941e7b15957c5b2b47365e590d98a04b2684f9c107b5c?d=identicon)[bt51](/maintainers/bt51)

---

Tags

extensionsilexgoogle-analyticssilex-extension

### Embed Badge

![Health badge](/badges/bt51-googleanalytics-serviceprovider/health.svg)

```
[![Health](https://phpackages.com/badges/bt51-googleanalytics-serviceprovider/health.svg)](https://phpackages.com/packages/bt51-googleanalytics-serviceprovider)
```

###  Alternatives

[fof/analytics

Tracks analytics using Google Analytics, Google Optimize/GTM and Matomo

3543.1k](/packages/fof-analytics)

PHPackages © 2026

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