PHPackages                             inpsyde/google-tag-manager - 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. inpsyde/google-tag-manager

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

inpsyde/google-tag-manager
==========================

Adds the Google Tag Manager container snippet to your site and populates the Google Tag Manager Data Layer.

3.0.0(12mo ago)2359.7k↓32%2[1 issues](https://github.com/inpsyde/google-tag-manager/issues)[8 PRs](https://github.com/inpsyde/google-tag-manager/pulls)GPL-2.0-or-laterPHPPHP &gt;=8.1CI passing

Since Dec 18Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/inpsyde/google-tag-manager)[ Packagist](https://packagist.org/packages/inpsyde/google-tag-manager)[ RSS](/packages/inpsyde-google-tag-manager/feed)WikiDiscussions dev/master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (34)Used By (0)

Inpsyde Google Tag Manager
==========================

[](#inpsyde-google-tag-manager)

[![Version](https://camo.githubusercontent.com/a764f0267cfe6baefd88058dcf2d44cb55f7c5ffd81acfff2d1c127460141c37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e70737964652f676f6f676c652d7461672d6d616e616765722e737667)](https://packagist.org/packages/inpsyde/google-tag-manager)[![Status](https://camo.githubusercontent.com/0516d1b16221bb9cbc5f57f91e1f235b1b6aaee353113f6d168996f670c9a75d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d6163746976652d627269676874677265656e2e737667)](https://github.com/inpsyde/google-tag-manager)[![Build](https://camo.githubusercontent.com/316df2f3c5595ee8f473537a1ff6df5f2b2474b46b23d164b05abdc70bc2c439/68747470733a2f2f7472617669732d63692e6f72672f696e70737964652f696e70737964652d676f6f676c652d7461672d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/inpsyde/inpsyde-google-tag-manager)[![codecov](https://camo.githubusercontent.com/09932467eea604c99f82ee99314d268367889a8268b78e53dba1c45a2f4d8996/68747470733a2f2f636f6465636f762e696f2f67682f696e70737964652f676f6f676c652d7461672d6d616e616765722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/inpsyde/google-tag-manager)[![Downloads](https://camo.githubusercontent.com/4a8b88bdd992bd35632f8d7b4fb84b772aa158af8b3be9b3ad08814bf2c018f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e70737964652f676f6f676c652d7461672d6d616e616765722e737667)](https://packagist.org/packages/inpsyde/google-tag-manager)[![License](https://camo.githubusercontent.com/a2ce98db7ba19ec20db4a5604c1d1345114ce74c09e29535a7510dfa23b5ab15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696e70737964652f676f6f676c652d7461672d6d616e616765722e737667)](https://packagist.org/packages/inpsyde/google-tag-manager)[![WordPress Playground Demo](https://camo.githubusercontent.com/4bb52ac8d1b04b26b8590196cf58fc67af16fe0dee0aa469e8eb5e25db36a740/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c617967726f756e645f44656d6f2d3841324245323f6c6f676f3d776f72647072657373266c6f676f436f6c6f723d464646464646266c6162656c436f6c6f723d33383538453926636f6c6f723d333835384539)](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/inpsyde/google-tag-manager/refs/heads/master/resources/blueprints/blueprint.json)

> Inpsyde Google Tag Manager inserts the GTM Container Code on every page of your WordPress site and writes data to the Data Layer.

[![Inpsyde Google Tag Manager](resources/svn-assets/banner-1544x500.png)](resources/svn-assets/banner-1544x500.png)

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

[](#documentation)

1. [Intro](./docs/01-intro.md)
2. [Hooks](./docs/02-hooks.md)
3. [Collectors](./docs/03-collectors.md)
4. [FAQ](./docs/99-faq.md)

How to start development
------------------------

[](#how-to-start-development)

Note

The `master` branch contains a production-ready plugin with pre-built assets, but development happens on other branches.

For development, clone the repository (which uses the default development branch) and run the build process to generate the required assets and install PHP dependencies before you begin coding:

```
cd google-tag-manager
composer install
npm install && npm run build
```

Testing &amp; Quality
---------------------

[](#testing--quality)

To run all tests you've to install composer dev-dependencies first.

PHPCS
-----

[](#phpcs)

```
vendor/bin/phpcs
```

PHPUnit
-------

[](#phpunit)

```
vendor/bin/phpunit
```

How to create a release
-----------------------

[](#how-to-create-a-release)

To create a release go to the `` branch and create the tag and the release.

**Example 1: A change is going to be added to `master` branch.**

- A developer makes a PR to `dev/master` branch adding a feature.
- Once it gets merged, a maintainer triggers the `Build and distribute` workflow providing the version number to be released.
- \[bot\] This workflow will create a build and push it to `master` branch.
- \[human\] Then create a tag on `master` and then a release.

**Example 2: A change is going to be added to `1.x` branch.**

- A developer makes a PR to `dev/1.x` branch adding a feature.
- Once it gets merged, a maintainer triggers the `Build and distribute` workflow providing the version number to be released.
- \[bot\] This workflow will create a build and push it to `1.x` branch.
- \[human\] Then create a tag on `1.x` and then a release.

Copyright and License
---------------------

[](#copyright-and-license)

This package is [free software](https://www.gnu.org/philosophy/free-sw.en.html) distributed under the terms of the GNU General Public License version 2 or (at your option) any later version. For the full license, see [LICENSE](./LICENSE).

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance60

Regular maintenance activity

Popularity38

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 80.6% 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 ~150 days

Recently: every ~78 days

Total

19

Last Release

362d ago

Major Versions

1.x-dev → 2.0.02023-06-28

2.2.0 → 3.0.0-beta.12024-07-25

2.x-dev → 3.0.02025-05-22

PHP version history (4 changes)1.0PHP &gt;=7

1.6PHP &gt;=7.2

2.0.0PHP &gt;=8.0

3.0.0-beta.1PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/003585053f7d5d2127d31d5a4e79ba309acc075154f5752de8f429ac42c54dbe?d=identicon)[Syde](/maintainers/Syde)

![](https://www.gravatar.com/avatar/572cb5d91b21cc9879823e849607ffe88365365391d5fd01ee4efb6a3c24df1f?d=identicon)[Chrico](/maintainers/Chrico)

---

Top Contributors

[![Chrico](https://avatars.githubusercontent.com/u/3417446?v=4)](https://github.com/Chrico "Chrico (220 commits)")[![dottxado](https://avatars.githubusercontent.com/u/23632632?v=4)](https://github.com/dottxado "dottxado (13 commits)")[![Biont](https://avatars.githubusercontent.com/u/4208996?v=4)](https://github.com/Biont "Biont (12 commits)")[![luislard](https://avatars.githubusercontent.com/u/17932063?v=4)](https://github.com/luislard "luislard (11 commits)")[![yeremi](https://avatars.githubusercontent.com/u/744184?v=4)](https://github.com/yeremi "yeremi (4 commits)")[![somtijds](https://avatars.githubusercontent.com/u/3629600?v=4)](https://github.com/somtijds "somtijds (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![sabali33](https://avatars.githubusercontent.com/u/645717?v=4)](https://github.com/sabali33 "sabali33 (2 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")[![bueltge](https://avatars.githubusercontent.com/u/133425?v=4)](https://github.com/bueltge "bueltge (1 commits)")[![AlexP11223](https://avatars.githubusercontent.com/u/5680466?v=4)](https://github.com/AlexP11223 "AlexP11223 (1 commits)")[![overclokk](https://avatars.githubusercontent.com/u/4604932?v=4)](https://github.com/overclokk "overclokk (1 commits)")[![tfrommen](https://avatars.githubusercontent.com/u/6049306?v=4)](https://github.com/tfrommen "tfrommen (1 commits)")

---

Tags

googlegoogle-tag-managerhacktoberfestwordpresswordpress-plugin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[avadaneidanut/ldapquery

A light weight package for easily building LDAP advanced filter queries.

4717.8k](/packages/avadaneidanut-ldapquery)

PHPackages © 2026

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