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(10mo ago)056[1 issues](https://github.com/DarkSidePro/sylius-gtm-plugin/issues)MITPHPPHP ^8.2

Since Aug 4Pushed 1mo 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 today

READMEChangelogDependencies (5)Versions (13)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

39

—

LowBetter than 84% of packages

Maintenance75

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

325d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/181851517?v=4)[Patryk Tchórzewski](/maintainers/kurama195pl)[@kurama195pl](https://github.com/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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sylius/sylius

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

8.5k5.9M737](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[sulu/sulu

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

1.3k1.4M203](/packages/sulu-sulu)

PHPackages © 2026

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