PHPackages                             fusionlab-digital/ga4-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. [API Development](/categories/api)
4. /
5. fusionlab-digital/ga4-tag-manager

ActiveMagento2-module[API Development](/categories/api)

fusionlab-digital/ga4-tag-manager
=================================

Google Tag Manager Google Analytics 4

0.1.4(3mo ago)015Apache-2.0PHPPHP &gt;= 7.4

Since Feb 2Pushed 3mo agoCompare

[ Source](https://github.com/Fusion-Lab-Digital/g4a-tag-manager)[ Packagist](https://packagist.org/packages/fusionlab-digital/ga4-tag-manager)[ RSS](/packages/fusionlab-digital-ga4-tag-manager/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (4)Versions (8)Used By (0)

[![](https://camo.githubusercontent.com/262a4958e500105976a8f49857067d40d523a7dcc73600dafd05bffa1e4dedef/68747470733a2f2f667573696f6e6c61622e67722f667573696f6e2d6c61622d6c6f676f2d6e65672d63726f707065642e737667)](https://fusionlab.gr?utm_source=github&utm_medium=ga4&utm_campaign=module)Fusion Lab - Google Analytics 4 Extension
=========================================

[](#fusion-lab---google-analytics-4-extension)

📌 Overview
----------

[](#-overview)

**Fusion Lab Google Analytics 4 Extension** seamlessly integrates [Google Analytics 4 (GA4)](https://support.google.com/analytics/answer/10089681?hl=en) using [Google Tag Manager](https://tagmanager.google.com/), enabling advanced tracking for your Magento 2 store.

Includes all core events necessary for comprehensive analytics through GTM from your Magento 2 installation.

Optimized for speed through async code execution to append data to the dataLayer instead of on page load.

The extension is also compatible with [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).

JSON File provided for your GTM container.

Semi PWA backend provided through rest endpoint to fetch product data.

⚡ Features
----------

[](#-features)

- Magento 2.4.x support.
- Includes settings JSON file that you can import to your [Google Tag Manager](https://tagmanager.google.com/) Container.
- Compatible with [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
- - dynamic nonce
- Events Included
    - page\_view
    - add\_to\_cart
    - remove\_from\_cart
    - view\_item\_list
    - view\_item
    - view\_cart
    - begin\_checkout
    - add\_payment\_info
    - add\_shipping\_info
    - purchase
    - login
    - search
    - add\_to\_wishlist (new!)
- Multi Website / Storeview Support

🛠️ Installation
---------------

[](#️-installation)

### Install via Composer 2.x

[](#install-via-composer-2x)

We recommend to install this module via a compatible version of [Composer 2.x](https://getcomposer.org/download/) for your Magento 2 Installtion.

See your [Magento 2 Requirements here](https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/system-requirements).

```
composer require fusionlab-digital/ga4-tag-manager
php bin/magento module:enable FusionLab_GA4
php bin/magento setup:upgrade
php bin/magento s:d:c
php bin/magento s:s:d {Your Themes}
php bin/magento cache:flush
```

### Manual Installation (not recommended)

[](#manual-installation-not-recommended)

1. This module has a dependency to [FusionLab\_Core](https://github.com/Fusion-Lab-Digital/m2.core) which you must first install. See the github page for installation instructions.
2. Download the module and extract it into `app/code/FusionLab/Ga4`
3. Run the following Magento CLI commands:

```
php bin/magento module:enable FusionLab_GA4 FusionLab_Core
php bin/magento setup:upgrade
php bin/magento s:d:c
php bin/magento s:s:d {Your Themes}
php bin/magento cache:flush
```

🚀 Setup
-------

[](#-setup)

Open the Admin and navigate to **Menu -&gt; FusionLab -&gt; Google Analytics 4**

1. Enable the Module
2. Provide your GTM Container ID
3. (recommended) Download the JSON file and import it to your GTM Container. Make sure you know what you are doing if other tags are present. In your GTM Container, navigate to variables and adjust the following Constants to your IDS. Google Ads Conversion Label, Google Analytics Ids, Google Conversion Id.
4. Expand Event Settings and apply the configuration for item id, brand, and concat category
5. (only for `view_item_list`) Expand Product Settings to apply the product list selector. Default value `.products.wrapper,grid.products-grid` is for clean theme.

⚙️ Configuration Documentation
------------------------------

[](#️-configuration-documentation)

FieldAreaDocumentationEnable Module?General SettingsEnables or Disables the functionality of the module.GTM Container IdGeneral SettingsYour GTM Container Id. Can be found at your [Google Tag Manager](https://tagmanager.google.com/) containerDownload JSON FileGeneral SettingsSetup File that you can import into your [Google Tag Manager](https://tagmanager.google.com/) container. See Image in the Admin for Instructions.Use as Item IdEvent SettingsIs used for for `ecommerce.items[].item_id`. Make sure if you have Google Shopping XML this value is the same as your XML export.Brand Attribute CodeEvent SettingsIs used for `ecommerce.items[].item_brand`.Concat Category Attributes into 1 field?Event SettingsIf yes then the categories will show in item\_category as Women/Shoes/Running Shoes. If no then the item\_category up to item\_category5 will be filled.Product List SelectorProduct SettingsIs used for the `view_item_list` event. The selector is needed so the code gathers all the products to append to the data layer.✅ Compatibility
---------------

[](#-compatibility)

- Works with Magento 2.4.x
- ⚠️ Should also work with any version of Magento 2 that Supports &gt;=php7.4
- Tested with Magento Luma Theme
- Tested with Magento Custom Theme

📄 License
---------

[](#-license)

This module is licensed under the Apache 2.0 License. See [LICENSE](LICENSE) for details.

📩 Support
---------

[](#-support)

For any issues, feature requests, or inquiries, please open an issue on [GitHub Issues](https://github.com/Fusion-Lab-Digital/m2.core/issues), contact us at , or visit our website at [fusionlab.gr](https://fusionlab.gr/?utm_source=github&utm_medium=ga4&utm_campaign=module) for more information.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance81

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92% 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 ~104 days

Total

5

Last Release

102d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/429591?v=4)[Alon Koppel](/maintainers/fusionlab)[@fusionlab](https://github.com/fusionlab)

---

Top Contributors

[![vneris236](https://avatars.githubusercontent.com/u/153380689?v=4)](https://github.com/vneris236 "vneris236 (23 commits)")[![thanasisale](https://avatars.githubusercontent.com/u/28050747?v=4)](https://github.com/thanasisale "thanasisale (2 commits)")

### Embed Badge

![Health badge](/badges/fusionlab-digital-ga4-tag-manager/health.svg)

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

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M49](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[graycore/magento2-cors

A Magento 2 module that enables CORS on the GraphQL and REST Apis

102597.8k](/packages/graycore-magento2-cors)[magmodules/magento2-channable

Channable integration for Magento 2

311.5M](/packages/magmodules-magento2-channable)[elgentos/module-prismicio

Magento 2 - Prismic.io integration

39119.0k4](/packages/elgentos-module-prismicio)[zepgram/module-rest

Technical module to industrialize API REST call with dependency injection pattern using Guzzle library

1328.7k](/packages/zepgram-module-rest)

PHPackages © 2026

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