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

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

thelia/google-tag-manager-module
================================

3.2.5(1mo ago)24.0k—0%10LGPL-3.0+PHPCI passing

Since Mar 3Pushed 3w ago4 watchersCompare

[ Source](https://github.com/thelia-modules/GoogleTagManager)[ Packagist](https://packagist.org/packages/thelia/google-tag-manager-module)[ RSS](/packages/thelia-google-tag-manager-module/feed)WikiDiscussions main Synced 2d ago

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

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

[](#google-tag-manager)

This module is made to use the Google Tag Manager / Google Analytics 4.

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

[](#installation)

### Composer

[](#composer)

```
composer require thelia/google-tag-manager-module:~2.1.0

```

Usage
-----

[](#usage)

You need to configure the id from your Google tag manager account in the thelia administration panel.
It should look like `GTM-XXXX`.
This will generate both the head script and the body no-script tags and insert them in the `main.head-top`, in the `main.body-top`, in the `main.javascript-initialization` and in the `product.bottom` hooks.
If these hooks are not present in your template, you'll need to add them beforehand.

To track products added to the cart, you need to implement this js event on the "Add to cart" buttons.

```
const event = new CustomEvent("addPseToCart", {
    detail: {
          pse: pseId,
          quantity
    },
 });
 document.dispatchEvent(event);
```

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance92

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~112 days

Total

38

Last Release

54d ago

Major Versions

1.0.1 → 2.02021-04-21

2.0.1 → 3.0.02021-06-01

2.2.1 → 3.1.12023-06-12

2.2.4 → 3.1.42023-06-29

2.2.5 → 3.1.52023-07-24

### Community

Maintainers

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

---

Top Contributors

[![zawaze](https://avatars.githubusercontent.com/u/37273643?v=4)](https://github.com/zawaze "zawaze (15 commits)")[![NicolasBarbey](https://avatars.githubusercontent.com/u/26166378?v=4)](https://github.com/NicolasBarbey "NicolasBarbey (11 commits)")[![TomPradat](https://avatars.githubusercontent.com/u/16164512?v=4)](https://github.com/TomPradat "TomPradat (5 commits)")[![ThomasDaSilva](https://avatars.githubusercontent.com/u/97163246?v=4)](https://github.com/ThomasDaSilva "ThomasDaSilva (3 commits)")[![leanormandon](https://avatars.githubusercontent.com/u/30038624?v=4)](https://github.com/leanormandon "leanormandon (3 commits)")[![lopes-vincent](https://avatars.githubusercontent.com/u/6057206?v=4)](https://github.com/lopes-vincent "lopes-vincent (3 commits)")[![Lucanis](https://avatars.githubusercontent.com/u/6052481?v=4)](https://github.com/Lucanis "Lucanis (2 commits)")[![julescournut](https://avatars.githubusercontent.com/u/26310511?v=4)](https://github.com/julescournut "julescournut (2 commits)")[![mdevaud](https://avatars.githubusercontent.com/u/15226493?v=4)](https://github.com/mdevaud "mdevaud (1 commits)")[![anoziere](https://avatars.githubusercontent.com/u/118798868?v=4)](https://github.com/anoziere "anoziere (1 commits)")[![ArthurLashermes](https://avatars.githubusercontent.com/u/76913541?v=4)](https://github.com/ArthurLashermes "ArthurLashermes (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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