magepal / magento2-googletagmanager
magepal/magento2-googletagmanager
Google Tag Manager (GTM) for Magento 2 with Advance Data Layer
Google Tag Manager for Magento2 with Data Layer
Google Tag Manager allows you to quickly and easily add or update AdWords, Google Analytics, Facebook Tags and other code snippets on your website without edit to your magento 2 codebase.
#Features
Quick and easy setup
Add tag via XML layout and/or observer
Data layer support
1 - Installation GTM
Manually
- Download the extension
- Unzip the file
- Create a folder {Magento 2 root}/app/code/MagePal/GoogleTagManager
- Copy the content from the unzip folder
Using Composer
composer config repositories.magepal-googletagmanager git [email protected]:magepal/magento2-googletagmanager.git
composer require magepal/magento2-googletagmanager
2 - Enable GTM (from {Magento root} folder)
- php -f bin/magento module:enable --clear-static-content MagePal_GoogleTagManager
- php -f bin/magento setup:upgrade
3 - Configure GTM
Log into your Magetno 2 Admin, then goto Store -> System -> MagePal -> Google Tag Manager and enter your GTM account credentials
###Data layer attributes
- pageType (i.e catalog_category_view)
- list (cart, category, detail, other)
####Customer
- customer.isLoggedIn
- customer.id
- customer.groupId
####Category
- category.id
- customer.category
####Product
- product.id
- product.name
- product.sku
####Cart
- cart.hasItems
- cart.items[].sku
- cart.items[].name
- cart.items[].price
- cart.items[].quantity
- cart.total
- cart.itemCount
- cart.hasCoupons
- cart.couponCode
####Order
- transactionId
- transactionAffiliation
- transactionTotal
- transactionShipping
- transactionProducts[].sku
- transactionProducts[].name
- transactionProducts[].price
- transactionProducts[].quantity
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Released |
|---|---|---|---|
| 3.0.2 | stable | Fail | 2026-05-15 16:57:26 |
| 3.0.1 | stable | Not tested | 2025-04-16 20:40:43 |
| 3.0.0 | stable | Not tested | 2024-08-06 13:01:29 |
| 2.7.8 | stable | Not tested | 2024-04-30 14:49:26 |
| 2.7.7 | stable | Not tested | 2024-04-17 13:52:32 |
| 2.7.6 | stable | Not tested | 2024-04-04 12:10:52 |
| 2.7.5 | stable | Not tested | 2024-01-25 20:54:28 |
| 2.7.4 | stable | Not tested | 2023-06-06 13:20:36 |
| 2.7.3 | stable | Not tested | 2023-03-17 13:54:45 |
| 2.7.2 | stable | Not tested | 2023-03-14 12:41:53 |
| 2.7.1 | stable | Not tested | 2022-04-13 02:45:15 |
| 2.7.0 | stable | Not tested | 2021-05-18 02:05:51 |
| 2.6.2 | stable | Not tested | 2021-03-30 14:14:53 |
| 2.6.1 | stable | Not tested | 2021-03-26 17:05:14 |
| 2.6.0 | stable | Not tested | 2021-03-02 03:22:33 |
| 2.5.5 | stable | Not tested | 2020-11-19 15:50:07 |
| 2.5.2 | stable | Not tested | 2020-10-21 16:24:33 |
| 2.5.1 | stable | Not tested | 2020-07-30 16:34:36 |
| 2.5.0 | stable | Not tested | 2020-07-22 12:18:38 |
| 2.4.0 | stable | Not tested | 2019-11-25 22:55:04 |
| 2.3.1 | stable | Not tested | 2019-10-11 00:17:49 |
| 2.3.0 | stable | Not tested | 2019-07-15 14:34:33 |
| 2.2.9 | stable | Not tested | 2019-03-27 01:41:59 |
| 2.2.8 | stable | Not tested | 2018-11-29 13:57:56 |
| 2.2.7 | stable | Not tested | 2018-10-31 17:02:44 |
| 2.2.6 | stable | Not tested | 2018-07-15 18:17:07 |
| 2.2.5 | stable | Not tested | 2018-06-29 03:22:15 |
| 2.2.4 | stable | Not tested | 2018-03-30 20:14:07 |
| 2.2.3 | stable | Not tested | 2018-03-21 18:55:53 |
| 2.2.2 | stable | Not tested | 2018-02-22 15:10:53 |
| 2.2.1 | stable | Not tested | 2018-02-09 22:51:44 |
| 2.2.0 | stable | Not tested | 2018-02-07 01:00:13 |
| 2.1.1 | stable | Not tested | 2018-01-01 19:38:05 |
| 2.0.7 | stable | Not tested | 2017-12-20 15:44:52 |
| 2.0.6 | stable | Not tested | 2017-10-14 14:39:28 |
| 2.0.4 | stable | Not tested | 2017-09-13 01:11:09 |
| 2.0.3 | stable | Not tested | 2017-07-14 00:08:40 |
| 2.0.2 | stable | Not tested | 2017-06-07 18:28:12 |
| 2.0.1 | stable | Not tested | 2017-04-21 15:27:05 |
| 2.0.0 | stable | Not tested | 2017-04-18 17:55:19 |
| 1.2.3 | stable | Not tested | 2017-01-23 19:42:32 |
| 1.2.2 | stable | Not tested | 2017-01-17 16:56:26 |
| 1.2.1 | stable | Not tested | 2016-12-20 14:35:46 |
| 1.1.2 | stable | Not tested | 2016-10-04 20:08:52 |
| 1.1.1 | stable | Not tested | 2016-09-19 14:05:04 |
| 1.1.0 | stable | Not tested | 2016-06-25 18:52:26 |
| 1.0.3 | stable | Not tested | 2016-04-06 11:53:31 |
| 1.0.2 | stable | Not tested | 2016-02-10 19:10:26 |
| 1.0.1 | stable | Not tested | 2016-01-19 04:25:24 |
Requires 4
| Package | Constraint |
|---|---|
| php | ~8.3.0|~8.4.0|~8.5.0 |
| magento/module-backend | 102.0.* |
| magento/framework | 103.0.* |
| magepal/magento2-core | >=1.1.14 |
No QA results yet
QA pipelines haven't run for this version. Status appears here once the vendor publishes a tagged release that gets ingested.
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.