PHPackages                             ghost-unicorns/module-ga4 - 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. ghost-unicorns/module-ga4

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

ghost-unicorns/module-ga4
=========================

GhostUnicorns Google Analytics 4

0.0.3(3y ago)01.0kMITPHP

Since Sep 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ghostunicorns/module-ga4)[ Packagist](https://packagist.org/packages/ghost-unicorns/module-ga4)[ RSS](/packages/ghost-unicorns-module-ga4/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Description
===========

[](#description)

This module adjust the GTM pushes to be compatible with the new GA4 ecommerce standards

Prerequisites
=============

[](#prerequisites)

Make sure you have Magento &gt;= 2.4.5 or try install:

`composer require magento/module-google-tag-manager`

Install
=======

[](#install)

`composer require ghost-unicorns/module-ga4`

How to configure
================

[](#how-to-configure)

Make sure that Google Analytics 4 through Google GTag is enabled `Stores -> Configuration -> Sales -> Google APIS -> Google GTag -> Google Analytics4 -> Enable -> Yes`

Make sure that Google Analytics 4 is injected via GTM `Stores -> Configuration -> Sales -> Google APIS -> Google GTag -> Google Analytics4 -> Account type -> Google Tag Manager`

Make sure that Google Analytics through Google Analytics standard is disabled `Stores -> Configuration -> Sales -> Google Analytics -> Enable -> No`

Customize
=========

[](#customize)

You can create a plugin on the following file to change the products data: `GhostUnicorns\Ga4\Model\GetProductLayer`

Contribution
============

[](#contribution)

Yes, of course you can contribute sending a pull request to propose improvements and fixes.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

3

Last Release

1315d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c493c3b0a0d312c8f320bbfb2a994fb881493d8d90d3bfcdc51e8716b486752?d=identicon)[ghostunicorns](/maintainers/ghostunicorns)

---

Top Contributors

[![daniloargentiero](https://avatars.githubusercontent.com/u/3659574?v=4)](https://github.com/daniloargentiero "daniloargentiero (3 commits)")

### Embed Badge

![Health badge](/badges/ghost-unicorns-module-ga4/health.svg)

```
[![Health](https://phpackages.com/badges/ghost-unicorns-module-ga4/health.svg)](https://phpackages.com/packages/ghost-unicorns-module-ga4)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[graycore/magento2-cors

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

99516.1k](/packages/graycore-magento2-cors)[elgentos/module-prismicio

Magento 2 - Prismic.io integration

39112.0k3](/packages/elgentos-module-prismicio)[zepgram/module-rest

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

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

PHPackages © 2026

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