PHPackages                             darksidepro/sylius-gtm-plugin - 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. darksidepro/sylius-gtm-plugin

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

darksidepro/sylius-gtm-plugin
=============================

Google Tag Manager integration for Sylius 2.x

1.0.8(9mo ago)017MITPHPPHP ^8.2

Since Aug 4Pushed 9mo agoCompare

[ Source](https://github.com/DarkSidePro/sylius-gtm-plugin)[ Packagist](https://packagist.org/packages/darksidepro/sylius-gtm-plugin)[ RSS](/packages/darksidepro-sylius-gtm-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (11)Used By (0)

Sylius Google Tag Manager Plugin
================================

[](#sylius-google-tag-manager-plugin)

Integracja Google Tag Manager (GTM) z Sylius 2.x. Plugin umożliwia automatyczne wysyłanie eventów e-commerce do dataLayer GTM, takich jak:

- add\_to\_cart
- remove\_from\_cart
- view\_item
- view\_item\_list
- add\_payment\_info
- begin\_checkout
- purchase

i inne zgodne z Enhanced Ecommerce.

Instalacja
----------

[](#instalacja)

1. Zainstaluj plugin przez Composer:

```
composer require darksidepro/sylius-gtm-plugin

```

2. Dodaj do pliku `.env`:

```
GTM_CONTAINER_ID=GTM-XXXXXXX

```

3. Zaimportuj szablony GTM w swoim layoutcie:

W ``:

```
{% include '@DarkSideProSyliusGtmPlugin/Gtm/head.html.twig' with { gtm_container_id: gtm_config_provider.getContainerId() } %}
```

Zaraz po otwarciu ``:

```
{% include '@DarkSideProSyliusGtmPlugin/Gtm/body.html.twig' with { gtm_container_id: gtm_config_provider.getContainerId() } %}
```

4. Upewnij się, że serwis `GtmConfigProvider` jest dostępny w Twig (np. przez własny TwigExtension lub globalną zmienną).
5. Plugin automatycznie obsługuje eventy e-commerce i przekazuje je do dataLayer przez flashBag/session.

Tłumaczenia
-----------

[](#tłumaczenia)

Pliki tłumaczeń znajdują się w `src/Resources/translations/`.

Testy
-----

[](#testy)

Testy jednostkowe znajdują się w katalogu `tests/`. Uruchomisz je przez:

```
vendor/bin/phpunit

```

Wsparcie dla Sylius Plus
------------------------

[](#wsparcie-dla-sylius-plus)

Plugin wspiera wielosklepowość i jest zgodny z Sylius Plus.

Licencja
--------

[](#licencja)

MIT

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance58

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Every ~1 days

Total

9

Last Release

277d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a48708fd6a42c49e3d45284b5d6aa001f98682a0ed9d208fb94189a4a7eebc4?d=identicon)[kurama195pl](/maintainers/kurama195pl)

---

Top Contributors

[![kurama195pl](https://avatars.githubusercontent.com/u/181851517?v=4)](https://github.com/kurama195pl "kurama195pl (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/darksidepro-sylius-gtm-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/darksidepro-sylius-gtm-plugin/health.svg)](https://phpackages.com/packages/darksidepro-sylius-gtm-plugin)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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