PHPackages                             heimrichhannot/contao-google-tag-manager-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. heimrichhannot/contao-google-tag-manager-bundle

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

heimrichhannot/contao-google-tag-manager-bundle
===============================================

This bundle offers google tag manager for the Contao CMS.

1.2.0(3y ago)2336[3 issues](https://github.com/heimrichhannot/contao-google-tag-manager-bundle/issues)LGPL-3.0-or-laterPHPPHP ^7.1 || ^8.0

Since Jun 5Pushed 3y ago5 watchersCompare

[ Source](https://github.com/heimrichhannot/contao-google-tag-manager-bundle)[ Packagist](https://packagist.org/packages/heimrichhannot/contao-google-tag-manager-bundle)[ RSS](/packages/heimrichhannot-contao-google-tag-manager-bundle/feed)WikiDiscussions master Synced 3w ago

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

Contao Google Tag Manager Bundle
================================

[](#contao-google-tag-manager-bundle)

[![](https://camo.githubusercontent.com/458c847551f0238d315dd05965b833770e60afb2f99d8d418dc98353866562f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865696d7269636868616e6e6f742f636f6e74616f2d676f6f676c652d7461672d6d616e616765722d62756e646c652e737667)](https://camo.githubusercontent.com/458c847551f0238d315dd05965b833770e60afb2f99d8d418dc98353866562f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865696d7269636868616e6e6f742f636f6e74616f2d676f6f676c652d7461672d6d616e616765722d62756e646c652e737667)[![](https://camo.githubusercontent.com/3f1e7d8d7609a4342191eadf5f82a29e6fa59f5d2d16ffbdb17ad24fa74b9e95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6865696d7269636868616e6e6f742f636f6e74616f2d676f6f676c652d7461672d6d616e616765722d62756e646c652e737667)](https://camo.githubusercontent.com/3f1e7d8d7609a4342191eadf5f82a29e6fa59f5d2d16ffbdb17ad24fa74b9e95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6865696d7269636868616e6e6f742f636f6e74616f2d676f6f676c652d7461672d6d616e616765722d62756e646c652e737667)[![](https://camo.githubusercontent.com/018990bd0495ecc7f47260be3538cc3c8c26d17aed01c53370b5cc7d2661bdfc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6865696d7269636868616e6e6f742f636f6e74616f2d676f6f676c652d7461672d6d616e616765722d62756e646c652f6d61737465722e737667)](https://travis-ci.org/heimrichhannot/contao-google-tag-manager-bundle/)[![](https://camo.githubusercontent.com/ef7c56663607a57c81ff4ca81e2c6c3dd6c83b6458d47c1509933e3be95cbab0/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6865696d7269636868616e6e6f742f636f6e74616f2d676f6f676c652d7461672d6d616e616765722d62756e646c652f6d61737465722e737667)](https://coveralls.io/github/heimrichhannot/contao-google-tag-manager-bundle)

Setup
-----

[](#setup)

1. Install with composer or contao manager

    ```
     composer require heimrichhannot/contao-google-tag-manager-bundle

    ```
2. Update your database
3. Adjust your fe\_page template

    - Add `` to your head section
    - Add `` to before the body closing tag

Advanced usage
--------------

[](#advanced-usage)

### add data layer variables to a page

[](#add-data-layer-variables-to-a-page)

`System::getContainer()->get('huh.google_tag_manager.data_layer')->setContent(['key' => 'value']);`

### add an a tag with data layer event handler

[](#add-an-a-tag-with-data-layer-event-handler)

`System::getContainer()->get('huh.google_tag_manager.tag_manager')->getLink(class, link, linkText, ['event': 'button1-click'])`

This will output: `linkText`

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity73

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

Recently: every ~393 days

Total

8

Last Release

1361d ago

PHP version history (2 changes)1.0.0PHP ^7.1

1.2.0PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/28ad3224d8727b622ebd229840eea6b9dbcb83eb0bd609e6ce65b614830ff538?d=identicon)[digitales@heimrich-hannot.de](/maintainers/digitales@heimrich-hannot.de)

---

Top Contributors

[![koertho](https://avatars.githubusercontent.com/u/12064642?v=4)](https://github.com/koertho "koertho (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/heimrichhannot-contao-google-tag-manager-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/heimrichhannot-contao-google-tag-manager-bundle/health.svg)](https://phpackages.com/packages/heimrichhannot-contao-google-tag-manager-bundle)
```

###  Alternatives

[metamodels/core

MetaModels core

10156.4k67](/packages/metamodels-core)[heimrichhannot/contao-encore-bundle

This bundle brings deep integration for symfony encore into contao. On the one hand, your can prepare your bundles to define own webpack entries, which added with just one command to your webpack entries. On the other hand, this bundle allows you to add encore entries only on the pages you need them for optimizing your website performance.

1016.6k](/packages/heimrichhannot-contao-encore-bundle)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3189.0k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3177.0k6](/packages/terminal42-contao-node)[markocupic/calendar-event-booking-bundle

Contao Calendar Event Booking Bundle

135.2k1](/packages/markocupic-calendar-event-booking-bundle)

PHPackages © 2026

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