PHPackages                             kiczek/ga-datalayer-cakephp3 - 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. kiczek/ga-datalayer-cakephp3

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

kiczek/ga-datalayer-cakephp3
============================

GA DataLayer plugin for CakePHP 3

1.0.0(6y ago)021MITPHPCI failing

Since Oct 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kiczek/ga-datalayer-cakephp3)[ Packagist](https://packagist.org/packages/kiczek/ga-datalayer-cakephp3)[ RSS](/packages/kiczek-ga-datalayer-cakephp3/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

GA DataLayer plugin for CakePHP 3
=================================

[](#ga-datalayer-plugin-for-cakephp-3)

Introduction
------------

[](#introduction)

This plugin allows you to store Google Analytics events in cookie and push them to Data Layer in below structure:

```
dataLayer.push({
    'event': 'customEventName',
    'customEventName': {
        "event_category":"Users",
        "event_action":"login",
        "event_label":null,
        "value":0
    }
});

```

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require kiczek/ga-datalayer-cakephp3

```

In Controller load component using:

```
$this->loadComponent("DataLayer.DataLayer", [
    'cookieKey' => '_dl',
    'eventName' => 'customEventName',
    'blockName' => 'dataLayerEvents'
]);

```

At the end of your layout render Data Layer push script:

```
echo $this->fetch('dataLayerEvents');

```

Usage
-----

[](#usage)

Push event from Controller to Data Layer using:

```
$this->DataLayer->addEvent('Users', 'login');

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea7f29887418c67d22d316371dc6702265c3c45823cef016b4b6cd3931d6a6e4?d=identicon)[kiczek](/maintainers/kiczek)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kiczek-ga-datalayer-cakephp3/health.svg)

```
[![Health](https://phpackages.com/badges/kiczek-ga-datalayer-cakephp3/health.svg)](https://phpackages.com/packages/kiczek-ga-datalayer-cakephp3)
```

###  Alternatives

[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[cakedc/cakephp-phpstan

CakePHP plugin extension for PHPStan.

40676.6k31](/packages/cakedc-cakephp-phpstan)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

2988.9k3](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

51174.9k4](/packages/dereuromark-cakephp-geo)[cakedc/enum

Enumeration list Plugin for CakePHP 5

30222.5k2](/packages/cakedc-enum)[josegonzalez/cakephp-environments

CakePHP plugin to handle environments-level configuration

4785.9k](/packages/josegonzalez-cakephp-environments)

PHPackages © 2026

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