evheniy / gtm-bundle
The GtmBundle adds the ability to add Google Tag Manager code to your application.
1.7.0
2015-12-02 11:50 UTC
Requires
- php: >=5.3.0
- symfony/symfony: >=2.3
Requires (Dev)
- satooshi/php-coveralls: dev-master
README
This bundle provides Google Tag Manager in Symfony2
Documentation
You need to set GTM ID:
gtm:
id: GTM-xxx
Installation
$ composer require evheniy/gtm-bundle "1.*"
Or add to composer.json
"evheniy/gtm-bundle": "1.*"
AppKernel:
public function registerBundles()
{
$bundles = array(
...
new Evheniy\GtmBundle\GtmBundle(),
);
...
config.yml:
#GtmBundle
gtm:
id: GTM-xxx
{% include "GtmBundle:Gtm:gtm.html.twig" %}
License
This bundle is under the MIT license.