PHPackages                             yireo/magento2-googletagmanager2 - 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. yireo/magento2-googletagmanager2

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

yireo/magento2-googletagmanager2
================================

Add Google Tag Manager to Magento

3.10.7(2mo ago)167930.4k—4.7%82[24 issues](https://github.com/yireo/Yireo_GoogleTagManager2/issues)[4 PRs](https://github.com/yireo/Yireo_GoogleTagManager2/pulls)5OSL-3.0PHPPHP ^7.4|^8.1CI passing

Since Dec 26Pushed 2mo ago18 watchersCompare

[ Source](https://github.com/yireo/Yireo_GoogleTagManager2)[ Packagist](https://packagist.org/packages/yireo/magento2-googletagmanager2)[ Docs](https://www.yireo.com/software/magento-extensions/googletagmanager2)[ GitHub Sponsors](https://github.com/sponsors/jissereitsma)[ GitHub Sponsors](https://github.com/sponsors/yireo)[ RSS](/packages/yireo-magento2-googletagmanager2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (146)Used By (5)

Magento 2 module for Google Tag Manager
=======================================

[](#magento-2-module-for-google-tag-manager)

**A client-side implementation of Google Tag Manager for Magento 2**

**Also see: **

[![Latest Stable Version](https://camo.githubusercontent.com/0843106923e4280777c17e4d4f9b57e4dfa886bd79850a765a38d8c8a3c5dea6/68747470733a2f2f706f7365722e707567782e6f72672f796972656f2f6d6167656e746f322d676f6f676c657461676d616e61676572322f76)](//packagist.org/packages/yireo/magento2-googletagmanager2) [![Total Downloads](https://camo.githubusercontent.com/4f20f08754f0af5ebdf5d476eacd4ded71d08ff8fbf5769ecdfb57e094341306/68747470733a2f2f706f7365722e707567782e6f72672f796972656f2f6d6167656e746f322d676f6f676c657461676d616e61676572322f646f776e6c6f616473)](//packagist.org/packages/yireo/magento2-googletagmanager2) [![License](https://camo.githubusercontent.com/f12dabe3476a286826a553b507eaa9a64f45864787320cd2f744633d25d04d62/68747470733a2f2f706f7365722e707567782e6f72672f796972656f2f6d6167656e746f322d676f6f676c657461676d616e61676572322f6c6963656e7365)](//packagist.org/packages/yireo/magento2-googletagmanager2)

[![Unit Tests](https://github.com/yireo/Yireo_GoogleTagManager2/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/yireo/Yireo_GoogleTagManager2/actions/workflows/unit-tests.yml)[![Static Tests](https://github.com/yireo/Yireo_GoogleTagManager2/actions/workflows/static-tests.yml/badge.svg)](https://github.com/yireo/Yireo_GoogleTagManager2/actions/workflows/static-tests.yml)[![Integration Tests](https://github.com/yireo/Yireo_GoogleTagManager2/actions/workflows/integration-tests.yml/badge.svg)](https://github.com/yireo/Yireo_GoogleTagManager2/actions/workflows/integration-tests.yml)[![DI Compilation](https://github.com/yireo/Yireo_GoogleTagManager2/actions/workflows/compile.yml/badge.svg)](https://github.com/yireo/Yireo_GoogleTagManager2/actions/workflows/compile.yml)

[![Luma Themes compatible](https://camo.githubusercontent.com/4342b6bf443864901b45e618c009a01bf19cc3e9f844dc51c970fb5ef5d4824a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c756d612532305468656d65732d636f6d70617469626c652d626c75653f7374796c653d666c6174)](https://camo.githubusercontent.com/4342b6bf443864901b45e618c009a01bf19cc3e9f844dc51c970fb5ef5d4824a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c756d612532305468656d65732d636f6d70617469626c652d626c75653f7374796c653d666c6174)[![Hyvä Themes compatible](https://camo.githubusercontent.com/e03743d44f29dc9fe7d44b7c65ba84707735b80bdc94c04cba2591d78ecc5755/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4879762543332541342532305468656d65732d636f6d70617469626c652d626c75653f7374796c653d666c6174)](https://camo.githubusercontent.com/e03743d44f29dc9fe7d44b7c65ba84707735b80bdc94c04cba2591d78ecc5755/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4879762543332541342532305468656d65732d636f6d70617469626c652d626c75653f7374796c653d666c6174)

Requirements
------------

[](#requirements)

Supported versions: Magento 2.3.7 or higher and 2.4.1 or higher (partially because of the requirement for PHP 7.4 or PHP 8.1).

See `composer.json` for other requirements.

About version 3
---------------

[](#about-version-3)

The `Yireo_GoogleTagManager2` module was refactored heavily: The architecture was redesigned, GA4 support was being added, GA3 support (aka UA/EE) was being removed, click-events were added and overall there was a huge extensibility being added. The refactoring has come available under a new major version 3. If you were not using this extension yet, you can just proceed with the composer installation which will pick this new version. If you were using major version 2 in the past, edit your `composer.json` file manually to use the new version `^3.0`. Alternatively, update your `composer.json` by using the command `composer require yireo/magento2-googletagmanager2:^3.0 --no-update`. Next, upgrade with `composer update`.

See also
--------

[](#see-also)

- [Installation](INSTALL.md)
- [Usage](USAGE.md)
- [Tutorial](TUTORIAL.md)
- [FAQ](FAQ.md)
- [Architecture](ARCHITECTURE.md)
- [Testing](TESTING.md)
- [CHANGELOG](CHANGELOG.md)
- [License](LICENSE.txt)

Support &amp; Professional Services
-----------------------------------

[](#support--professional-services)

This extension is released as **free and open source software**.
You are free to use, study, modify and distribute the code according to the license terms.

While the extension itself is available at no cost, professional assistance is available for merchants, agencies and developers who require guaranteed help, customizations or consultancy.

### Professional support

[](#professional-support)

Commercial support, training and consultancy can be obtained through **Yireo**:

- Magento 2 consultancy and architecture guidance
- Custom feature development
- Debugging and performance optimization
- Implementation support and best-practice advice
- Developer training and workshops

If you require professional support, please contact Yireo:

👉

Yireo is a Dutch company focused on Magento development, training and extension development, actively maintaining various open-source Magento projects.

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance82

Actively maintained with recent releases

Popularity58

Moderate usage in the ecosystem

Community38

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 89.7% 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 ~25 days

Recently: every ~31 days

Total

145

Last Release

84d ago

Major Versions

0.3.18 → 1.0.02019-02-22

1.1.3 → 2.0.12020-07-29

2.1.8 → 3.0.02022-12-12

PHP version history (4 changes)0.1.0PHP &gt;=5.6.0

0.3.0PHP &gt;=7.0.0

2.0.1PHP &gt;=7.2.0

3.0.0PHP ^7.4|^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (840 commits)")[![samicoman](https://avatars.githubusercontent.com/u/8766784?v=4)](https://github.com/samicoman "samicoman (25 commits)")[![sprankhub](https://avatars.githubusercontent.com/u/930199?v=4)](https://github.com/sprankhub "sprankhub (17 commits)")[![WouterSteen](https://avatars.githubusercontent.com/u/5089604?v=4)](https://github.com/WouterSteen "WouterSteen (11 commits)")[![tdgroot](https://avatars.githubusercontent.com/u/1165302?v=4)](https://github.com/tdgroot "tdgroot (5 commits)")[![meminuygur](https://avatars.githubusercontent.com/u/21062398?v=4)](https://github.com/meminuygur "meminuygur (3 commits)")[![henkvalk](https://avatars.githubusercontent.com/u/8955854?v=4)](https://github.com/henkvalk "henkvalk (3 commits)")[![taoufiqaitali](https://avatars.githubusercontent.com/u/22837086?v=4)](https://github.com/taoufiqaitali "taoufiqaitali (3 commits)")[![jemoon](https://avatars.githubusercontent.com/u/3430741?v=4)](https://github.com/jemoon "jemoon (2 commits)")[![pgrigoruta](https://avatars.githubusercontent.com/u/1782518?v=4)](https://github.com/pgrigoruta "pgrigoruta (2 commits)")[![koenner01](https://avatars.githubusercontent.com/u/13639210?v=4)](https://github.com/koenner01 "koenner01 (2 commits)")[![gdelmer](https://avatars.githubusercontent.com/u/19289901?v=4)](https://github.com/gdelmer "gdelmer (2 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (2 commits)")[![bvmax](https://avatars.githubusercontent.com/u/114160602?v=4)](https://github.com/bvmax "bvmax (2 commits)")[![thomas-kl1](https://avatars.githubusercontent.com/u/20971693?v=4)](https://github.com/thomas-kl1 "thomas-kl1 (2 commits)")[![r4y7s](https://avatars.githubusercontent.com/u/6150209?v=4)](https://github.com/r4y7s "r4y7s (1 commits)")[![baldwinagency-pieter](https://avatars.githubusercontent.com/u/4758823?v=4)](https://github.com/baldwinagency-pieter "baldwinagency-pieter (1 commits)")[![hostep](https://avatars.githubusercontent.com/u/85479?v=4)](https://github.com/hostep "hostep (1 commits)")[![junioradwise](https://avatars.githubusercontent.com/u/60651244?v=4)](https://github.com/junioradwise "junioradwise (1 commits)")[![mecheverria89](https://avatars.githubusercontent.com/u/25086217?v=4)](https://github.com/mecheverria89 "mecheverria89 (1 commits)")

---

Tags

magento2-modulemagentocomposer-installer

### Embed Badge

![Health badge](/badges/yireo-magento2-googletagmanager2/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-googletagmanager2/health.svg)](https://phpackages.com/packages/yireo-magento2-googletagmanager2)
```

###  Alternatives

[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[swissup/module-search-mysql-legacy

Legacy mysql search for magento 2.4

10483.0k](/packages/swissup-module-search-mysql-legacy)[yireo/magento2-emailtester2

Preview transactional emails and test send them in your backend

33394.9k](/packages/yireo-magento2-emailtester2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69344.4k](/packages/run-as-root-magento2-prometheus-exporter)[pagbank/payment-magento

PagBank - Payment for Magento and Adobe

2128.3k7](/packages/pagbank-payment-magento)

PHPackages © 2026

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