PHPackages                             xynnn/google-tag-manager-bundle - 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. xynnn/google-tag-manager-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

xynnn/google-tag-manager-bundle
===============================

Google Tag Manager Bundle for Symfony

4.1.0(1y ago)27718.2k—8.5%14[7 issues](https://github.com/xyNNN/GoogleTagManagerBundle/issues)1LGPL-3.0-onlyPHPPHP ^8.1

Since Apr 11Pushed 1y ago3 watchersCompare

[ Source](https://github.com/xyNNN/GoogleTagManagerBundle)[ Packagist](https://packagist.org/packages/xynnn/google-tag-manager-bundle)[ Docs](https://github.com/xyNNN/GoogleTagManagerBundle)[ RSS](/packages/xynnn-google-tag-manager-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (35)Used By (1)

GoogleTagManagerBundle
======================

[](#googletagmanagerbundle)

[![Software License](https://camo.githubusercontent.com/db2ed497889bba506e4a80fcd0f3e88d39f50feb75ed72072f077bb149e1a707/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4c47504c253230332e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/9f4e8db3e339a7744170ac12f178ff7208015ac70d79051cd1c149ba56119283/68747470733a2f2f7472617669732d63692e6f72672f78794e4e4e2f476f6f676c655461674d616e6167657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/xyNNN/GoogleTagManagerBundle)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/589133e5891ee9b924eacb802f418229ac0eee3cbbc65553405dbcd2c180e5e1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f78794e4e4e2f476f6f676c655461674d616e6167657242756e646c652e737667)](https://scrutinizer-ci.com/g/xyNNN/GoogleTagManagerBundle)[![Join the chat at https://gitter.im/GoogleTagManagerBundle/Lobby](https://camo.githubusercontent.com/9fadc07dafb5637d8da0b911e2ca6a7baf688c603a55a835583f044d3caa6781/68747470733a2f2f6261646765732e6769747465722e696d2f476f6f676c655461674d616e6167657242756e646c652f4c6f6262792e737667)](https://gitter.im/GoogleTagManagerBundle/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

The GoogleTagManagerBundle provides you an easy-to-use method to integrate the Google Tag Manager into your Symfony 2 application.

> Note: This Bundle is still in development. Feel free to report encountered issues!

Requirements
------------

[](#requirements)

2.x
---

[](#2x)

- PHP 5.3 and higher
- Symfony 2.8 and higher

3.x
---

[](#3x)

- PHP 5.6 and higher
- Symfony 2.8 and higher

Install
-------

[](#install)

### Step 1: Download the Bundle

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

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

#### 2.x

[](#2x-1)

```
$ composer require xynnn/google-tag-manager-bundle "~2.0"
```

#### 3.x

[](#3x-1)

```
$ composer require xynnn/google-tag-manager-bundle "~3.0"
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

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

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
