PHPackages                             evheniy/gtm-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. evheniy/gtm-bundle

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

evheniy/gtm-bundle
==================

The GtmBundle adds the ability to add Google Tag Manager code to your application.

1.7.0(10y ago)33.4kMITPHPPHP &gt;=5.3.0

Since Mar 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/evheniy/GtmBundle)[ Packagist](https://packagist.org/packages/evheniy/gtm-bundle)[ RSS](/packages/evheniy-gtm-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (10)Used By (0)

GtmBundle
=========

[](#gtmbundle)

[![knpbundles.com](https://camo.githubusercontent.com/4a1d5bc3555f4dcdbf3aa944e30579913d10146e7528a997c1635b9e30bcc195/687474703a2f2f6b6e7062756e646c65732e636f6d2f657668656e69792f47746d42756e646c652f6261646765)](http://knpbundles.com/evheniy/GtmBundle)

[![Latest Stable Version](https://camo.githubusercontent.com/637a1c633c99cfad761415094fa39782d07282c2888057ab24d7fa32e8e8290d/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f67746d2d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/evheniy/gtm-bundle) [![Total Downloads](https://camo.githubusercontent.com/bd40cfe1e6d89aafdf766831ab3708ac98d19066ea12d17922b5de4050a9e798/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f67746d2d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/evheniy/gtm-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/f2b978be53b411356af19e2003572f515479973db366b43daef57536d756d47d/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f67746d2d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/evheniy/gtm-bundle) [![License](https://camo.githubusercontent.com/67e361789402deb168eb0177c29ee9cae11026c53d2c08287ab6c3123a2bcbbe/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f67746d2d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/evheniy/gtm-bundle)

[![Build Status](https://camo.githubusercontent.com/283fc45b4eb8ba3f6459002b63620920c446db4f3c4f7a053cfedf77d13892fc/68747470733a2f2f7472617669732d63692e6f72672f657668656e69792f47746d42756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/evheniy/GtmBundle)[![Coverage Status](https://camo.githubusercontent.com/898a035d9df80485dd155a58099421c0a91fe6efcfb8e95fc87434873822313d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f657668656e69792f47746d42756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/evheniy/GtmBundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5f49ff2d278cad13fe41313d32549f70ecaefb2eae293c27eb37370b22860ff6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f47746d42756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/GtmBundle/?branch=master) [![Build Status](https://camo.githubusercontent.com/cfefd177666b6b7c4889a65bb8f7164819ff1e8b70b6e42c42b861fb1fa2a524/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f47746d42756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/GtmBundle/build-status/master)

This bundle provides Google Tag Manager in Symfony2

Documentation
-------------

[](#documentation)

You need to set GTM ID:

```
gtm:
    id: GTM-xxx

```

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

[](#installation)

```
$ composer require evheniy/gtm-bundle "1.*"

Or add to composer.json

"evheniy/gtm-bundle": "1.*"

AppKernel:
    public function registerBundles()
        {
            $bundles = array(
                ...
                new Evheniy\GtmBundle\GtmBundle(),
            );
            ...

config.yml:
    #GtmBundle
    gtm:
        id: GTM-xxx

{% include "GtmBundle:Gtm:gtm.html.twig" %}

```

License
-------

[](#license)

This bundle is under the [MIT](https://github.com/evheniy/GtmBundle/blob/master/Resources/meta/LICENSE) license.

[Документация на русском языке](http://makedev.org/articles/symfony/bundles/gtm_bundle.html)

[Google Tag Manager](http://www.google.com/tagmanager/)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~57 days

Total

9

Last Release

3821d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e25a30b83f9493998640ece1013e05059e4dd4ac55a482c650eb760ac37d843?d=identicon)[evheniy](/maintainers/evheniy)

---

Top Contributors

[![evheniy](https://avatars.githubusercontent.com/u/1702242?v=4)](https://github.com/evheniy "evheniy (45 commits)")

---

Tags

symfonygooglemanagertaglatestgtm

### Embed Badge

![Health badge](/badges/evheniy-gtm-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/evheniy-gtm-bundle/health.svg)](https://phpackages.com/packages/evheniy-gtm-bundle)
```

###  Alternatives

[bluepsyduck/symfony-process-manager

A process manager for Symfony processes, able to run them in parallel.

10784.6k3](/packages/bluepsyduck-symfony-process-manager)[lexik/data-layer-bundle

Manipulate the Google Tag Manager Data Layer from your Symfony application.

14114.2k](/packages/lexik-data-layer-bundle)

PHPackages © 2026

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