This bundle provides Google Tag Manager in Symfony2
You need to set GTM ID:
gtm:
id: GTM-xxx
$ 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" %}
This bundle is under the MIT license.
How can I help you explore Laravel packages today?