Download the PHP package magepal/magento2-googletagmanager without Composer

On this page you can find all versions of the php package magepal/magento2-googletagmanager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

Please rate this library. Is it a good library?

All versions of magento2-googletagmanager with dependencies

Informations about the package magento2-googletagmanager

MagePal Extensions

Google Tag Manager for Magento 2 with Advance Data Layer

Total Downloads Latest Stable Version

Whether you are a small Magento retailer or an Enterprise customer, our suite of Google Tag Manager extensions will help you integrate the most challenging GTM projects within days, instead of spending weeks or months creating custom solutions.

For Magento 2.0.x, 2.1.x, 2.2.x, 2.3.x and 2.4.x

Magento Enhanced Ecommerce for Google Tag Manager

What is Google Tag Manager

Google Tag Manager (GTM) is a user-friendly, powerful and essential integration for every Magento store. It simplifies the process of adding, editing and managing third-party JavaScript tags and other snippets of code on your Magento site. With GTM, you can quickly and easily add Facebook tags, AdWords Conversion Tracking, Re-marketing, Bing UET, SnapChat, DoubleClick code, Google Analytics, and many more in a breeze without the need for a developer to make changes to your Magento code providing the data is available to Google Tag Manager.

Google Tag Manager makes running your digital marketing campaigns much easier when calibrating with multiple department and Ad agencies by making available the right set of tools so that everyone can get their job done quickly without relying on developers.

Without having the all data you need at your fingertips your integration will become a difficult, time-consuming and messy since each developer will only focus on the current task at hand instead of focusing on writing reusable components for future integration.

Our extension provides a vast array of over 60 preconfigure data layer elements to make integrating your Magento store with any other third-party service a breeze using Google Tag Manager. Extracting, customizing and adding your own custom data from your Magento store to Google Tag Manager is as easy as 10 lines of code using our easy to customize APIs.

:warning: Google Tag Manager 2.7.0 has some breaking changes to Enhanced Ecommerce. Please download the latest version of Enhanced Ecommerce 1.7.0 or greater from account.

Why use our Google Tag Manager extension?

Adding Google Tag Manager code snippet to the header section of your Magento store may seem like the ideal, and most efficient way to add GTM to your site. But this will not be sufficient and limit your ability to take full advantage of GTM when integrating third-parties tracking codes that require data from your Magento stores, such as product name, price, items added to cart, order items, total, shipping amount or any other data. Our extension provides hundreds of data elements and events to accomplish any integration and provides the building block to make your next integration a success. With a few lines of code, you can quickly extend our extension to accomplish your most challenging integration. Google Tag Manager is only as powerful as the data layer powering it. Learn more about customizing Google Tag Manger.

Google Analytics 4

Upgrade to the next generation of tracking from Google. Google Analytics 4 comes with a bunch of key features that make it very different and more powerful than Enhanced Ecommerce. Gain access to GA4 new approach to privacy-first tracking, channel measurement, and AI based predictive data with MagePal Google Analytics 4 Extension.

Google Analytics Enhanced E-commerce

Want to track more? Upgrade to our new Enhanced E-commerce for Google Tag Manager to take full advantage of Google Analytics most powerful e-commerce features. Gain valuable insight and increase your conversion rate by leveraging Google Enhanced Ecommerce to better understand your user actions and behaviors.

Learn more about our Google Enhanced Ecommerce extension today. A small increase in your store’s conversion rate can make a giant impact on your revenue.

Third Party Integration with Google Tag Manager

Adding Facebook pixel, Bing UAT, SnapChat or any other third-party code snippet to your website but frustrated by all the hassle and time it takes to configure Google Tag Manager? Learn how simple and easy it is to integrate any tracking code to your Magento store with our new DataLayer extension.

General Data Protection Regulation (GDPR) Support

Now you can quickly disable analytic tracking for customers' who do not want to by track by enabling Cookie Restriction Mode or base on existing or non-existing cookie.

Please Note: Merchants should consult with their own legal counsel to ensure that they are compliant with the GDPR.

Get more from Google Tag Manager with our add-on Extensions

Features GTM EE GA4 DL
Global Page Tracking X X X
Order Conversion Tracking X X X
Page Type Event X X
Product Clicks X X
Product Detail Impressions X X
Add to Cart X X
Remove from Cart X X
Checkout Steps X X
Order Refunds X X
Admin Order Tracking X X
Access DataLayer using JS X
Bing UET Tracking X
Full Facebook Tracking X
Custom Image Pixel Tracking X
Custom iFrame Tracking X
Third-Party Integration X
Extend individual page type X

GTM - Google Tag Manager for Magento 2 Extension

GA4 - Google Analytics 4 for Google Tag Manager Extension

EE - Enhanced E-commerce for Google Tag Manager Extension

DL - DataLayer for Google Tag Manager Extension


Benefits of using Google Tag Manager with Magento

There are a number of benefits to using GTM with Magento:

How to Customize Google Tag Manager Extension

Need to add more data to your data layer or change existing data to meet your client needs? Add, changing or removing information from the data layer to meet your client needs is as simple as adding few lines of php and di.xml code. See our documentation to learn more about how to customizing Google Tag Manger.

Documentation & Installation Guide

How to Installing Google Tag Manager

How to setup Google Tag Manager

How to customizing Google Tag Manager

Google Tag Manger Data Layer attributes

How to debugging Google Tag Manager

Composer Installation

Data layer attributes

Our Magento extension provide a vast array of over 60 preconfigure data layer elements to make integrating your Magento store with any third-party service a breeze using Google Tag Manager.

Triggered Events

Home Page Events
Category Page Events
Product Detail Page Events
Shopping Cart Page Events
Checkout Page Events
Order Confirmation Page Events
Other Events

Data Layer Variables


Product Impression


Search Page

Product Detail Page


Add to Cart
Remove from Cart

Global Data Layer


* - Data layer provide by our Enhanced Ecommerce Extension

** - Data layer provide by our Data Layer Extension

*** - Data layer provide by our Google Analytics 4 Extension


Want to contribute to this extension? The quickest way is to open a pull request on GitHub.


If you encounter any problems or bugs, please open an issue on GitHub. For fast Premium Support visit our Google Tag Manager product page for detail.

Need help to set up or want to customize our extension to meet your business needs? Please email [email protected] and if we like your idea we will add this feature for free or at a discounted rate.

Magento 2 Extensions

© MagePal LLC. |

Requires php Version 7.0.2|7.0.4|~7.0.6|~7.1.0|~7.1.3|~7.2.0|~7.3.0|~7.4.0
magento/module-backend Version 100.0.*|100.1.*|100.2.*|101.0.*|102.0.*
magento/framework Version 100.0.*|100.1.*|101.0.*|102.0.*|103.0.*
magepal/magento2-core Version >=1.1.11

The package magepal/magento2-googletagmanager contains the following files

Loading the files please wait ....