evheniy / gtm-bundle
The GtmBundle adds the ability to add Google Tag Manager code to your application.
Installs: 3 376
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
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.