PHPackages                             kodbruket/magento2-gtm - 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. kodbruket/magento2-gtm

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

kodbruket/magento2-gtm
======================

Google Tag Manager for Magento 2

1.0.4(9y ago)0175MIT LicensePHPPHP ~5.6.0|~7.0.0

Since Feb 21Pushed 7y ago3 watchersCompare

[ Source](https://github.com/kodbruket/magento2-gtm)[ Packagist](https://packagist.org/packages/kodbruket/magento2-gtm)[ RSS](/packages/kodbruket-magento2-gtm/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (11)Versions (7)Used By (0)

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

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

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

[](#installation)

The easiest way to install the extension is to use [Composer](https://getcomposer.org), just run the following commands:

`$ composer require kodbruket/magento2-gtm`

`$ bin/magento module:enable Kodbruket_Gtm`

`$ bin/magento setup:upgrade`

Configuration
-------------

[](#configuration)

Enable the module under *Stores* / *Configuration* / *Sales* / *Google API*. Enter your container ID from [Google Tag Manager](https://www.google.com/analytics/tag-manager/) and specify whether to use quote or order when tracking the transaction on the success page. When the module is set to track by quote it will try to set `transactionID` to the reserved order ID from the quote. If no order ID has been reserved it will fall back to the entity ID of the quote.

The module looks at the full action names `catalog_product_index`, `catalog_category_index` and `checkout_checkout_index` to decide which data to include in the data layer. It's fully possible to add or define other full action names directly from admin. Just set *Use custom action names* to *Yes* and define the action names you want it to look at.

Authors
-------

[](#authors)

[Andreas Karlsson](https://github.com/indiebytes)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~30 days

Total

5

Last Release

3295d ago

### Community

Maintainers

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

---

Top Contributors

[![indiebytes](https://avatars.githubusercontent.com/u/91565?v=4)](https://github.com/indiebytes "indiebytes (4 commits)")[![robbanl](https://avatars.githubusercontent.com/u/922250?v=4)](https://github.com/robbanl "robbanl (1 commits)")

---

Tags

google-tag-managergtmmagentomagento2

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kodbruket-magento2-gtm/health.svg)

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

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.8M12](/packages/mollie-magento2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50390.4k20](/packages/dotdigital-dotdigital-magento2-extension)[buckaroo/magento2

Buckaroo Magento 2 extension

32414.8k7](/packages/buckaroo-magento2)[o2ti/sigep-web-carrier

O2TI - Sigep Web Carrier

141.5k](/packages/o2ti-sigep-web-carrier)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1010.0k22](/packages/loki-magento2-components)

PHPackages © 2026

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