PHPackages                             setono/sylius-analytics-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. setono/sylius-analytics-plugin

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

setono/sylius-analytics-plugin
==============================

Google Analytics plugin for Sylius

v3.0.1(3y ago)23329.9k↓64.3%18[1 PRs](https://github.com/Setono/SyliusAnalyticsPlugin/pulls)MITPHPPHP &gt;=7.4

Since Apr 12Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Setono/SyliusAnalyticsPlugin)[ Packagist](https://packagist.org/packages/setono/sylius-analytics-plugin)[ RSS](/packages/setono-sylius-analytics-plugin/feed)WikiDiscussions 4.x Synced yesterday

READMEChangelog (10)Dependencies (36)Versions (38)Used By (0)

Sylius Analytics Plugin
=======================

[](#sylius-analytics-plugin)

[![Latest Version](https://camo.githubusercontent.com/0ec85dd3f74ec7fe1a42046a22072129b84ba87167ae49f8966f207e9d2b5f94/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f73796c6975732d616e616c79746963732d706c7567696e2f762f737461626c65)](https://packagist.org/packages/setono/sylius-analytics-plugin)[![Software License](https://camo.githubusercontent.com/cea4cae6396a3b68e09f538fd5086e32aff89459a9472d8e1eae61e4f4337bc8/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f73796c6975732d616e616c79746963732d706c7567696e2f6c6963656e7365)](LICENSE)[![Build Status](https://github.com/Setono/SyliusAnalyticsPlugin/workflows/build/badge.svg)](https://github.com/Setono/SyliusAnalyticsPlugin/actions)

This plugin adds Google Analytics tracking to your store. You can choose between a gtag and tag manager integration. The gtag integration will output the traditional `gtag()` functions when tracking events, while the tag manager integration will populate the `dataLayer` with event data.

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

[](#installation)

### Step 1: Download the plugin

[](#step-1-download-the-plugin)

This plugin uses the [TagBagBundle](https://github.com/Setono/TagBagBundle) to inject scripts onto your page. Please read and follow the installation instructions for that bundle before installing this plugin.

```
composer require setono/sylius-analytics-plugin:"^4.0@alpha"
```

**NOTICE** that the v4 of this plugin is still in alpha and hence breaking changes can occur.

### Step 2: Enable the plugin

[](#step-2-enable-the-plugin)

Then, enable the plugin by adding it to the list of registered plugins/bundles in `config/bundles.php` file of your project before (!) `SyliusGridBundle`:

```
